- script Free -1,{
// SET TIME
OnClock0000:
// SET ITEM ID.
set .@item_id,501;
// SET NUMBER TO GIVE.
set .@amout,5;
set .@item_name$, getitemname( .@item_id );
do {
set .@size, query_sql( "SELECT `account_id` from `char` where `online` = '1' order by `account_id` desc limit "+ ( .@loop *128 ) +", 128", .@account_id );
for( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) {
getitem .@item_id, .@amout, .@account_id[.@i];
message rid2name( .@account_id[.@i] ), "ท่านได้ของรางวัลเป็น "+ .@item_name$ +".";
}
set .@loop, .@loop +1;
}
while( .@size );
end;
}
Question
ooGubAoo
- script Free -1,{ // SET TIME OnClock0000: // SET ITEM ID. set .@item_id,501; // SET NUMBER TO GIVE. set .@amout,5; set .@item_name$, getitemname( .@item_id ); do { set .@size, query_sql( "SELECT `account_id` from `char` where `online` = '1' order by `account_id` desc limit "+ ( .@loop *128 ) +", 128", .@account_id ); for( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) { getitem .@item_id, .@amout, .@account_id[.@i]; message rid2name( .@account_id[.@i] ), "ท่านได้ของรางวัลเป็น "+ .@item_name$ +"."; } set .@loop, .@loop +1; } while( .@size ); end; }
if i need ti fix player lv 50.
When online in game will can get item.
Thank you.
Link to comment
Share on other sites
2 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.