I have thisscript thatmakesautomacamenteawardsto all membersof the winning guild,the script worksmoreWoEwednesdayCastleprtg_cas01not be doingthe 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;
}
Question
Scofield
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.
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.