I was needing a script for inquisition , so when you kill a boss , a teleport appears on the room ,for a period of time, then it will disappear
so..this is my try
i did it for a Mino corpse....id 2830
CODE
local IdCreature = 2830
local TeleportInPos = { x = xxx, y = yyy, z = z}
local TeleportToPos = { x = xxx, y = yyy, z = z}
local timeToRemove = 30
function onDeath(corpse,killer)
If corpse == IdCreature then
doCreateTeleport(1387, TeleportToPos, TeleportInPos)
addEvent(doRemoveTeleport, timeToRemove * 1000)
end
Ok , i dont even know if it works, cuz i dont know where should i put the file and what should i put on actions.xml , i got tfs 0.3
thanks
so..this is my try
i did it for a Mino corpse....id 2830
CODE
local IdCreature = 2830
local TeleportInPos = { x = xxx, y = yyy, z = z}
local TeleportToPos = { x = xxx, y = yyy, z = z}
local timeToRemove = 30
function onDeath(corpse,killer)
If corpse == IdCreature then
doCreateTeleport(1387, TeleportToPos, TeleportInPos)
addEvent(doRemoveTeleport, timeToRemove * 1000)
end
Ok , i dont even know if it works, cuz i dont know where should i put the file and what should i put on actions.xml , i got tfs 0.3
thanks