Lol no! You change the void to what that process is rofl!
|
|

So how do you need to do it? I have Eventmanager on my source but never used it
Do I change ALL of thoseto this:Code:if (npcDelay > 0) { npcDelay--; } if (teleDelay > 0) { teleDelay--; } (..) etc
but just changing the bolded stuff to the previous codes? like this:Code:public void statRestore(final Player p) { EventManager.getSingleton().addEvent(3000, new Event() { public void execute(EventContainer c) { if (statRestoreDelay > 0) { statRestoreDelay--; } else { c.stop(); } } }); }
etc etc for all this if's? or whatCode:public void isDead(final Player p) { EventManager.getSingleton().addEvent(3000, new Event() { public void execute(EventContainer c) { if (isDead) { deathDelay--; applyDead(); } else { c.stop(); } }); } public void npc(final Player p) { EventManager.getSingleton().addEvent(3000, new Event() { public void execute(EventContainer c) { if (npcDelay > 0) { npcDelay--; } else { c.stop(); } }); }
Lol no! You change the void to what that process is rofl!
kul, knew this, can you replace some of the code of your tut with this?:
public void statRestore(final Player p) {
EventManager.getSingleton().addEvent(2400, new Event() {
public void execute(EventContainer c) {
if (statRestoreDelay > 0)
statRestoreDelay--;
else
c.stop();
}
});
}
just conventions![]()
just did conventions that i knew for that piece of code
Or, just make an event to call your process method process it every 500ms, then get rid of the process method being called through the Engine class and start the event on start up, oh my not multiple events pls.
Well after you create the method for the new event where do you call it? or does it automatically get called?
| « [474+ Deob] Massive TuT/Packets List [474+ Deob] | Loading Npc Defense Bonuses Through CFG! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |