[Add-on] How to change new char clothes
This is a very simple tutorial, which I can hardly do properly because I'm at school, but here it goes- :D:
You know when you make a character and in most sources it has those weird/queer looking clothes on... You can now decide to change them :rolleyes:, Lets get started ~~~~
Step 1: Open Netbeans IDE
Step 2: Find your project folder (server) and open it.
Step 3: Locate "CreateCharHandler.java spelled exactly like that.
Step 4: Once you open the said java file, scroll down a bit until you see ", that is where the handler draws items from :O: .
Step 5: Now you will go to the right a little bit and you'll see the item ID's in which the new player will be forced to wear, if you dont see an id, it will just say for example , if it says that just change that to the id.
Step 6: Save and compile, if you messed with things you werent supposed to, the players cant create a character :grr: .
Have fun! :thumbup:
Re: [Add-on] How to change new char clothes
Err, easy to do.
But, whatever 1+ for you sir.
Re: [Add-on] How to change new char clothes
Yeah, I know its easy to do, but i saw so many threads requesting this :)
And thanks.
Re: [Add-on] How to change new char clothes
I don't think i've seen this posted before.
good job.
+1 for you sir²
Re: [Add-on] How to change new char clothes
Quote:
Originally Posted by
bestklin2
I don't think i've seen this posted before.
good job.
+1 for you sir²
LOL, did you like copy paste the other guy's post :lol:
Thanks anyways
Re: [Add-on] How to change new char clothes
nice job even though i didn't used yet
Re: [Add-on] How to change new char clothes
Re: [Add-on] How to change new char clothes
Don't forget to set the position.
setPosition((byte) x);
x : Integer
Re: [Add-on] How to change new char clothes
Quote:
Originally Posted by
kevinweekends
do you have to do that?
Yes, you need to add it or else the It won't know where to place the equip.
Here is an example of my source:
PHP Code:
MapleInventory equip = newchar.getInventory(MapleInventoryType.EQUIPPED);
IItem eq_top = MapleItemInformationProvider.getInstance().getEquipById(1052053);
eq_top.setPosition((byte) -5);
equip.addFromDB(eq_top);
IItem eq_bottom = MapleItemInformationProvider.getInstance().getEquipById(1060108);
eq_bottom.setPosition((byte) -6);
equip.addFromDB(eq_bottom);
IItem eq_shoes = MapleItemInformationProvider.getInstance().getEquipById(1072256);
eq_shoes.setPosition((byte) -7);
equip.addFromDB(eq_shoes);
IItem eq_weapon = MapleItemInformationProvider.getInstance().getEquipById(1302000);
eq_weapon.setPosition((byte) -11);
equip.addFromDB(eq_weapon);
IItem pHat = MapleItemInformationProvider.getInstance().getEquipById(1002493);
pHat.setPosition((byte) -101);
equip.addFromDB(pHat);
IItem pFace = MapleItemInformationProvider.getInstance().getEquipById(1010003);
pFace.setPosition((byte) -102);
equip.addFromDB(pFace);
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4161001, (byte) 0, (short) 1));
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4006001, (byte) 0, (short) 200));
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4006000, (byte) 0, (short) 200));
newchar.saveToDB(false);
Re: [Add-on] How to change new char clothes
The position should already be there, if they dont have it then they havea messed up src.
Re: [Add-on] How to change new char clothes
Quote:
Originally Posted by
Soulfist
The position should already be there, if they dont have it then they havea messed up src.
Nope, It won't be there if It isn't Bottom, Top, Shoes, or Weapon.
If they want to add Gloves, Accessory, Hat, Etc. They would need to add the position.
---------- Post added at 10:04 PM ---------- Previous post was at 10:03 PM ----------
and Also, You can add:
PHP Code:
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4161001, (byte) 0, (short) 1));
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4006001, (byte) 0, (short) 200));
newchar.getInventory(MapleInventoryType.ETC).addItem(new Item(4006000, (byte) 0, (short) 200));
This will add Magic Rock and Summoning Rock to your Inventory when you create your character. You can remove the first item though, That's the guide book.
Re: [Add-on] How to change new char clothes
This is a guide to teach them how to change clothes, not how to add things. If you want me to make that i will, or you can release it
Re: [Add-on] How to change new char clothes
No, I was only adding to your release. It wasn't very specific.
Re: [Add-on] How to change new char clothes