• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

doTeleportThing

Sherice

Sky&Wind
Joined
Jan 20, 2012
Messages
183
Reaction score
7
Location
Sweden
Hey everyone! -- I need a lil help here, how do I define the "thing" here?:

Code:
function onThink(cid)
    doTeleportThing(cid, {x = 1019, y = 1055, z = 7})
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end

My guess is that onThink(cid) doesn't work in movements?
The error says that the "thing" cannot be found in "doTeleportThing". -- solved!


Anyways, my real intention is to make so you start a timer when you step on something and when you step out, the timer is stopped, but will continue on the time it was stopped, if you step in again.
When the timer has reached a specific time... something happens! :w00t:

I just experimented around some (above was an experiment, don't ask) :p
 
Last edited:
How should it know what to teleport when it's onThink?

So basicly you mean that on "x" time it should teleport the thing there. But what should it teleport?

Use onStepIn & onStepOut instead
 
Yeah, I got it, I'm new in scripting so I don't understand some things :p
Like how to use stopEvent(). Could you tell me how, please?

Thanks. :D

Btw, sorry if I'm asking too much :o
 
Back
Top