Jump to content
  • 0

Question

Posted

Hi,

 

did I got it right that an NPC can only hold 1 Timer at a time?

 

I want my NPC to do warp portals every 20 seconds and do a npc talk every 60 seconds. Is that possible?

I've tried it like this:

 

OnTimer60000:

dosth

sleep 20000

dosth

sleep 20000

dosth

 

But somehow it skips the timer every second time, thus it does that and then it rests for a minute. :/

5 answers to this question

Recommended Posts

Posted

I meant the full details on what you want to happen with the script, not the codes, i'm bad at editing codes if i'm not the author.

 

Try putting an 'end;' before the OnTimer anyways

 

Oh sorry, well it should open a Warp to Kriemhild every 20second and should npctalk "Woe is on" every 60seconds

Posted

I meant the full details on what you want to happen with the script, not the codes, i'm bad at editing codes if i'm not the author.

 

Try putting an 'end;' before the OnTimer anyways

Posted
aethra,144,120,3	script	WoE Warper	437,{

end;

OnAgitStart:
	do {

		npctalk "WoE is ON";
		warpportal 141,117,"prt_gld",137,64;
		sleep 20000;
		warpportal 141,117,"prt_gld",137,64;
		sleep 20000;
		warpportal 141,117,"prt_gld",137,64;
		sleep 20000;
		warpportal 141,117,"prt_gld",137,64;

	   } while(agitcheck());
	end;

}

Kindly test

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