Thread: Help with pausing a command

Results 1 to 3 of 3
  1. #1 Help with pausing a command 
    Registered Member
    Join Date
    Dec 2014
    Posts
    65
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Okay so I got this command:

    if (playerCommand.equals("test") && (c.playerRights >= 0)) {
    c.getPA().startTeleport(2598, 3088, 0, "modern");
    Server.npcHandler.spawnNpc(c, 3622, c.absX + 3, c.absY, 0, 0, 120, 7, 70, 70, false, false);
    }

    But i want to make it so that, when i type ::test I get teled to coords 2598, 3088 then after 5 seconds npc 3622 will spawn, so its like this

    c.getPA().startTeleport(2598, 3088, 0, "modern");
    pause for 5 sec.
    Server.npcHandler.spawnNpc(c, 3622, c.absX + 3, c.absY, 0, 0, 120, 7, 70, 70, false, false);

    How would I do this? sorry for my bad english
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Initiate a timer-based task that launches five seconds after. I am not aware of the methods that lie within your source so I suggest you look up some other minigame or activity that already contains a timer-based task and simply follow it.
    Attached image
    Reply With Quote  
     

  3. #3  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    Just to give you a hint...look at how fight cave works it's literally the same thing you enter/teleport a cave and then after a timer spawns occur
    Spoiler for sig too large:


    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Help with a pure command
    By Noobyjames in forum Help
    Replies: 3
    Last Post: 03-03-2010, 08:04 PM
  2. Need help with inifinite hp command
    By 0 v b0w v 0 in forum Help
    Replies: 1
    Last Post: 01-24-2010, 02:33 AM
  3. Need Help With A Yell Command!!!
    By Zivik in forum Help
    Replies: 0
    Last Post: 11-08-2009, 01:54 AM
  4. [508] Help with my rickroll command??[508]
    By Str pker in forum Help
    Replies: 0
    Last Post: 07-14-2009, 10:56 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •