• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

Teleport with level range TFS1.3

Paxiz

Premium User
Premium User
Joined
Mar 21, 2024
Messages
44
Solutions
1
Reaction score
21
Location
~pl /opt
Paxiz submitted a new resource:

Teleport with level range TFS1.3 - teleport tile with level range for tfs 1.3

local destinations = {
[1] = Position(500, 500, 7), -- level 1–50
[2] = Position(1000, 1000, 7), -- level 51–100
[3] = Position(1500, 1500, 7), -- level 100+
}

function onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return true
end

local level = creature:getLevel()
local destination

if level <= 50 then -- level 1-50 check up
destination = destinations[1]
elseif level <= 100 then -- level 51-100 check...

Read more about this resource...
 
Back
Top