private final static Random rand = new Random();
private static Randomizer instance = new Randomizer();
public static Randomizer getInstance() {
return instance;
}
import java.util.Random;
public void sendPackets(MapleClient c) {
c.announce(MaplePacketCreator.spawnMonster(monster, true));
if (monster.getId() == 9300166 || monster.getId() == 8810026) {
TimerManager.getInstance().schedule(new Runnable() {
@Override
public void run() {
killMonster(monster, (MapleCharacter) getAllPlayer().get(0), false, false, 4);
}
}, 4500 + Randomizer.nextInt(500));
}
import java.util.Random;
if (monster.getId() == 9300166 || monster.getId() == 8810026) {
TimerManager.getInstance().schedule(new Runnable() {
@Override
public void run() {
killMonster(monster, (MapleCharacter) getAllPlayer().get(0), false, false, 4);
}
}, 4500 + new Random().nextInt(500));
}
Just forgot the import. Anyone should know how to add that. Anyways added it in.I don't think you need more than this:
PHP:import java.util.Random;
PHP:if (monster.getId() == 9300166 || monster.getId() == 8810026) { TimerManager.getInstance().schedule(new Runnable() { @Override public void run() { killMonster(monster, (MapleCharacter) getAllPlayer().get(0), false, false, 4); } }, 4500 + new Random().nextInt(500)); }
This was already released and it was much better originally. No offense but there is no need for this. Jeremy was even kind enough to make a mini release library of all his commands. Of course I'm not a fan of him after having worked with him, but thats another story.
For what you're using these bombs for, why wouldn't you just use this?
http://forum.ragezone.com/f427/bomb-commands-615440/
It's not xml at all. Everyone says that. Its MapleMap. Or I guess both work? But I tried the xml way before.Thats because of the XML brah. it has nothing to do with the code. Jeremy's code is fully working, I've seen it used in the server I was in with him. Your code is unnecessarily long and unneeded with Jeremy's code still out there, as Chris has just shown you the link you requested.
3 wurds
L ----- O ----- L
It is the XML dud. How else you du u tink teh b0mbz w1ll expl0d?>?!
Teh xMl fur teh b0mbz is wut gib effex if nuuu XmL den nuu b0mbz?
MaeepulMep.jaba is teh place to configUrz, nut mek teh eff3ctz. U dig me?
That is just GM commands. Most sources bombs either don't explode or don't hit the player.
Why do you do that? Is it because you are trying to hint that they are inferior, by purposely ATTEMPTING to dumb down your speech, but in the end looking like a dumbass?3 wurds
L ----- O ----- L
It is the XML dud. How else you du u tink teh b0mbz w1ll expl0d?>?!
Teh xMl fur teh b0mbz is wut gib effex if nuuu XmL den nuu b0mbz?
MaeepulMep.jaba is teh place to configUrz, nut mek teh eff3ctz. U dig me?
Same with half the people on here.Why do you do that? Is it because you are trying to hint that they are inferior, by purposely ATTEMPTING to dumb down your speech, but in the end looking like a dumbass?
3 wurds
L ----- O ----- L
It is the XML dud. How else you du u tink teh b0mbz w1ll expl0d?>?!
Teh xMl fur teh b0mbz is wut gib effex if nuuu XmL den nuu b0mbz?
MaeepulMep.jaba is teh place to configUrz, nut mek teh eff3ctz. U dig me?
That is just GM commands. Most sources bombs either don't explode or don't hit the player.
@morons
You know that was posted many many months ago right? Learn to read please.