Marco Oliveira
Well-Known Member
- Joined
- Jan 5, 2019
- Messages
- 76
- Solutions
- 3
- Reaction score
- 78
- Location
- Minas Gerais - Brazil
- GitHub
- omarcopires
- Twitch
- omarcopires
Hello, how are you?
What I need is a function that adds an item to a monster's drop if it is registered at birth.
I did a search for the forum and I didn't find anything about it, so if something like that already exists, I'm sorry for the duplicate request.
The operation would be something like this:
The version of my TFS is 1.3.
If it is too complicated to do I can pay for the service.
Anyway, I apologize for the typos or if I said something I shouldn't.
What I need is a function that adds an item to a monster's drop if it is registered at birth.
I did a search for the forum and I didn't find anything about it, so if something like that already exists, I'm sorry for the duplicate request.
The operation would be something like this:
Lua:
function createMonster (self, name, position)
local monster = Game.createMonster (name, position, true)
if monster then
monster:setLootDrop(chance, itemID, amount)
end
end
The version of my TFS is 1.3.
If it is too complicated to do I can pay for the service.
Anyway, I apologize for the typos or if I said something I shouldn't.