Jump to content
  • 0

Prizes autocad WoE


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

I have this script that makes automacamente awards to all members of the winning guild, the script works more WoE wednesday Castle prtg_cas01 not be doing the awards.

 

-    script    guild_reward_send    -1,{
OnAgitEnd:
    switch ( gettime(4) ) {
        case 0: set .@gid, getcastledata("prtg_cas03",1); break;
        case 2: set .@gid, getcastledata("prtg_cas01",1); break;
        case 4: set .@gid, getcastledata("prtg_cas02",1); break;
        default: end;
    }
    set .@nb, query_sql( "select account_id from `char` where guild_id = "+ .@gid +" and online = 1", .@aid );
    for ( set .@i, 0; .@i < .@nb; set .@i, .@i +1 ) {
        attachrid .@aid[.@i];
        getitem 7539,15;
        announce "[Premiação]: Premiação entregue a guild vencedora",0;
        dispbottom "Você recebeu 15 Moedas Poring pela sua vitória na Guerra do Emperium.";
    }
    end;
}
Link to comment
Share on other sites

1 answer 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.

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