Jump to content
  • 0

Question

Posted (edited)
Lucy Pick Event Mechanics:
i want a Lucy Pick Event that will
1. Randomly choose only "1 player currently online" in the server.
2. it will Randomly choose only "1 player currently online" in Random Time also
3. The choosen one will recieve reward Donation_Ticket item id 7179.
check the script below if it is correct???


prontera,164,164,5 script Luck Pick Event 843,{

OnInit:
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
OnClock2400:
set .LuckyTime,rand(24);
 
OnMinute00:
if( gettime(3) == .LuckyTime ){
set .DelayMin,rand(60);
sleep ( .DelayMin * 60000 );
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 strcharinfo(0) +" won in Lucky Pick Event.", 0,0x99FFFF;
  getitem 7179,10;
  break;
}
}
end;
}

Edited by Renji Abarai

2 answers to this question

Recommended Posts

Posted

may i know when this script will give prize?????


prontera,164,164,5 script Luck Pick Event 843,{

OnInit:
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
OnClock2400:
set .LuckyTime,rand(24);
 
OnMinute00:
if( gettime(3) == .LuckyTime ){
set .DelayMin,rand(60);
sleep ( .DelayMin * 60000 );
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 strcharinfo(0) +" won in Lucky Pick Event.", 0,0x99FFFF;
  getitem 7179,10;
  break;
}
}
end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...