Lava Titan
Developer
I tried multiple ways to make this work but I can't seem to get how the function works
But it's always returning nil, how is the function supposed to work?
Also I found in sources there is something like Loot()
and I tried
My objective is to do a RevScript that adds loot to a list of creatures that I choose, so when you kill those creatures they give normal XML loot + Lua script loot
Lua:
MonsterType(Rat):addLoot()
MonsterType(Rat):addLoot(2160)
MonsterType(Rat):addLoot(2160, 1)
MonsterType(Rat):addLoot(ItemType(2160, 1))
But it's always returning nil, how is the function supposed to work?
Also I found in sources there is something like Loot()
and I tried
Lua:
MonsterType(Rat):addLoot(Loot(2160, 1))
My objective is to do a RevScript that adds loot to a list of creatures that I choose, so when you kill those creatures they give normal XML loot + Lua script loot