- script hourly_reward_main -1,{
OnInit:
setarray .itemid,6379,522,12412,604,12221,16774,12103,12710,14296,14601,7929,12202,12203,12204,12205,12206,12207,7959;
setarray .amount,10,100,1,10,1,2,2,3,2,5,2,2,2,2,2,2,2,2;
.itemid_size = getarraysize( .itemid );
end;
OnMinute00:
query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT 1",.@aid,.@name$ );
if ( .@aid ) {
.@i = rand( .itemid_size );
getitem .itemid[.@i],.amount[.@i],.@aid;
announce "Krizazone Server - Lucky Player ["+.@name$+"] has receive ["+.amount[.@i]+"x "+getitemname( .itemid[.@i] )+"]!!",bc_all;
}
end;
}
i need help here
this script send to all player online and all marchents autotrade
i want make it to send to all player online not marchents autotrade
any help ?
Question
Hossam
- script hourly_reward_main -1,{ OnInit: setarray .itemid,6379,522,12412,604,12221,16774,12103,12710,14296,14601,7929,12202,12203,12204,12205,12206,12207,7959; setarray .amount,10,100,1,10,1,2,2,3,2,5,2,2,2,2,2,2,2,2; .itemid_size = getarraysize( .itemid ); end; OnMinute00: query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT 1",.@aid,.@name$ ); if ( .@aid ) { .@i = rand( .itemid_size ); getitem .itemid[.@i],.amount[.@i],.@aid; announce "Krizazone Server - Lucky Player ["+.@name$+"] has receive ["+.amount[.@i]+"x "+getitemname( .itemid[.@i] )+"]!!",bc_all; } end; }
i need help here
this script send to all player online and all marchents autotrade
i want make it to send to all player online not marchents autotrade
any help ?
Link to comment
Share on other sites
4 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.