Whoaa this is exactly what I need :\ Any chance of you showing how you done it :\?
|
FIXED.
I need the player to teleport and an interface to show, but the interface to stop after 3 seconds.
This is What I need implented:
cycle event 2 seconds :
c.getPA().startMovement(newX, newY, 0);
c.getPA().showInterface(18452);
//after 2 seconds this happens:
c.getPA().closeAllWindows();
Fixed this.
Whoaa this is exactly what I need :\ Any chance of you showing how you done it :\?
Never helped but I guess I'll learn it at some point Not used event containers or anything like that yet guess it's time to start learning.
http://www.rune-server.org/runescape...events-pi.html
There's a guide at the bottom, that's how I learned
Here you go:
Code:CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() { int time = 2; @Override public void execute(CycleEventContainer container) { if (time > 0) { time--; } if (time == 2) { c.getPA().startMovement(newX, newY, 0); c.getPA().showInterface(18452); } else if (time == 0) { c.getPA().closeAllWindows(); container.stop(); } } @Override public void stop() { } }, 1);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |