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

Compiling GOD/GM create tp from place to place TFS 1.0

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,085
Solutions
15
Reaction score
379
Location
Sweden
YouTube
Joriku
Is it possible to compile/make it possible for gods and gms to create an tp and choose the position?
Example: 8.6 OTS it was possible to add a command as /addtp witch was like /attr pos...
 
Lua:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end
   
    local pos = {x = 1020, y = 1022, z = 7} -- where will create the tp?
    local TP_item = 1387 -- what is the id?
    local Item_ = Game.createItem(TP_item, 1, pos)
    Item_:setDestination({x = 1020, y = 1022, z = 7}) -- set destination
   
    return false
end
 
Back
Top