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.
|
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
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.
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
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |