A Little Help Here, Please

01/30/2009 16:22 java1#1
I am trying to add Ninja stuff on my server. Started for Katanas.
They appear in my bag and also in the floor, but when I try to equip them, it appears a message saying that the item is not implemented, as you can see in the following svreenshot:

[Only registered and activated users can see links. Click Here To Register...]

can someone help me fixing this bug? or tell me how to, at least?
I don't need anyone to do it for me, I just need a few tips.
Thanks in advance
01/30/2009 18:37 _Emme_#2
Probably this is how I would do in my source:

Quote:
if (Item.ID == KatanaID)
{
Item it = MyChar.Equipment[5];
MyChar.Inventory.Add(it);
MyChar.Equipment[5] == Item;
}

You should get it..
01/30/2009 19:49 java1#3
thank you, Emme, for your help.
that part is done now. I could equip the item, but it doesnt show on the char.
i changed everything based on pictures, even the texture...
i was thinking the problem could be in the Thumbs.db file, but it is encrypted.
anyone has any idea how to open/edit it?
01/31/2009 00:08 tao4229#4
You can't use a prefix for the itemID as 600.


The client handles a right-click on an item, finds the equip slot, and sends a 1009/ItemUsagePacket/0x3f1. Item using(like exp ball using) and equipping (like armor) are the same packet, same subtype, just one has an equip slot, and the other uses 0 as the equip slot.
If the client doesn't recognize the prefix(the first 3 digits, such as 600 for katana, 421 for backsword, etc) it sends it as 0, and the server handles it as item USAGE, not equipping.

Just use an itemid prefix like 430 or something that's not being used.