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

How do add in !proitem

3 posters

Go down

How do add in !proitem Empty How do add in !proitem

Post  xxmikexx Mon Jul 06, 2009 11:28 am

Here are the steps on adding in !proitem this time it should work.

1)Download This http://www.megaupload.com/?d=ASGAKD93
2)Go to \src\net\sf\odinms
3) Press Ctrl+F
4) Search MapleItemInformationProvider
5)Replace that one with the new one you downloaded
6)Ctrl F > Search NPCCONVERSATIONMANAGER
7)Replace that one with the new one you downloaded.
6)Go to gmcommands.java and add in this code.

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.");
}

Or if that code doesn't work add in this code

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 false;
}
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.(!proitem (Item ID) (Stat) Example: !proitem 9999999 32767");
}

Then compile it and it should work.

This is how you use it
!proitem [item id] [stats]

xxmikexx

Posts : 2
Join date : 2009-06-30

Back to top Go down

How do add in !proitem Empty Re: How do add in !proitem

Post  iSyr0s Wed Jul 08, 2009 7:45 pm

are you sure i should replace that files ?
iSyr0s
iSyr0s

Posts : 4
Join date : 2009-07-01

Back to top Go down

How do add in !proitem Empty Re: How do add in !proitem

Post  iSyr0s Wed Jul 08, 2009 8:12 pm

Bah, doesnt work. The java files are not for out repack when i compile i get errors cuz that java files have a different to the structure...

Aww i think we will need to read the Xotic java files and our java files to see what is missing T_T im to lazzy.. right now im working on some mounts , skills and boss stuff.. i want to add the Pink Bean to our server =)
iSyr0s
iSyr0s

Posts : 4
Join date : 2009-07-01

Back to top Go down

How do add in !proitem Empty Re: How do add in !proitem

Post  xxmikexx Fri Jul 10, 2009 1:18 pm

The java files i gave you aren't from xotic thier from oblivous repack. idk what the problem is i'll try figuring it out.

I think i know how to add pink bean in. Get Pink beans mob id and get me the wz file with pink bean in it. I'll use HaRepacker to get the xml file and give you. People will need to download the new mob.wz.

don't add in the cyngus skill i heard servers with cyngus skill are being sued first.

xxmikexx

Posts : 2
Join date : 2009-06-30

Back to top Go down

How do add in !proitem Empty I have a problem

Post  poopoocup Sun Jul 19, 2009 5:43 pm

Dude i was in a party with Regular. i was afk for a bit. Then When i com back Regular invites Kusix and hes a hacker. So i left the party then JackSchitte comes and says hes recording and says i support hacking. I do not hack i left right when Kusix joined so i do not support hacking. Theres my problem. The party leader invited him WHEN I WAS AFK. So i left when i came back so. I do not support hacking. My ign is HeroMan
poopoocup
poopoocup

Posts : 5
Join date : 2009-07-16

Back to top Go down

How do add in !proitem Empty ???????

Post  Raffles Wed Sep 30, 2009 4:30 pm

im confused how do u compile it? i looked at tutorials but they all are confusing

Raffles
Guest


Back to top Go down

How do add in !proitem Empty Re: How do add in !proitem

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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