SevySevSevy Posted July 10, 2015 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/18/15 Last Seen: August 24, 2015 Share Posted July 10, 2015 Hello, I would like to request an event script that would run every 3 days and will pick any random player online and reward them a certain amount of zeny lets say 100m zennies. The npc should announce who the lucky winner is too. TIA Quote Link to comment Share on other sites More sharing options...
Stolao Posted July 10, 2015 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted July 10, 2015 try this one, i forget original writer credit goes to them, i just edited - script LuckyRun -1,{ OnHour12://time want event to run if(gettime(5)%3) end;// 3 day check while(1){ query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid; attachrid .@aid; if(CheckVending()) { DetachRID(); continue; } announce "Congrats to, "+strcharinfo(0)+" a winner in the Lucky event!",bc_blue|bc_all; set zeny,zeny + 100000000; break; } end; } Quote Link to comment Share on other sites More sharing options...
SevySevSevy Posted July 11, 2015 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 04/18/15 Last Seen: August 24, 2015 Author Share Posted July 11, 2015 try this one, i forget original writer credit goes to them, i just edited - script LuckyRun -1,{ OnHour12://time want event to run if(gettime(5)%3) end;// 3 day check while(1){ query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid; attachrid .@aid; if(CheckVending()) { DetachRID(); continue; } announce "Congrats to, "+strcharinfo(0)+" a winner in the Lucky event!",bc_blue|bc_all; set zeny,zeny + 100000000; break; } end; } Ill try it out, thank you ~! Quote Link to comment Share on other sites More sharing options...
Question
SevySevSevy
Hello, I would like to request an event script that would run every 3 days and will pick any random player online and reward them a certain amount of zeny lets say 100m zennies. The npc should announce who the lucky winner is too.
TIA
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.