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

Teleport with level required

TheColt

New Member
Joined
Jul 31, 2011
Messages
82
Reaction score
2
I need a script for a teleport with lvl required (lvl 8, it will be in rookgaard), for tibia 7.6
 
wrote one fast, and very simple.

Add in movements.xml (change actionid 666 to anything)
PHP:
<movevent event="StepIn"  actionid="666" script="TP_FILE.lua" />

Lua:
local level = 8 --//What level do you need to pass?
local effect = CONST_ME_MAGIC_BLUE --//Which effect shoudl appear on the player? (Look in global.lua for more, check after "CONST_ME_")

function onStepIn(cid, item, position, fromPosition)
	if getPlayerLevel(cid) => level then
	TP_Pos = {x=, y=, z=}	--//Where should the tp go?
	else
	TP_Pos = {x=, y=, z=} --//Can't enter tp, where to go back?
	end

doTeleportThing(cid, TP_Pos)
doSendMagicEffect(TP_Pos, effect)
return TRUE
end
 
Back
Top