Jump to content
  • 0

Value for guild


Question

Posted

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

1 answer to this question

Recommended Posts

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...