I havethisnpcmakingawardsto playerswhowin theguildcastleat the end ofwoe,she'snot doingmoredeliveryof coins, I wonderwhat the problem is.
- script send_cash -1,{
OnAgitEnd:
switch(gettime(4)) {
case 0: set .@guild_id, getcastledata("prtg_cas03",1); break; // Domingo
case 2: set .@guild_id, getcastledata("prtg_cas01",1); break; // Quarta
case 4: set .@guild_id, getcastledata("prtg_cas02",1); break; // Sábado
}
query_sql "SELECT `account_id` FROM `guild_member` WHERE `guild_id`='"+.@guild_id+"' AND `online`='1' ORDER BY `position` DESC LIMIT 76", .@account_id;
query_sql "SELECT COUNT(1) FROM `char` WHERE `guild_id`='"+.@guild_id+"' AND `online`='1'", .@guild_count;
for(set .@i, 0; .@i < .@guild_count; set .@i, .@i + 1) {
if(attachrid(.@account_id[.@i])) {
getitem 7539,15;
dispbottom "Você recebeu 15 Moedas Poring pela sua vitória na Guerra do Emperium.";
detachrid;
}
}
end;
}
Question
Scofield
I have this npc making awards to players who win the guild castle at the end of woe, she's not doing more delivery of coins, I wonder what the problem is.
Link to comment
Share on other sites
9 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.