Jump to content
  • 0
ThyroDree

Guess the Number [ Help ]

Question

help please everytime the NPC will start ... it says 1minute before the event will start but if i click the npc it will start even if 1minute still not done x.x heres the script.. also i want this script work every 40 minutes anyone can help me?

 

// = Script made by RIKIMARU on rathena.org// = Profile Link :// = http://rathena.org/board/user/434-rikimaru/// = ENJOY THIS SCRIPT!//===================================================================================//        //=====//     /==/     /==/          /==/      //       //     //     /==/     /==/  /=/     /==/         //      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==///     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==///    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==///   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==///  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/// ================ rAthena Script ==================================================// ============== Information =======================================================// = Automated Guess the Number Event// = Made by :// = Rikimaru//===== Current Version: =============================================== //= 2.3//===== Compatible With: =============================================== //= any rAthena SVN//===== Description: =================================================== //= This is an automated Guess the Number Event,which I made//= for having fun in game,guessing a number. The number is going//= to be a number between 1 and 2000 , so it'll take time to find out//= the correct number.//===== Additional Comments: =========================================== //= 2.0 Fixed an announcer Bug [Rikimaru]//= 2.1 Fixed a few Typos in the Script [Rikimaru]//= 2.2 Fixed the Prize,which was not working correctly. [Rikimaru]//= 2.3 Fixed another little Bug. [Rikimaru]//====================================================================== //= DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS //======================================================================-	script	guessannouncer	-1,{OnMinute09:announce "Guess the Number: Is starting in 1 Minute in Prontera 144 169!",0;sleep 30000;announce "Guess the Number: Is starting in 30 Seconds in Prontera 144 169!",0;sleep 20000;announce "Guess the Number: 10 Seconds! Gather up in Prontera 144 169 quick!",0;sleep 5000;announce "Guess the Number: 5 Seconds Left! Gather up in Prontera 144 169",0;sleep 1000;announce "Guess the Number: 4 Seconds! Gather up in Prontera 144 169",0;sleep 1000;announce "Guess the Number: 3 Seconds! Gather up in Prontera 144 169",0;sleep 1000;announce "Guess the Number: 2 Seconds! Gather up in Prontera 144 169",0;sleep 1000;announce "Guess the Number: 1 Second! Gather up in Prontera 144 169",0;sleep 1000;announce "Guess the Number: The event has started!",0;enablenpc "guess";end;}// ==============================================================================prontera,146,170,6	script	Guess the Number::guess	748,{// =================== Setting the NPC Name and Prize and amount  =============set .@n$,"^FF0000[Guess the Number]^000000";set @prize,7227;//Change the 7227 to your reward item IDset @amoun,1;//Change the 10 to your reward amount// ==================== End of settings =========================================if(.guessstart==1) goto Oneventevent;set .usednumber, rand(1,1000);announce "Guess the Number: Guess the Number Event Started in Prontera!",0;set .guessstart,1;Oneventevent:mes .@n$;mes "Guess the number...It is a number between between 1 and 1,000!";input .@guessnumber;next;if(.@guessnumber > .usednumber) {mes .@n$;mes "My number is ^FF0000SMALLER^000000 than the one you guessed!";close;} else if(.@guessnumber < .usednumber) {mes .@n$;mes "My number is ^FF0000BIGGER^000000 than the one you guessed!";close;} else if(.@guessnumber == .usednumber) {announce ""+strcharinfo(0)+" has won the Guess the Number Event! My number was "+.usednumber+"!",0;mes .@n$;mes "You have guessed my number! Congratulations!";getitem @prize,@amoun;disablenpc "guess";set .guessstart,0;close2;end;}}

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
// ==============================================================================prontera,146,170,6	script	Guess the Number	748,{// =================== Setting the NPC Name and Prize and amount  =============set .@n$,"^FF0000[Guess the Number]^000000";set @prize,7227;//Change the 7227 to your reward item IDset @amoun,1;//Change the 10 to your reward amount// ==================== End of settings =========================================if(.guessstart==1) goto Oneventevent;set .usednumber, rand(1,1000);announce "Guess the Number: Guess the Number Event Started in Prontera!",0;set .guessstart,1;Oneventevent:mes .@n$;mes "Guess the number...It is a number between between 1 and 1,000!";input .@guessnumber;next;if(.@guessnumber > .usednumber) {	mes .@n$;	mes "My number is ^FF0000SMALLER^000000 than the one you guessed!";	close;} else if(.@guessnumber < .usednumber) {	mes .@n$;	mes "My number is ^FF0000BIGGER^000000 than the one you guessed!";	close;} else if(.@guessnumber == .usednumber) {	announce ""+strcharinfo(0)+" has won the Guess the Number Event! My number was "+.usednumber+"!",0;	mes .@n$;	mes "You have guessed my number! Congratulations!";	getitem @prize,@amoun;	disablenpc "Guess the Number";	set .guessstart,0;	close;}}-	script	guessannouncer	-1,{OnMinute09:	announce "Guess the Number: Is starting in 1 Minute in Prontera 144 169!",0;	sleep 30000;	announce "Guess the Number: Is starting in 30 Seconds in Prontera 144 169!",0;	sleep 20000;	announce "Guess the Number: 10 Seconds! Gather up in Prontera 144 169 quick!",0;	sleep 5000;	announce "Guess the Number: 5 Seconds Left! Gather up in Prontera 144 169",0;	sleep 1000;	announce "Guess the Number: 4 Seconds! Gather up in Prontera 144 169",0;	sleep 1000;	announce "Guess the Number: 3 Seconds! Gather up in Prontera 144 169",0;	sleep 1000;	announce "Guess the Number: 2 Seconds! Gather up in Prontera 144 169",0;	sleep 1000;	announce "Guess the Number: 1 Second! Gather up in Prontera 144 169",0;	sleep 1000;	announce "Guess the Number: The event has started!",0;	enablenpc "Guess the Number";	end;	OnInit:	disablenpc "Guess the Number";	end;}

Not sure, if it will work, I just looked for the lines which I feel its wrong(and added a disablenpc command at loading, so the npc is not enabled by default)

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.