rootKid Posted July 25, 2012 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 83 Reputation: 11 Joined: 11/28/11 Last Seen: March 31, 2024 Share 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 Link to comment Share on other sites More sharing options...
Arcenciel Posted July 25, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share 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 Link to comment Share on other sites More sharing options...
rootKid Posted July 25, 2012 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 83 Reputation: 11 Joined: 11/28/11 Last Seen: March 31, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Arcenciel Posted July 25, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share 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 Link to comment Share on other sites More sharing options...
VyL0w Posted July 25, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 27 Reputation: 0 Joined: 05/12/12 Last Seen: December 30, 2014 Share 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 Link to comment Share on other sites More sharing options...
rootKid Posted July 25, 2012 Group: Members Topic Count: 24 Topics Per Day: 0.00 Content Count: 83 Reputation: 11 Joined: 11/28/11 Last Seen: March 31, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
clydelion Posted July 25, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted July 25, 2012 you can accomplish that by using this http://rathena.org/board/topic/56124-package-getitem-map-itemmap/ Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 26, 2012 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 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 Link to comment Share on other sites More sharing options...
Celsius Posted July 26, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 65 Reputation: 2 Joined: 11/14/11 Last Seen: October 25, 2024 Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.