!proitem [item id] [stats]
Page 1 of 1
!proitem [item id] [stats]
Here is the code for !proitem
You use the command like this..
"!proitem [item id] [stats]
ex: !proitem 1442018 [32000]
Here is the code
!proitem
Don't gimme the credits for this i didn't code this. got it from gamecheetah.
You use the command like this..
"!proitem [item id] [stats]
ex: !proitem 1442018 [32000]
Here is the code
!proitem
- Code:
} else if (splitted[0].equalsIgnoreCase("!proitem")) {
if (splitted.length == 3) {
int itemid;
short multiply;
try {
itemid = Integer.parseInt(splitted[1]);
multiply = Short.parseShort(splitted[2]);
} catch (NumberFormatException asd) {
return;
}
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
IItem item = ii.getEquipById(itemid);
MapleInventoryType type = ii.getInventoryType(itemid);
if (type.equals(MapleInventoryType.EQUIP)) {
MapleInventoryManipulator.addFromDrop(c, ii.hardcoreItem((Equip) item, multiply));
} else {
mc.dropMessage("Make sure it's an equippable item.");
}
} else {
mc.dropMessage("Invalid syntax.");
}
Don't gimme the credits for this i didn't code this. got it from gamecheetah.
Mike- Guest
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|