WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({2433,7438,2390,2400,2408,2446}, itemEx.itemid) then
[COLOR="#FF0000"]doItemSetAttribute(itemEx.uid, "protection", fire, 100)[/COLOR]
doItemSetAttribute(itemEx.uid, "description", " 100% protection to fire. It Belongs To ".. getCreatureName(cid) .. ".")
doSendMagicEffect(toPosition,30)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end
Im trying to make it work >_< but i cant find the right line ..also trying to make one that add 30% of current hp [when equip add 30% of maxhealth to player untill he unequip
tyty
- - - Updated - - -
bamp