Jump to content
  • 0
Sign in to follow this  
pixel

initnpctimer in function, it's possible to trigger?

Question

Okay i have

 

prontera,155,180,5 script somenpc 89,{

do something bla bla bla;

callfunc "somefunc";

}

 

function script somefunc {

initnpctimer;

OnTime5000:

announce "blabla",bc_map,0x00cc00;

end;

OnTimer10000:

announce "blabla 10 seconds",bc_map,0x00cc00;

}

 

 please ignore my syntax i write it on fast hand, in real script it's have tabs, etc and server do not warning or telling about any wrong in my script. 

 

My problem:

initnpctimer do not triggered. Where is the problem?

OnTimer5000:

not work;

OnTImer10000;

not work too!

 

Help me. 

 

So Initnpctimer in functions is possbile to trigger or nope?

 

In normal npc without function i can trigger initnpctimer and do some OnTimerxxxx:

Help me please:)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

As far as I know, the OnTImerrxxxxxx  label was only working in npc not working  in function

 

 

You can edit your script like the below code

 

 

prontera,155,180,5 script somenpc 89,{do something bla bla bla;initnpctimer;close;OnTime5000:announce "blabla",bc_map,0x00cc00;end;OnTimer10000:announce "blabla 10 seconds",bc_map,0x00cc00;}

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.