Hakahay Posted May 8, 2019 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 82 Reputation: 4 Joined: 10/20/16 Last Seen: Tuesday at 12:39 AM Share Posted May 8, 2019 There is some script that can do the following: at a certain time it selects 2 random players from the server and puts them to fight each other, who wins receives a reward. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted September 15, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 15, 2019 - script Sample -1,{ OnInit: .map$ = "prontera"; end; OnMinute00: // every hour deletearray .aid; mapwarp .map$, "prontera", 155, 181; query_sql("SELECT `account_id`,`char_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY RAND() LIMIT 2", .aid, .@cid, .@name$); announce "<SYSTEM> Both '"+.@name$[0]+"' and '"+.@name$[1]+"' are selected to join the event. Good luck in killing each other for rewards", bc_all; warp .map$, 0, 0, .@cid[0]; warp .map$, 0, 0, .@cid[1]; end; OnPCKillEvent: if (strcharinfo(3)) { .@aid = getcharid(3); if (killedrid == .@aid) .@aid = .aid[(.@aid == .aid[0])]; if (attachrid(.@aid)) { // rewards getitem 512, 1; getitem 512, 2; getitem 512, 3; announce "<SYSTEM> '"+strcharinfo(0)+"' has won.", bc_all; } } deletearray .aid; mapwarp .map$, "prontera", 155, 181; end; } try this. Quote Link to comment Share on other sites More sharing options...
Question
Hakahay
There is some script that can do the following: at a certain time it selects 2 random players from the server and puts them to fight each other, who wins receives a reward.
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.