• 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!

Boots of Water Walking

valivan601

New Member
Joined
Apr 13, 2011
Messages
365
Reaction score
1
Hello can anyone help me with this script i want that a player walk on tiles only if he's using a boots waterwalking if he isnt using he canot move and take same drowning damage.

tiles of walkable water : 4820-4821-4822-4823-4824-4825
boots of waterwalking id: 2358

also when i use this effect to walk on the water it works fine but if i reload movements it crashes the server

Code:
function onStepIn(cid, item, pos, lastPosition, fromPosition, toPosition, actor)
	return doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end
Code:
<movevent type="StepIn" itemid="4820;4821;4822;4823;4824;4825" event="script" value="waterwalk.lua"/>
 
Last edited:
Lua:
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
 
i use it with movements?

Code:
<movevent type="StepIn" itemid="4820;4821;4822;4823;4824;4825" event="script" value="waterwalk.lua"/>
 
i use it with movements?

Code:
<movevent type="StepIn" itemid="4820;4821;4822;4823;4824;4825" event="script" value="waterwalk.lua"/>

Yup :) you could even do it without itemid, but it would load everytime someone walks somewhere :p also i made so you can add multiple boots :) incase maybe you wanna make free one / donate one :p
 

Similar threads

Back
Top