Paxiz submitted a new resource:
Teleport with level range TFS1.3 - teleport tile with level range for tfs 1.3
Read more about this 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...