snowkeg Posted February 3, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/21/17 Last Seen: November 3, 2017 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted February 17, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.