Ashtar
ShadowRealm.online
- Joined
- May 1, 2009
- Messages
- 312
- Reaction score
- 102
well guys i have a simple problem with this scripts, its an action that lets the player using an item to upgrade their weapons attack speed
the problem is that in the line do ItemSerAttribute i would like to change the attackspeed for exaple "skillword, 20" but it simply doesnt works =/,it only works with the "Attack speed", what should i do tho fix this?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({2447, 5952, 2400, 7959, 7735, 7405, 8927, 7453, 7958, 8929, 2390, 6259, 8925}, itemEx.itemid) then
doItemSetAttribute(itemEx.uid, "description", " faster 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
the problem is that in the line do ItemSerAttribute i would like to change the attackspeed for exaple "skillword, 20" but it simply doesnt works =/,it only works with the "Attack speed", what should i do tho fix this?