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

Kill Monster and Create Teleport

Reyn

On to the next One
Joined
May 15, 2010
Messages
259
Reaction score
1
Location
Germany ;3
Okai i need a script which does exactly what is told in the title
i tried some of those scripts out . but they dont work for my server
im using tfs 0.3.6pl1
someone mind helping me out? :S
regards
reyn
 
Last edited:
[04/12/2015 16:32:07] [Warning - Monster::Monster] Unknown event name - tzealquest
[04/12/2015 16:32:07] [Warning - Monster::Monster] Unknown event name - tzealquest
[04/12/2015 16:32:07] [Warning - Monster::Monster] Unknown event name - azerus

that is a error on console!
 
I use this one in my server:

local tpId = 1387
local tps = {
["Demon"] = {pos = {x=927, y=389, z=7}, toPos = {x=916, y=390, z=8}, time = 30}, --- First Position is the one where the TP is going to appear, the second one where it will take the players.
}

function removeTp(tp)
local t = getTileItemById(tp.pos, tpId)
if t then
doRemoveItem(t.uid, 1)
doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
end

function onDeath(cid)
local tp = tps[getCreatureName(cid)]
if tp then
doCreateTeleport(tpId, tp.toPos, tp.pos)
addEvent(removeTp, tp.time*1000, tp) -- How long the TP is gonna stay there for.
end
return TRUE
end
 
Back
Top