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

Teleport player after 30 seconds

labbadia

New Member
Joined
Aug 29, 2010
Messages
51
Reaction score
1
Hello!
i want one script to teleport a player after kill a monster (but 30 seconds after he kill for he get loot) (This is for killing in the name quest...bosses)

how can i do thatw
thank you!
 
LUA:
local time =
local pos =
function onKill(cid,target)
 if getCreatureName(target) == "rat" then
   addEvent(doTeleportThing,time * 1000,cid,pos,false)
end
return true
end
 
thanks , but where i put that?
and how edit the script for 30 seconds and to go teleport?

LUA:
local time = 30
local pos = {x=666, y=666, z=7}
function onKill(cid,target)
 if getCreatureName(target) == "Monster Name" then
   addEvent(doTeleportThing,time * 1000,cid,pos,false)
end
return true
end
 
I believe it's a creaturescript.

teleport.lua

LUA:
	<event type="kill" name="teleport" event="script" value="teleport.lua"/>

That should work, right?

Red
 
don't forgett to add this in
data/creaturescripts/scripts/login.lua
LUA:
registerCreatureEvent(cid, "teleport")

Add that line somewhere above the last lines with "return 1/true".
 
I need a script that after entry into the teleport him he has 30 seconds to leave the room for the teleportation of output or be kicked by the script.
 
Back
Top