Maple Factory
Would you like to react to this message? Create an account in a few clicks or log in to continue.

!proitem [item id] [stats]

Go down

!proitem [item id] [stats] Empty !proitem [item id] [stats]

Post  Mike Sat Jul 04, 2009 1:32 pm

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
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


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum