Apollos
Dude who does stuff
Working on boots that stop slow walking on certain tiles. The concept is apparently beyond my scripting skills, I may be way off but this is what I have so far, it causes speed to double every tile until server crash.
Lua:
function onStepIn(cid, item, position, fromPosition)
if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 2641 then
print(getCreatureSpeed(cid))
doChangeSpeed(cid, getCreatureSpeed(cid) + 100)
end
return true
end
function onStepOut(cid, item, position, fromPosition)
if getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 2641 then
print(getCreatureSpeed(cid))
doChangeSpeed(cid, getCreatureSpeed(cid) - 100)
end
return true
end