snowkeg Posted February 3, 2017 Posted February 3, 2017 Hi I am designing a game need to set and get two value (value A and 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 Quote
0 Emistry Posted February 17, 2017 Posted February 17, 2017 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 Quote
Question
snowkeg
Hi
I am designing a game need to set and get two value (value A and
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.