Ashtar
ShadowRealm.online
- Joined
- May 1, 2009
- Messages
- 312
- Reaction score
- 102
well guys my idea is to make a script in which if i use an special scroll over an item for example a demon armor it will grant the player and special health bonus of 30% hp for example, i have a similiar script
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({2447, 5952, 2400, 7959, 7735, 7405, 8927, 7453, 7958, 8929, 6259, 8925}, itemEx.itemid) then
doItemSetAttribute(itemEx.uid, "description", " 2.5x Attack Speed. It belongs to ".. getCreatureName(cid) .. ".")
doItemSetAttribute(itemEx.uid, "attackspeed", 200)
doPlayerSendTextMessage(cid, 19, "You have upgraded your weapon. Congratulations.")
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end
in which using a item over a weapon grants that weapon an attack speed bonus, i just want to change the speed attack to a health percentage bonus.
can someone please help me with this?
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({2447, 5952, 2400, 7959, 7735, 7405, 8927, 7453, 7958, 8929, 6259, 8925}, itemEx.itemid) then
doItemSetAttribute(itemEx.uid, "description", " 2.5x Attack Speed. It belongs to ".. getCreatureName(cid) .. ".")
doItemSetAttribute(itemEx.uid, "attackspeed", 200)
doPlayerSendTextMessage(cid, 19, "You have upgraded your weapon. Congratulations.")
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end
in which using a item over a weapon grants that weapon an attack speed bonus, i just want to change the speed attack to a health percentage bonus.
can someone please help me with this?