rootKid Posted July 25, 2012 Posted July 25, 2012 Is there a way to give a whole guild a item through script? For example getitem gives a specific player, how would I go about giving every member in a certain guild an item? Quote
Arcenciel Posted July 25, 2012 Posted July 25, 2012 You can create an NPC where a GM can input the name of the guild then the members of that guild can just talk to that NPC to get the item. Quote
rootKid Posted July 25, 2012 Author Posted July 25, 2012 (edited) That the only way? A command can't be run on a map where the members of the guild are present to give the item? That's too manual, I'm thinking more auto. Edited July 25, 2012 by kou Quote
Arcenciel Posted July 25, 2012 Posted July 25, 2012 I'm not quite sure how to trigger a script to all players in a map. I haven't done that before. Maybe someone else knows how to? Quote
VyL0w Posted July 25, 2012 Posted July 25, 2012 I have this script in my server where i give prize to certain players and they can claimed it through the npc when they logged in btw heres the link, credits to Euphy http://pastebin.com/raw.php?i=wTG07rbs Quote
rootKid Posted July 25, 2012 Author Posted July 25, 2012 Uhh thanks for the script VyLow but thats not what I'm looking for. I'm looking for a script where, lets say.. a guild won a guild related event, the prize is given to all of the members through a script. Let's make this a little easier.. is there an atcommand for such a thing? Quote
clydelion Posted July 25, 2012 Posted July 25, 2012 you can accomplish that by using this http://rathena.org/board/topic/56124-package-getitem-map-itemmap/ Quote
Euphy Posted July 26, 2012 Posted July 26, 2012 OnWhisperGlobal: query_sql("SELECT `account_id` FROM `char` WHERE `guild_id` = "+getcharid(2,@whispervar0$)+" AND `online` ="+1,.@guild); for(set .@i,0; .@j<getarraysize(.@guild); set .@i,.@i+1) getitem atoi(@whispervar1$),atoi(@whispervar2$),.@guild[.@i]; end; Whisper <character name>#<item id>#<item amount> to give an item to that character's guild. Quote
Celsius Posted July 26, 2012 Posted July 26, 2012 i know one, but it is only to gave a prize to the guild who win WoE. Also, it is in Spanish, a good friend do it some time ago (Rpizer from old eAthena.ws) I dont recall if he post it in english too... And cause i dont own it, all i can do is to gave you the link to the post of the comunity where he post (and i know xDD) http://www.foro.divinero.net/materiales-utilidades-herramientas-y-scripts/%28script%29premiador-woe-%27aleatorio%27/ Its a "RANDOM" WoE Prizer, the first file attached to the post if to gave the item to ALL the guild who won the WoE of a castle getting RANDOM from the array at start of WoE. the second is the same, but the prize is given only to guild master The credits to Rpizer, I miss you Good Friend ^^ Quote
Question
rootKid
Is there a way to give a whole guild a item through script? For example getitem gives a specific player, how would I go about giving every member in a certain guild an item?
8 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.