• 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!

Lua Monster loot chances

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
Hm, I've been trying to understand how the "chance" works in monster loot, but I get everytime more confused.

Here's an example, a Frost Dragon:

Lua:
	<loot>
    <item id="2148" countmax="100" chance="33550" /><!-- gold coin -->
    <item id="2148" countmax="100" chance="33550" /><!-- gold coin -->
    <item id="2148" countmax="50" chance="33550" /><!-- gold coin -->
    <item id="2672" countmax="5" chance="74075" /><!-- dragon ham -->
    <item id="2547" countmax="6" chance="4025" /><!-- power bolt -->
    <item id="2033" chance="3425" /><!-- golden mug -->
    <item id="2167" chance="5675" /><!-- energy ring -->
    <item id="2146" chance="5650" /><!-- small sapphire -->
    <item id="2796" chance="12500" /><!-- green mushroom -->
    <item id="7441" chance="4575" /><!-- ice cube -->
    <item id="1976" chance="9525" /><!-- gemmed book -->
	<item id="2498" chance="675" /><!-- royal helmet -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="2177" chance="1075" /><!-- life crystal -->
            <item id="2492" chance="625" /><!-- dragon scale mail -->
            <item id="7290" chance="10000" /><!-- shard -->
            <item id="2528" chance="800" /><!-- tower shield -->
            <item id="2396" chance="800" /><!-- ice rapier -->
            <item id="2479" chance="950" /><!-- strange helmet -->
            <item id="7402" chance="600" /><!-- dragon slayer -->
        </inside>
    </item>
</loot>

Loot statistics from real tibia:

Lua:
	1	Dragon Scale Mail 0.08%
	1	Dragon Slayer      0.15%
	1	Royal Helmet	0.29%
	1	Ice Rapier	        0.36%
	1	Tower Shield	0.42%
	1	Life Crystal   	0.46%
	1	Strange Helmet	0.5%
	1	Shard                0.62%
	1      Book	                2.15%
	1	Golden Mug	187	2.89%
	1	Ice Cube	        4.05%
	1	Energy Ring       	5.23%
	1	Small Sapphire	5.26%
	1-6	Power Bolt		5.94%
	1	Gemmed Book	6.67%
	1	Green Mushroom	12.36%
	-	Dragon Ham	        80.07%
	1-239 Gold Coin           95.19%

How would this monster look like fixed?

With this template I could patch some other monsters that I think have wrong loot...

Thanks, it's not about lazyness, but with my calcs, dragon scale mail would have a chance of 80? If chance 1000 = 1%
 
That's XML btw ;) But on-topic - If 1000 DOES equal to 1% drop rate then 80 would be 0.08% of a drop.

XML:
<loot>
    <item id="2148" countmax="100" chance="95190" /><!-- gold coin -->
    <item id="2148" countmax="100" chance="95190" /><!-- gold coin -->
    <item id="2148" countmax="50" chance="95190" /><!-- gold coin -->
    <item id="2672" countmax="5" chance="80070" /><!-- dragon ham -->
    <item id="2547" countmax="6" chance="6940" /><!-- power bolt -->
    <item id="2033" chance="2890" /><!-- golden mug -->
    <item id="2167" chance="5230" /><!-- energy ring -->
    <item id="2146" chance="5260" /><!-- small sapphire -->
    <item id="2796" chance="12360" /><!-- green mushroom -->
    <item id="7441" chance="4050" /><!-- ice cube -->
    <item id="1976" chance="6670" /><!-- gemmed book -->
	<item id="2498" chance="290" /><!-- royal helmet -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="2177" chance="460" /><!-- life crystal -->
            <item id="2492" chance="80" /><!-- dragon scale mail -->
            <item id="7290" chance="620" /><!-- shard -->
            <item id="2528" chance="420" /><!-- tower shield -->
            <item id="2396" chance="360" /><!-- ice rapier -->
            <item id="2479" chance="50" /><!-- strange helmet -->
            <item id="7402" chance="150" /><!-- dragon slayer -->
        </inside>
    </item>
</loot>

Thats what it would be, with 1000 equating to 1% chance of a drop. That is what you wanted, right? :D
 
Yes, thanks for your time.

I just don't think that's right o.o

80 is a way lower value than previous 600, and it's still rare to find.

I don't think that's the right math, you know?

But thanks anyway ^^
 
But that goes on real tibia lootrates, so a dsm in real tibia would be extremely hard to loot. Also normally servers have increased loot rates anyway which make it abit easier to loot it.

Also, your welcome :)
 
Back
Top