Dynasty Posted February 25, 2013 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
Euphy Posted February 27, 2013 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
-SkittleNugget- Posted February 25, 2013 Posted February 25, 2013 What Item do you want it to give? Quote
Euphy Posted February 26, 2013 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
Dynasty Posted February 26, 2013 Author 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
Dynasty Posted February 27, 2013 Author 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
nanakiwurtz Posted February 27, 2013 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
Dynasty Posted February 27, 2013 Author 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
nanakiwurtz Posted February 28, 2013 Posted February 28, 2013 To disable client command, you have to hex it. Edit your item script and use if agitstart and agitstart2. Quote
Dynasty Posted March 1, 2013 Author Posted March 1, 2013 mmm Like that? - Script WoeBrooch -1,{ Onagistart: enable_item: ??? Onagiend: disable_item: ????? up Quote
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 Dynasty10 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.