Jump to content
  • 0

Timer Problem


Yuka

Question


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

What's the whole description of your script? I'll try to write one for you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

What's the whole description of your script? I'll try to write one for you

 

http://pastebin.com/YYrcPx65

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

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

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