Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- -- onGameHour
- -----------------------------------
- function onGameHour(npc, mob, player)
- local VanadielHour = VanadielHour();
- local npc = GetNPCByID(16921027);
- local qm1p = GetServerVariable("[POSI]Fortitude"); -- start in spawn pos 1.
- local s = 1 -- wait time till change to next spawn pos, set to 15 mins.
- if(VanadielHour % s == 0) then -- Change ??? position every 6 hours Vana'diel time (~15 mins)
- SetServerVariable("[POSI]Fortitude", qm1p + 1);
- printf("Qm1 will now change to spawn point.");
- if (qm1p == 1) then
- npc:setPos(-420,0.00,755); -- spawn point 1 "Hume"
- printf("Qm1 is at pos 1");
- elseif (qm1p == 2) then
- npc:setPos(-43,0.00,460); -- spawn point 2 "Elvaan"
- printf("Qm1 is at pos 2");
- elseif (qm1p == 3) then
- npc:setPos(-260,0.00,44.821); -- spawn point 3 "Galka"
- printf("Qm1 is at pos 2");
- elseif (qm1p == 4) then
- npc:setPos(-580,0.00,43); -- spawn point 4 "Taru"
- printf("Qm1 is at pos 4");
- elseif (qm1p == 5) then
- npc:setPos(-796,0.00,460); -- spawn point 5 "Mithra"
- printf("Qm1 is at pos 1");
- elseif (qm1p == 6) then -- set spawn pos to 1 after counter reach 6.
- SetServerVariable("[POSI]Fortitude",1);
- printf("Qm1 has reset to 1");
- end
- end
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement