Jump to content
  • 0

Need help on Bug/ Problem with this npc script


Question

Posted

What the npc do is, it will generate a random number and let players guess for it and win a prize.

Only one winner at a time.

The bug is that player that click but have not answer the guess, could wait until a person actually guessed it and announced, then only he/she input the correct number. Making it possible for 2 or even 10 winner per round. Prone to abuse, a player could have tons of dual character waiting for the guess.

The code snippet is here http://pastebin.com/6wL2SuZN

Can someone help me with this issue?

Thanks

3 answers to this question

Recommended Posts

Posted (edited)
input .@guessnumber;
next;
if( !.guessstart ){
mes "Sorry you are late...";
close;
}

Edited by Emistry
ops...Jospeh is faster..

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