whats wrong with this script?
it's supposed to move player to the right when stepped on, remove item, create item at player pos.x + 1, so player keeps moving to the right.
Code:
function onStepIn(cid, item, position, fromPosition)
pos = getCreaturePosition(cid)
doRemoveItem(item.uid, 1)
doCreateItem(7454,1,{pos.x + 1, pos.y, pos.z})
doMoveCreature(cid, 1)
return TRUE
end
function onStepOut(cid, item, position, fromPosition)
end
it's supposed to move player to the right when stepped on, remove item, create item at player pos.x + 1, so player keeps moving to the right.