initnpctimer in function, it's possible to trigger?

pixel

New member
Messages
17
Points
0
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:)

 
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

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;}
 
Back
Top