Vince Jimenez Posted August 12, 2015 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Share Posted August 12, 2015 i have an script lucky pick event every 10mins random players online.. but my problem even my vendor win can someone help me how to ignore all vendors ? here is my script? - script AutoFunEvent -1,{ OnMinute00: OnMinute10: OnMinute20: OnMinute30: OnMinute40: OnMinute50: query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid; attachrid .@aid; announce strcharinfo(0) +" won on lucky pick event", 0; getitem 12248,3; getitem 20619,1; end; } thanks in advance Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 12, 2015 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 12, 2015 what about select account_id from `char` where online = 1 and account_id not in ( select account_id from vendings ) order by rand() limit 1 to exclude vendor? 1 Quote Link to comment Share on other sites More sharing options...
Stolao Posted August 12, 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 August 12, 2015 if(CheckVending() ){ DetachRID(); } Quote Link to comment Share on other sites More sharing options...
Vince Jimenez Posted August 20, 2015 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 68 Reputation: 1 Joined: 10/16/12 Last Seen: August 14, 2016 Author Share Posted August 20, 2015 what about select account_id from `char` where online = 1 and account_id not in ( select account_id from vendings ) order by rand() limit 1 to exclude vendor? Working Thanks! Quote Link to comment Share on other sites More sharing options...
cutekram Posted August 29, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 30 Reputation: 0 Joined: 08/08/13 Last Seen: March 6, 2023 Share Posted August 29, 2015 share please:) Quote Link to comment Share on other sites More sharing options...
Question
Vince Jimenez
i have an script lucky pick event every 10mins random players online..
but my problem even my vendor win
can someone help me how to ignore all vendors ? here is my script?
thanks in advance
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.