Jump to content
  • 0

Lucky Pick Event


Renji Abarai

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   1
  • Joined:  01/21/14
  • Last Seen:  

I think theres a script just like this here on the forums already..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

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;
}

Link to comment
Share on other sites

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.

×
×
  • Create New...