sestorme
Member
How do add a haste without spell onCastSpell(cid, var) function, let's say OnUse? Any chance?
function onUse(cid, item, fromPosition, itemEx, toPosition)
local time = 60
function speedreturn()
doChangeSpeed(cid, -1000)
doPlayerSendTextMessage(cid, 19, "Haste is over.")
end
if item.itemid == 2349 then
doChangeSpeed(cid, 1000)
addEvent(speedreturn,time*1000)
doPlayerSendTextMessage(cid, 19, "You are hasted.")
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
end