Fan and Tower

01/23/2012 16:03 warzie005#1
Is this good?
I putted it in UseItem.cs.

Code:
                #region HeavenFan
                case 201003:
                case 201004:
                case 201005:
                case 201006:
                case 201007:
                case 201008:
                case 201009:

                    {
                        user.Equipment.EquipItem(item, ItemLocation.Fan);
                        break;
                    }
                #endregion
and

Code:
                #region TowerFan
                case 202009:
                    {
                        user.Equipment.EquipItem(item, ItemLocation.Tower);
                        break;
                    }
                #endregion
Only it doesn't work. I tried to put it on but it still keep saying;
Unknown item usage for item ID: 201009.
01/23/2012 16:10 Kiyono#2
That's for items that have effects (e.g. expball, potions, etc.) You need to stick your code in the equipment handler.
01/23/2012 16:13 warzie005#3
Quote:
Originally Posted by Kiyono View Post
That's for items that have effects (e.g. expball, potions, etc.) You need to stick your code in the equipment handler.
In which .cs is that?
01/23/2012 16:47 Kiyono#4
I don't even know what source you are using.
01/23/2012 16:50 warzie005#5
Quote:
Originally Posted by Kiyono View Post
I don't even know what source you are using.
I am using Albetros Source.
01/23/2012 17:00 pro4never#6
Calculations>Items

There's a method in there that handles what item ID's get what item position.

It's already fully coded for fan/tower I simply commented it out so that they could not be equipped.
01/23/2012 19:15 Spirited#7
Equipping equipment is a different subtype of packet 1009. It doesn't use the "Use Item" subtype which brings you to that list. It might be that you don't have a handler for that position and for that set of items.