• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help script crashing server

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
 
solved the problem was here

if not(isInArray(boots, getPlayerSlotItem(cid, 8))) then

then i change to this

if not (getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid == 2358) then
 
And btw, @TibiaGameHost that was a script to use waterwalking boots so you were able to walk on water tiles if you had those boots equiped :)
 
Back
Top