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

Lua Create Teleport when killing monsters TFS 1.3

sok wack

New Member
Joined
Feb 15, 2009
Messages
5
Reaction score
1
Hello guys, I wonder if someone could help me in a script that when killing some monster is created a teleport for X seconds ..

I know they say there are many, I just have to search, but in truth I have already searched and none serves me.

I use OTXserver-v3_8

Which I understand is based on Tfs 1.3

Excuse my English, I use a translator.
 
Solution
You can code what happens when a monster dies in Lua.
Create an onDeath creature event in data/creaturtescripts

Register the creature event to the monster.
Retrieve the monster position, create the portal, perhaps add a timeout to remove the teleport after a while.

Interface:Creature Events
onDeath()

Metatable:Creature
getEvents()
registerEvent(name)
unregisterEvent(name)
You can code what happens when a monster dies in Lua.
Create an onDeath creature event in data/creaturtescripts

Register the creature event to the monster.
Retrieve the monster position, create the portal, perhaps add a timeout to remove the teleport after a while.

Interface:Creature Events
onDeath()

Metatable:Creature
getEvents()
registerEvent(name)
unregisterEvent(name)
 
Solution
Back
Top