[HELP] Thread.sleep(5000);

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
plim
Posts: 226
Joined: Mon Sep 01, 2008 3:39 pm
Location: Catalunya, Barcelona

Re: [HELP] Thread.sleep(5000);

Post by plim »

Image
User avatar
valdaron
Posts: 199
Joined: Mon Apr 18, 2011 3:11 pm
Location: Poland

Re: [HELP] Thread.sleep(5000);

Post by valdaron »

private CreatureSay _packet; Here _packet is never read locally...
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: [HELP] Thread.sleep(5000);

Post by jurchiks »

That's why I said... the method returns a boolean, until the answer is given, nothing else happens (and it is only reasonable, otherwise stuff might break/exploits may occur). If it was a void it wouldn't care because it would just call the bypass and do the next thing, but bypasses must give an answer before continuing.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
plim
Posts: 226
Joined: Mon Sep 01, 2008 3:39 pm
Location: Catalunya, Barcelona

Re: [HELP] Thread.sleep(5000);

Post by plim »

valdaron wrote:private CreatureSay _packet; Here _packet is never read locally...
Seriously? OMG! So delete it. I'm sorry but, if you don't have Java knowledge you should start with something easier first... This is just a warning because I finally didn't used these variable. Instead of being thankful of someone trying to help... -.-

And yeah, I don't know where are you using this bypass method but you should return true after succeed in sending the packets.

I've updated the pastebin, last time I do it. You must figure out by yourself the rest of it.
Image
User avatar
valdaron
Posts: 199
Joined: Mon Apr 18, 2011 3:11 pm
Location: Poland

Re: [HELP] Thread.sleep(5000);

Post by valdaron »

Easy boy... (or girl)
Nobody is born an expert in java.
I appreciate your help and thank you very much for your time, but as a beginner I need more time to analyze the code.

Regards.
User avatar
plim
Posts: 226
Joined: Mon Sep 01, 2008 3:39 pm
Location: Catalunya, Barcelona

Re: [HELP] Thread.sleep(5000);

Post by plim »

Girl, yes. So test it, you'll see it works fine :wink:

PD: sorry for being rude.
Image
Post Reply