Jump to content
  • 0
Sign in to follow this  
pixel

Teach me please: how to use initnpctimer, stopnpctimer etc.

Question

I was ready many times official manual and docs about initnpctimer, stopnpctimer but i still cannot understand how it work.

 

Example:

 

initnpctimer;     OnTimer10000:      announce "10 seconds to the whole map!",bc_map,0xcc00ff;      end;     OnTimer20000:     announce "20 seconds on map and i do something with characters",bc_map,0xcc00ff;     attachrid(somechar_ac_id); // example, not real variable just for example!     dosomething.... ;      attachrid(backtothemain_ac_id);     OnTimer25000:     announce "i done it after 25 seconds...",bc_map,0xff0099;     stopnpctimer;     end; 

 

 

 

Can someone teach me by examples, etc about timers, where i wrong? How to use initnpctimer? 

I need to write end; after initnpctimer? or just need to use initnpctimer alone, or with some label?

When with after initnpctimer i write 'end'; i get script stop; But i need to do something OnTimer:

When i remove end; my script have no delay, i mean i get all announces in < 1 second. No delay i mean...

 

Teach me please by examples in different situations how to use initnpctimer, stopnpctimer, attaching players, can someone talk about attaching timers to players, i can attach one timer to one player right? How to attach same timer to few players? Etc.... help me:)

 

Thank you a lot!

Edited by pixel

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

guides/examples will be very usefull. I already read in "rathena" wiki about timers... but it's not help for me... i really need help by examples in different situations, it will help a lot.

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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