I don't really know is this an apropriate place for such question, because I think my request could be achieved by modifing the source code, but because of the fact that I am going to update my version of TFS from changelog manually, I try to use as little modifications to the code as possible. So, without further empty words:
1. Is it possible (without modifing the source) to fire up a script when a given monster dies? Something like XML tag "onDeath script=..." blah blah blah. I think You got it, right? I could possibly use onDeath creaturescript, but performance of my server is very important to me, and using a script on each creature death could be too resource-consuming. Or maybe I don't know that it's alredy such mechanism used.
2. More important, does "RemoveItem" movement support using a script when someone removes item from container with given ActionID? I.E. I have a chest, with ActionID set to 31401, and I want to put something to player storage when he/she removes given object from that chest. So, will the server trigger a script if I just write something like this in movements.xml:
1. Is it possible (without modifing the source) to fire up a script when a given monster dies? Something like XML tag "onDeath script=..." blah blah blah. I think You got it, right? I could possibly use onDeath creaturescript, but performance of my server is very important to me, and using a script on each creature death could be too resource-consuming. Or maybe I don't know that it's alredy such mechanism used.
2. More important, does "RemoveItem" movement support using a script when someone removes item from container with given ActionID? I.E. I have a chest, with ActionID set to 31401, and I want to put something to player storage when he/she removes given object from that chest. So, will the server trigger a script if I just write something like this in movements.xml:
Code:
<movevent event="RemoveItem" actionid="31401" script="myscript.lua"/>