Jump to content
  • 0

Give Guild Item?


rootKid

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

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 by kou
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  05/12/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   2
  • Joined:  11/14/11
  • Last Seen:  

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)

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 ^^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...