Jump to content
  • 0
garro

NPC event type, help in the Ontimer

Question

 

Good evening, Please help me, I created this npc with other parts of other npcs that I have seen, but I am having problems in the OnTimer, I have it configured so that it only lasts 1 minute inside of X warp but it does not warp to the save point when it ends the time, but that part does not help me, please help me

felipe.txt

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
prontera,155,165,5	script	Safari Zone	1_F_MARIA,{
	disable_items;
	.@npcname$ = "[Guardian]";
	mes .@npcname$;
	mesf "Hello %s I am the guardian of the Safari Zone", strcharinfo(PC_NAME);
	mes "There you can capture Pokemon and if you're lucky, train them to follow you everywhere!";
	next;
	mes .@npcname$;
	mes "besides to let you in you need a Safari ticket, that you can buy it in Hunting Mission";
	next;
	mes .@npcname$;
	mes "Do you want to enter the Safari Zone?";
	next;
	if ( select ("Yes","No") == 2 ) {
		mes .@npcname$;
		mes "Come back soon";
		close;
	}
	mes .@npcname$;
	mes "Let's see if you have the ticket";
	next;
	if ( !countitem(Monster_Ticket) ) {
		mes "I'm sorry, but you do not have a Safari Ticket, I can not let you pass.";
		close;
	}
	mes .@npcname$;
	mes "Well, you have the Safari Ticket, you can pass!";
	mes "Remember that Safari Zone can only enter for 1 hour and time is running, hurry !";
	mes "Ok There you go ... Good Luck!";
	close2;
	if ( !countitem(Monster_Ticket) ) { // counter-check for hacker
		mes .@npcname$;
		mes "I'm sorry, but you do not have a Safari Ticket, I can not let you pass.";
		close;
	}
	delitem Monster_Ticket, 1;
	warp "ordeal_2-2", 243,265;
	addtimer 10000, strnpcinfo(NPC_NAME)+"::OnTimerLimit1"; // 10 seconds to display message
	end;
OnTimerLimit1:
	dispbottom "You have 20 seconds left.";
	addtimer 10000, strnpcinfo(NPC_NAME)+"::OnTimerLimit2";
	end;
OnTimerLimit2:
	dispbottom "You have 10 seconds left.";
	addtimer 10000, strnpcinfo(NPC_NAME)+"::OnTimerLimit3";
	end;
OnTimerLimit3:
	warp "Save", 0,0;
	end;
}
ordeal_2-2	mapflag	nowarpto
ordeal_2-2	mapflag	nomemo
ordeal_2-2	mapflag	nosave

 

Share this post


Link to post
Share on other sites
  • 0

you mean this is an event script, not game ?

can you repeat again what is the description of your 'event' script ?

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.