Mr Erimyth
Member
Hell0o bros anyone can help me? i need use this script on tfs 1.3
function onUse (cid, item, fromPosition, itemEx, toPosition)
if isInArray({2433,7438,2390,2400,2408,2446}, itemEx.itemid) then
doItemSetAttribute(itemEx.uid, "name", "brutal " .. target:getName())
doItemSetAttribute(itemEx.uid, "description", "Special abilities: 2.5 attack speed. \nIt belongs to " .. player:getName() .. ".")
doItemSetAttribute(itemEx.uid, "attackspeed", 500)
doSendMagicEffect(toPosition,30)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end
function onUse (cid, item, fromPosition, itemEx, toPosition)
if isInArray({2433,7438,2390,2400,2408,2446}, itemEx.itemid) then
doItemSetAttribute(itemEx.uid, "name", "brutal " .. target:getName())
doItemSetAttribute(itemEx.uid, "description", "Special abilities: 2.5 attack speed. \nIt belongs to " .. player:getName() .. ".")
doItemSetAttribute(itemEx.uid, "attackspeed", 500)
doSendMagicEffect(toPosition,30)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return true
end