Hey..
I need npc which warp you to a simple map and put clock time.
How may I do this?
ty!
Hey..
I need npc which warp you to a simple map and put clock time.
How may I do this?
ty!
the warping part is easy, cm.warp or whatever the function is called in you conversationmanager. for the clock you could check if you have a function there, otherwise you might need to make an event for that. since you probably wannt sometihng to happen when the timer ends aswell.
pretty sure getClock was in the CField package.. idk if there's a cm.sendClock method in your source or not but if ur using Java 7 this will workPHP Code:var mapid = 910000000;
var time = 60;//1minute
function start() {
cm.warp(mapid, 0);
cm.getPlayer().getClient().announce(Packages.tools.packet.CField.getClock(time));
cm.dispose();
}
and ya, if you want an action with the timer u should try making a function/event and handle with TimerManager/EventTimer or something