Jump to content
Sign in to follow this  
thedopekid

[PI] Fixing Item Equip Slots [PI]

Recommended Posts

[B]What this fixes:[/B] Makes items wield in the correct slot when equipped.

First, goto ItemAssistant.java and find:
[code]if(c.duelRule[11] && targetSlot == 0) {[/code]
Now, right above this add:
[code] switch (wearID) {
case [B][FONT=Impact][COLOR="#FF0000"]####[/COLOR][/FONT][/B]://nameofitem
targetSlot =[B][FONT=Impact][COLOR="#FF0000"] #[/COLOR][/FONT][/B];
break;
} [/code]
Now, just change
[code]case ####:[/code]
to whatever your item id is. Also, change
[code]targetSlot = #;[/code]
to the slot you want the item to go to.

Example:
[code]
case 11694:
targetSlot = 3;
break;
[/code]
You can add as many items as you want after the break;. Just make sure you follow the same format including a break after the targetSlot statement.

[code]
Hat:
targetSlot = 0;
Cape:
targetSlot = 1;
Amulet:
targetSlot = 2;
Weapons:
targetSlot = 3;
Body:
targetSlot = 4;
Shield:
targetSlot = 5;
Legs:
targetSlot = 7;
Gloves:
targetSlot = 9;
Boots:
targetSlot = 10;
Ring:
targetSlot = 12;
Arrows:
targetSlot = 13;
[/code] Edited by thedopekid

Share this post


Link to post
Share on other sites
[quote name='justinmeeler']Or just use a equipment.dat editor. Nice job though.[/QUOTE]
This is for the beginners ;D.
[quote name='Boolean']Easy but thanks for sharing[/QUOTE]
Yes, very simple. I just noticed a lot of help topics with this subject.

Share this post


Link to post
Share on other sites
Thanks for your dedication towards helping the newer people to private servers. We don't get that much often anymore.

Share this post


Link to post
Share on other sites
[quote name='EvolvedBlitz']Thanks for contributing.[/QUOTE]

No problem, you've got some nice tutorials yourself.

[quote name='Mongoth']Thanks for your dedication towards helping the newer people to private servers. We don't get that much often anymore.[/QUOTE]

Yea, I noticed that;x. Shit sucks.

Share this post


Link to post
Share on other sites
what is the slot id for cape?

Share this post


Link to post
Share on other sites
Look like 10 lines above for "cape" and get the slot from there.

Share this post


Link to post
Share on other sites
may i ask, what is the number for the cape slot? because im trying to change my 'completionist cape' from the weapon slot to the cape slot... thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

×