This is a Mini Version of Magic Barrel
My friend told me that some server had a Magic Barrel and you stand on it and say I want blahblahblah and it drops. I decided to make a mini version.
You stand on the barrel in FM and type @roids @specs @snailme or @GM-Hat and it drops
Copy and paste this is PlayerCommands.java and compile.
I'm pretty sure this works. If theres any problems let me know.
My friend told me that some server had a Magic Barrel and you stand on it and say I want blahblahblah and it drops. I decided to make a mini version.
You stand on the barrel in FM and type @roids @specs @snailme or @GM-Hat and it drops
Copy and paste this is PlayerCommands.java and compile.
PHP:
} else if (splitted[0].equals("roids") || splitted[0].equals("specs") || splitted[0].equals("snailme") || splitted[0].equals("GM-Hat")) {
if (player.getMap().getId() == 910000000) {
if (player.getPosition().y > -17 && player.getPosition().x >= 335 && player.getPosition().x <= 365) {
int itemId = splitted[0].equals("roids") ? 2022162 : splitted[0].equals("specs") ? 1022082 : splitted[0].equals("snailme") ? 2210006 : 1002140;
player.getMap().spawnItemDrop(player.getObjectId(), player.getPosition(), player, new Item(itemId, (byte) 0, (short) 1), player.getPosition(), true, true);
player.dropMessage("Your wish is my command.");
} else {
player.dropMessage("You must be on the magic barrel.");
}
} else {
player.dropMessage("You must be on the Free Market.");
}
}
Last edited by a moderator: