So, I read this;
Code:
[03/02/2015 00:21:35] (luaDoCreateMonster) Monster with name '' not found
And I know what this means, it basically means we are trying to summon a monster with no name.
Which means when it grabs the monster's name from the table, it gets nothing, it thinks there are no monsters in the table, or the location in the table it is looking has nothing.
So, how do you fix this?
- You have to make sure the table has no errors, (I don't see any)
- You have to make sure you are looking into the right place in the table (I think we are but lets double-check together)
First we have the value "current".
This value is equal to where in the table we are looking, in this case, we can just say "Which line" are we working with.
So we start with current = 1, meaning line 1, which works when the monster goes below 90% of it's health, and summons those two monsters.
If the monster has health lower than 90%, it runs the following script on each monster on that line:
Code:
for _, tid in ipairs(SummonsList) do
doCreateMonster(tid, getCreaturePosition(cid), true, true)
end
So, for each monster in line 1 do the doCreateMonster function:
So this basically does:
Code:
doCreateMonster("Lion", getCreaturePosition(cid), true, true)
doCreateMonster("Monk", getCreaturePosition(cid), true, true)
This should work, I see no reason why it shouldn't.
Can you let me know if you changed the table at all? Or do you still have Lion and Monk?
Or are ANY of the monsters summoning when you hit the creature?
Can you kill the creature the entire way and let me know if ANY monster is created?