dmonrey002 Posted November 10, 2014 Share Posted November 10, 2014 Help plsss.. i have a auto event npc and i want it to start every 3 hrs interval.. im confuse on the script OnMinute: what number i put to make it every 3hrs interval? Quote Link to comment Share on other sites More sharing options...
Winz Posted November 10, 2014 Share Posted November 10, 2014 if you'd like to make it run on every (times)3 hours, like 03.00, 06.00, 09.00, 12.00, 15.00, 18.00, 21.00 and 00.00 (24.00), then you can use this: OnHour00: OnHour03: OnHour06: OnHour09: OnHour12: OnHour15: OnHour18: OnHour21: // event begins If you want to be floating, like 3 hrs after the event is done, then this should do the trick: OnInit: startnpctimer; end; OnTimer7200000: if([email protected]) { setnpctimer -3600000; set [email protected], 1; end; } //event script upon NPC done, add this on before end; stopnpctimer; initnpctimer; set [email protected], 0; IDK if there is OnTimer10800000 or not, as I know, they don't have it. so, it will subtract the timer by 1 hour on the 2nd hour, then on the next 2nd hour (which will be the 3rd hour), it will do the event script. not tested Quote Link to comment Share on other sites More sharing options...
dmonrey002 Posted November 10, 2014 Author Share Posted November 10, 2014 if you'd like to make it run on every (times)3 hours, like 03.00, 06.00, 09.00, 12.00, 15.00, 18.00, 21.00 and 00.00 (24.00), then you can use this: OnHour00: OnHour03: OnHour06: OnHour09: OnHour12: OnHour15: OnHour18: OnHour21: // event begins If you want to be floating, like 3 hrs after the event is done, then this should do the trick: OnInit: startnpctimer; end; OnTimer7200000: if([email protected]) { setnpctimer -3600000; set [email protected], 1; end; } //event script upon NPC done, add this on before end; stopnpctimer; initnpctimer; set [email protected], 0; IDK if there is OnTimer10800000 or not, as I know, they don't have it. so, it will subtract the timer by 1 hour on the 2nd hour, then on the next 2nd hour (which will be the 3rd hour), it will do the event script. not tested THNX alot i try this.. PS: haha how can i check if the NPC running the event every after 3hrs Quote Link to comment Share on other sites More sharing options...
Winz Posted November 10, 2014 Share Posted November 10, 2014 insert this: OnWhisperGlobal: if(@whispervar0$=="tick") { dispbottom "My current tick: "+getnpctimer 0; end; } then, whisper to: NPC::<npc name> message: tick. Quote Link to comment Share on other sites More sharing options...
Help plsss.. i have a auto event npc and i want it to start every 3 hrs interval.. im confuse on the script OnMinute: what number i put to make it every 3hrs interval?
Link to comment
Share on other sites