Jump to content
  • 0

Value for guild


snowkeg

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/21/17
  • Last Seen:  

Hi

I am designing a game need to set and get two value (value A and B) for all guild member.

First I need to give both value A to guild master who click the NPC clicks the NPC

Then all guild member includes guild master get the value B automatically.

There is an another NPC to check and get that value from player when they click it

How can I do it?

Thank you

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample#guild_value	757,{
	.@guild_id = getcharid(2);
	
	if ( .@guild_id ) {
		value |= 1;
		if ( getguildmasterid( .@guild_id ) == getcharid(0) ) {
			value |= 2;
		}
		
		if ( value & 1 ) mes "You get value 1";
		if ( value & 2 ) mes "You get value 2";
	}
	else {
		mes "You didnt have guild.";
	}
	close;

}

you can try this

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...