help | clock npc v117

Results 1 to 5 of 5
  1. #1
    Enthusiast Almog Morovati is offline
    MemberRank
    Mar 2015 Join Date
    42Posts

    help | clock npc v117

    Hey..
    I need npc which warp you to a simple map and put clock time.
    How may I do this?

    ty!


  2. #2
    Account Upgraded | Title Enabled! super861 is offline
    MemberRank
    Oct 2009 Join Date
    229Posts

    Re: help | clock npc v117

    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.

  3. #3
    Moderator Eric is offline
    ModeratorRank
    Jan 2010 Join Date
    DEV CityLocation
    3,188Posts

    Re: help | clock npc v117

    PHP Code:
    var mapid 910000000;
    var 
    time 60;//1minute
    function start() {
        
    cm.warp(mapid0);
        
    cm.getPlayer().getClient().announce(Packages.tools.packet.CField.getClock(time));
        
    cm.dispose();

    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 work

    and ya, if you want an action with the timer u should try making a function/event and handle with TimerManager/EventTimer or something

  4. #4
    Enthusiast Almog Morovati is offline
    MemberRank
    Mar 2015 Join Date
    42Posts

    Re: help | clock npc v117

    Quote Originally Posted by chunkarama View Post
    PHP Code:
    var mapid 910000000;
    var 
    time 60;//1minute
    function start() {
        
    cm.warp(mapid0);
        
    cm.getPlayer().getClient().announce(Packages.tools.packet.CField.getClock(time));
        
    cm.dispose();

    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 work

    and ya, if you want an action with the timer u should try making a function/event and handle with TimerManager/EventTimer or something
    Hey... I need the part of "after", just changin map in the end of the time.
    How may I do this?

  5. #5
    Account Upgraded | Title Enabled! super861 is offline
    MemberRank
    Oct 2009 Join Date
    229Posts

    Re: help | clock npc v117

    Quote Originally Posted by Almog Morovati View Post
    Hey... I need the part of "after", just changin map in the end of the time.
    How may I do this?
    http://www.w3schools.com/js/js_timing.asp



Advertisement