• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

easy item add attribute script problem

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

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?
 
yes extraattack works 2, but i need like addsword skill or absordpercent all =/ and those ones doesnt work
 
Back
Top