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

My first script - i need someone to check it

alramo

New Member
Joined
May 25, 2009
Messages
197
Reaction score
0
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
 
Your code in PHP tag
PHP:
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
This code CAN'T WORK. It's one big bug :(
 
Back
Top