Ahilphino
Excellent OT User
- Joined
- Jun 5, 2013
- Messages
- 1,667
- Solutions
- 1
- Reaction score
- 734
Ok. So I have a script which I have registered on every monster like this:
and in every monster.xml file:
now everything actually works but still, when I start my server the console is spammed with
"[Warning - Monster::Monster] Unknown event name: extraLoot"
if I remove the lines from the monsters, the errors obviously goes away but the scripts also stop working.
The weird part is that even though it says it's an unknown event name, it still registers and makes the script work.
What can be wrong? And it's not the script. If I simply make the script into like this
its the same thing
maybe everything needs to be lowercase? <---- nvm didnt help
Code:
<event type="death" name="extraLoot" script="monsterdeath.lua"/>
and in every monster.xml file:
Code:
<script>
<event name="extraLoot"/>
</script>
now everything actually works but still, when I start my server the console is spammed with
"[Warning - Monster::Monster] Unknown event name: extraLoot"
if I remove the lines from the monsters, the errors obviously goes away but the scripts also stop working.
The weird part is that even though it says it's an unknown event name, it still registers and makes the script work.
What can be wrong? And it's not the script. If I simply make the script into like this
Code:
function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
print("Test")
return true
end
maybe everything needs to be lowercase? <---- nvm didnt help
Last edited: