• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to use getMonsterLootList(name) ?

igorbr

New Member
Joined
Jan 9, 2008
Messages
34
Reaction score
0
hello guys, I want to learn how to use getMonsterLootList(name)
please some help!!!
thanks
 
Little example:

Code:
	str = str .. "Loot:\n"
	local lootList = getMonsterLootList("Demon")
	for i, _ in pairs(lootList) do
		str = str .. getItemNameById(lootList[i].id) .. " (Max: " .. lootList[i].countmax .. ")\n"
	end
	doPlayerPopupFYI(cid, str)
 
Little example:

Code:
	str = str .. "Loot:\n"
	local lootList = getMonsterLootList("Demon")
	for i, _ in pairs(lootList) do
		str = str .. getItemNameById(lootList[i].id) .. " (Max: " .. lootList[i].countmax .. ")\n"
	end
	doPlayerPopupFYI(cid, str)

It possible to change loot ?
Example setName etc. ?
 
Back
Top