Jump to content
  • 0

Question

Posted

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

Posted (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 by kou
Posted

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?

Posted

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.

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...