Eluna icon indicating copy to clipboard operation
Eluna copied to clipboard

Loot method

Open iThorgrim opened this issue 1 year ago • 1 comments

Loot Method and Object

Adding new [Loot] object and new method :

local loot = creature:GetLoot()
loot:AddItem(itemId, chance, needsquest, lootmode, mincount, maxcount)
loot:HaveItem(itemId or nil) -- return if have a specific item or have items
loot:RemoveItem(itemid)
loot:GetMoney()
loot:SetMoney(amount)
loot:GenerateMoney(minMoney, maxMoney)
...

iThorgrim avatar Mar 14 '24 20:03 iThorgrim

This'll need some changes or methods possibly removed to be compatible with the Mangos based cores. I'll see if I have the time to add the Mangos files to this PR this weekend.

Foereaper avatar Mar 14 '24 23:03 Foereaper

I'm taking the liberty of closing this PR for the time being, as the Eluna structure is not up to date on this branch, so I'll have to update it manually.

iThorgrim avatar Apr 09 '24 09:04 iThorgrim