Question about lootgenerator

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

Question about lootgenerator

Postby whria78 » Thu Dec 11, 2014 11:26 am

In the table `lootgenerator` , there are

DOL.GS.LootGeneratorDragonscales ; Epic Encounter
DOL.GS.LootGeneratorMoney
DOL.GS.LootGeneratorOneTimeDrop
DOL.GS.LootGeneratorScroll
DOL.GS.LootGeneratorTemplate
DOL.GS.LootGeneratorUniqueItem ; Storm unique

1.
If there are 6 generators, dose the number of dropped item increase ?
Is it right that all generator work independently ?

2.
Does the generator work independently even though mobxloottemplate exists ?
User avatar
whria78
Contributor
 
Posts: 128
Joined: Fri Sep 21, 2007 11:27 pm

Re: Question about lootgenerator

Postby Leodagan » Thu Dec 11, 2014 1:16 pm

Most of these generators are independent.

Their only common point is that a "LootList" object will be iteratively transfered to each of the them according to database constraints...

the only one using Loottemplate is DOL.GS.LootGeneratorTemplate

DOL.GS.LootGeneratorDragonscales : drop dragon scales according to mob level, guild mob filter for enabling this only for "Epic Encounter", this increment the "lootlist" count to be sure the loot are given to player one rules have determined he should get reward.

DOL.GS.OneTimeDrop : Use the onetimedrop table to list Named mobs that should loot this item at first kill given player level, then player "one time drop" are registered in an other table.

DOL.GS.LootGeneratorScroll : meant for ToA, it should try to gather "Scrolls" from your itemtemplate table, appart from that I have no idea how it work and if it "raises" the LootList DropCount to prevent from lower "template item" drop rate...

DOL.GS.LootGeneratorMoney : Obvious, every kills loot money (except if not worth experience), money loot don't change the max drop count...

DOL.GS.LootGeneratorUniqueItem : Add Auto-Generated Item (ROG) to the loot list.

For every one of these generator you have to look into code to know how they behave, even if some loot generator like "Templated" Generator or "OneTimeDrop" use additional Tables to store some static or dynamic data, this is not a common behavior for LootGenerator...

DragonScales or DiamondSeals Loot generator are totally independent from database... and this can make some weird behaviors sometimes...
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: Question about lootgenerator

Postby Graveen » Fri Dec 12, 2014 9:16 pm

This is important. And it would fit into an article/guide ... :p :p
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest