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

Scripter PAY JOB 10 Euro Simpel one script

Status
Not open for further replies.

Acrenactive

★Designer★
Joined
Mar 21, 2013
Messages
224
Reaction score
55
Location
Los Angels L.A
Hello Guys!

i use 0.4 tfs and is 8.6

I have now solved my old problem with this script but I now have a new problem, why it would not teleporting players to the position. that it say in script a position there should tp the players to.
can someone help me with this why this dont work? :rolleyes:


Pay before job 5 euro and after 5 euro paypal.



local createpos = {x=705,y=1246,z=5}
local topos = {x=748,y=1296,z=7}
local msg = "Eleminator Boss TP has now closed! It will open again in 1 Hours!"
local timetoclose = 60 -- in second

local function remove()
local tp = getTileItemById(createpos,1387).uid
if tp ~= 0 then
doRemoveItem(tp)
doBroadcastMessage(msg)
end
end

function onThink(interval)
local tp = doCreateItem(1387, 1, createpos)
doItemSetAttribute(tp, "aid", 37720)
doBroadcastMessage("Eleminator Boss TP is now open!\nCatch the teleport within "..timetoclose.." seconds quickly! Located in Underground Depo.")
addEvent(remove,timetoclose*1000)
return true
end
 
I suggest that you save your money instead of paying a scripter.

There are two easy solutions to this issue:
  • Attach a movement script (onStepIn) to the action ID '37720'. You haven't mentioned whether you have a movement script or not, but it looks like you don't have one.
  • Make use of the variable 'topos' to set the destination, and use 'doCreateTeleport' instead of 'doCreateItem' (remove doItemSetAttribute while you're at it).
 
Replace:
Code:
local tp = doCreateItem(1387, 1, createpos)
With:
Code:
local tp = doCreateTeleport(1387, topos, createpos)
 
Code:
local createpos = {x = 705, y = 1246, z = 5}
local topos = {x = 748, y = 1296, z = 7}
local timetoclose = 60 -- in second
local msg = "Eleminator Boss TP is now open!\nCatch the teleport within " ..timetoclose.. " seconds quickly! Located in Underground Depo."

local function removeTp(item)
    return doRemoveItem(item.uid)
end

function onThink(interval)
    local tp = doCreateTeleport(itemid, topos, createpos)
    doSetItemActionId(tp.uid, 37720)
    doBroadcastMessage(msg)
    addEvent(removeTp, timetoclose * 1000, tp)
    return true
end

Such simple scripts you should put on request/support forum.
 
Last edited:
Status
Not open for further replies.
Back
Top