It's more of a question than a request.
I see many scripts using the onKill or onDeath.
I'm planning to do some onKill -"monstername" doCreateTeleport x,y,z setCountdown 20 seconds
when "Countdown"==0 doremoveitem x,y,z
I don't know if you understand that but here's question:
I couldn't find a "function" to put into the lib called "onKill" or "onDeath" and it isn't in my lua lib yet. I use TFS 0.3.6pl1(cryingDamson) - console
So, I don't know if i'm looking for a function or a lua script outside the lib..
I haven't really understood if I need the functions to use the function i.e. you may include a function in scripts if you declare what it does, but if you use the function as a "function" without declaring how it works, it needs somewhere to get that information from...
So. I'm a bit confused about this "onKill and onDeath". Could someone explain it to me, and maybe help me with the script I need:
It's an event, a boss spawns(or is alredy put there through a mapeditor), how you get there doesen't matter, I'll see to that, but what I want is that you have to kill the boss that spawns before you can get out from this room. Much like the "In service of yalahar" boss from real Tibia. It creates a teleport that leads to a reward room when the boss have been killed.
Thanks in advance, would be happy to just understand how the function works, if I need to look for the function or search for a script without implenting the function to my lib...
(Yeah I searched and looked through some scripts about onKil land onDeath but I didn't get any wiser).
I see many scripts using the onKill or onDeath.
I'm planning to do some onKill -"monstername" doCreateTeleport x,y,z setCountdown 20 seconds
when "Countdown"==0 doremoveitem x,y,z
I don't know if you understand that but here's question:
I couldn't find a "function" to put into the lib called "onKill" or "onDeath" and it isn't in my lua lib yet. I use TFS 0.3.6pl1(cryingDamson) - console
So, I don't know if i'm looking for a function or a lua script outside the lib..
I haven't really understood if I need the functions to use the function i.e. you may include a function in scripts if you declare what it does, but if you use the function as a "function" without declaring how it works, it needs somewhere to get that information from...
So. I'm a bit confused about this "onKill and onDeath". Could someone explain it to me, and maybe help me with the script I need:
It's an event, a boss spawns(or is alredy put there through a mapeditor), how you get there doesen't matter, I'll see to that, but what I want is that you have to kill the boss that spawns before you can get out from this room. Much like the "In service of yalahar" boss from real Tibia. It creates a teleport that leads to a reward room when the boss have been killed.
Thanks in advance, would be happy to just understand how the function works, if I need to look for the function or search for a script without implenting the function to my lib...
(Yeah I searched and looked through some scripts about onKil land onDeath but I didn't get any wiser).