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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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