Jump to content
  • 0

Request script pls!


Vince Jimenez

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

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

 

 
 
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  


                if(CheckVending() ){

                    DetachRID();

                }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  08/08/13
  • Last Seen:  

share please:)

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...