Dynasty Posted February 25, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Share Posted February 25, 2013 (edited) Hello Rathena Community I ve a doubt... how i can make a npc that when your guild is max lvl and if you re the leader the npc give you a item 1 time just 1 time? C: Help me plz Y_Y Edited February 24, 2013 by Dynasty Quote Link to comment Share on other sites More sharing options...
Euphy Posted February 27, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted February 27, 2013 if (getcharid(2)) mes "You are already in a guild."; else { mes "Input a guild name."; input .@name$; atcommand "@guild "+.@name$; mes "Guild ^FF0000"+.@name$+"^000000 created."; } close; Quote Link to comment Share on other sites More sharing options...
-SkittleNugget- Posted February 25, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 318 Reputation: 54 Joined: 12/23/12 Last Seen: July 1, 2017 Share Posted February 25, 2013 What Item do you want it to give? Quote Link to comment Share on other sites More sharing options...
Euphy Posted February 26, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted February 26, 2013 set .@gid, getcharid(2); if (GuildReward) mes "You can only receive your reward once."; else if (!.@gid) mes "You aren't in a guild!"; else if (getguildmasterid(.@gid) != getcharid(0)) mes "Only the Guild Master may receive this reward."; else { query_sql("SELECT `guild_lv` FROM `guild` WHERE `guild_id` = "+.@gid,.@lv); if (.@lv < 50) mes "Your guild has not yet reached the max level."; else { getitem ITEM_ID,AMOUNT; // Write your item here. mes "Here's your reward!"; set GuildReward,1; } } close; Quote Link to comment Share on other sites More sharing options...
Dynasty Posted February 26, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted February 26, 2013 but if i want to disable the command @guild how i can do the same thing (@guild) in a npc? how i can make a npc (npc make guild)? Quote Link to comment Share on other sites More sharing options...
Dynasty Posted February 27, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted February 27, 2013 (edited) THANKS,! I REALLY LOVE YOU! *-*. Ok, finally if i want to break the guild and disable the command "/breakguild" for what the only way to break the guild will be for the npc? sry my inglish is so bad u_u Edited February 27, 2013 by Dynasty Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted February 27, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted February 27, 2013 '/breakguild' command is a client command. Currently I don't know how to disable it and run the client command from NPC instead. Quote Link to comment Share on other sites More sharing options...
Dynasty Posted February 27, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted February 27, 2013 (edited) But, should have a form to disable that commands, and other thing, how i can make npc that when woe start enable the effect of item in specific and when woe end disable the effect ?? Edited February 27, 2013 by Dynasty Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted February 28, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted February 28, 2013 To disable client command, you have to hex it. Edit your item script and use if agitstart and agitstart2. Quote Link to comment Share on other sites More sharing options...
Dynasty Posted March 1, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted March 1, 2013 mmm Like that? - Script WoeBrooch -1,{ Onagistart: enable_item: ??? Onagiend: disable_item: ????? up Quote Link to comment Share on other sites More sharing options...
Dynasty Posted March 3, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Author Share Posted March 3, 2013 help me plz :c Quote Link to comment Share on other sites More sharing options...
Question
Dynasty
Hello Rathena Community
I ve a doubt...
how i can make a npc that when your guild is max lvl and if you re the leader the npc give you a item 1 time just 1 time?
C:
Help me plz Y_Y
Edited by DynastyLink to comment
Share on other sites
10 answers 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.