dmonrey002 Posted November 10, 2014 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
Winz Posted November 10, 2014 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(!.@a) { setnpctimer -3600000; set .@a, 1; end; } //event script upon NPC done, add this on before end; stopnpctimer; initnpctimer; set .@a, 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
dmonrey002 Posted November 10, 2014 Author 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(!.@a) { setnpctimer -3600000; set .@a, 1; end; } //event script upon NPC done, add this on before end; stopnpctimer; initnpctimer; set .@a, 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
Winz Posted November 10, 2014 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
Question
dmonrey002
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?
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.