Help with this code

08/06/2009 14:07 killermickle#1
In other.cs I edited this
Code:
 if (Charr.Profs.Contains(WeaponType(item[0])))
                                                if ((uint)Charr.Profs[WeaponType(item[0])] >= item[2])
                                                    Returning = true;
                                                else if (Charr.MyClient.Status == 8)
                                                    Returning = true;
                                                else
                                                    Returning = false;
inside
Code:
public static bool CanEquip(string iteM, Character Charr)
To try and make GMs be able to equip any item ignoring class and prof ect.
unfortunatly it doesnt work atall... I have no idea though whether I've done this completely wrong or if the client wont let me...

I know the client not allowing me sounds strange but the Class&Profs are still red when you hover over the item and I wouldnt think other.cs could set colour of text.
08/06/2009 16:21 xellios#2
public static bool CanEquip(string iteM, Character Charr)
ehm i think u gotta correct iteM lol
and yes it checks clientside too
08/06/2009 16:37 killermickle#3
Ah thanks. on another note xD, do you know where the client specifies effects for armor?
like the fire thing by your feet for conquest armor.

also, do you know where the thing is for unequipping items?
i cant unequip any :/
08/06/2009 18:43 xellios#4
Do you mean :
3DEffect.ini and Armor.ini in the ini folder of your co folder?
and by unequipping you have to put that in server-side
08/06/2009 19:57 killermickle#5
Quote:
Originally Posted by xellios View Post
Do you mean :
3DEffect.ini and Armor.ini in the ini folder of your co folder?
and by unequipping you have to put that in server-side
If thats the one that makes the flame thingy here
[Only registered and activated users can see links. Click Here To Register...]

I've had a look through them and I couldnt see any effects in Armor.ini,
And no textures in Armor matching ones in 3deffect
08/07/2009 01:02 raidenx123#6
its in effect folder :) (obvious)
08/07/2009 01:13 killermickle#7
Quote:
Originally Posted by raidenx123 View Post
its in effect folder :) (obvious)
:l, I mean where is the file that sets the effect one you equip conquest armor
08/07/2009 02:45 raidenx123#8
3Deffect.ini is where the looptime, meshID,etc is but im pretty sure it doesnt contain when that armor equips that it happens :/ and im to lazy to check so gl with that xD
08/07/2009 02:46 killermickle#9
Quote:
Originally Posted by raidenx123 View Post
3Deffect.ini is where the looptime, meshID,etc is but im pretty sure it doesnt contain when that armor equips that it happens :/ and im to lazy to check so gl with that xD
I know that xD, im asking where the armor ones are becuase in armor.ini there arnt any effects
08/07/2009 02:54 raidenx123#10
well duh those are the mesh,texture,and item ID's mainly
08/07/2009 03:28 killermickle#11
Quote:
Originally Posted by raidenx123 View Post
well duh those are the mesh,texture,and item ID's mainly
...

so where are the effects for amor?