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

Helmet of the deep dive?

Grehy

Killroy
Joined
Nov 21, 2008
Messages
2,631
Reaction score
33
Location
United States
I searched and couldn't find it, just need that to step on x tile you need to be wearing the helmet of the deep on your head, else it kicks you back. If you are wearing it, then it tps you
 
Code:
local destination = {x=100, y=100, z=7}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) then
		if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 5461 then
			doSendMagicEffect(position, CONST_ME_POFF)
			doTeleportThing(cid, destination)
			doSendMagicEffect(destination, CONST_ME_TELEPORT)
		else
			doTeleportThing(cid, fromPosition, true)
			doCreatureSay(cid, "You need to wear a Helmet of the Deep!", TALKTYPE_ORANGE_1)
		end
	end
end
Code:
	<movevent type="StepIn" uniqueid="5000" event="script" value="scriptname.lua"/>
 
Back
Top