• 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

TFS 1.3 Random Teleport

Paxiz

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

TFS 1.3 Random Teleport - movement script for random teleleport

Script random_teleport.lua in your movements:
Code:
local TELEPORT_DESTINATIONS = {
    Position(1000, 1000, 7), -- teleport 1
    Position(1020, 1020, 7),  -- teleport 2
    Position(1025, 1025, 7),  -- teleport 3
    Position(1030, 1030, 7)  -- teleport 4
}

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

    local destination = TELEPORT_DESTINATIONS[math.random(#TELEPORT_DESTINATIONS)]...

Read more about this resource...
 
Back
Top