valivan601
New Member
- Joined
- Apr 13, 2011
- Messages
- 365
- Reaction score
- 1
I have this script but it crashes the server when reload movements anyone knows what could be?
PHP:
<movevent type="StepIn" itemid="4820;4821;4822;4823;4824;4825" event="script" value="waterwalk.lua"/>
PHP:
local grounds = {4820, 4821, 4822, 4823, 4824, 4825}
local boots = {2358}
local msg = "You cannot go here!"
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(isInArray(grounds, item.itemid)) then
if(not isPlayer(cid)) then
return true
end
if not(isInArray(boots, getPlayerSlotItem(cid, 8))) then
doPlayerSendCancel(cid, msg)
doTeleportThing(cid, fromPosition, true)
return true
end
end
return true
end