The graphic update mask has support for delay, don't use a task or whatever..
Code:
builder.putShort(target.getGraphic().getId(), ByteOrder.LITTLE);
builder.putInt(((target.getGraphic().getHeight().ordinal() * 50) << 16) + (target.getGraphic().getDelay() & 0xffff));
Not sure what base you're using but in Elvarg you can simply do like this:
Code:
player.performGraphic(new Graphic(id, height, delay));
Originally Posted by
Creampie47
also tried the thread.sleep thing but it would stop all my teleport thing
Thread.sleep() method can be used to pause the execution of current thread for specified time in milliseconds.
You don't want to be suspending your game thread. It will prevent your server from updating which will lead to huge problems.