(getiteminfo(getequipid(EQI_ARMOR),5)==16)
5 = equip , 16 = is Armor ( as far as i know... since it works..)
getiteminfo(getequipid(EQI_GARMENT),5)==4
5 = equip , 16 = is Garment
Loc: Equipment's placement. Values are:
2^8 256 = Upper Headgear
2^9 512 = Middle Headgear
2^0 001 = Lower Headgear
2^4 016 = Armor
2^1 002 = Weapon
2^5 032 = Shield
2^2 004 = Garment
2^6 064 = Footgear
2^3 008 = Accessory 1
2^7 128 = Accessory 2
the problem is that... for ex
when i equipped the Garment(with the card bonus) i get the + AGI only but...
when i equipped any armor i get the "Armor bonus" too ( +VIT )
its like. the bonus works even tho its not equipped on the proper slot( Head/Garment/Armor) as long as you have something equipped on it., the bonus effect will work
ive tried this too, but the same problem.
5 = equip , 16 = is Armor ( as far as i know... since it works..)
getiteminfo(getequipid(EQI_GARMENT),5)==4
5 = equip , 16 = is Garment
Loc: Equipment's placement. Values are:
2^8 256 = Upper Headgear
2^9 512 = Middle Headgear
2^0 001 = Lower Headgear
2^4 016 = Armor
2^1 002 = Weapon
2^5 032 = Shield
2^2 004 = Garment
2^6 064 = Footgear
2^3 008 = Accessory 1
2^7 128 = Accessory 2
the problem is that... for ex
when i equipped the Garment(with the card bonus) i get the + AGI only but...
when i equipped any armor i get the "Armor bonus" too ( +VIT )
its like. the bonus works even tho its not equipped on the proper slot( Head/Garment/Armor) as long as you have something equipped on it., the bonus effect will work
ive tried this too, but the same problem.
Code:
{ if (getequipisequiped(EQI_ARMOR)) { bonus bVit,5; } if (getequipisequiped(EQI_GARMENT)) { bonus bAgi,5; } },{},{}
Last edited by a moderator: