Gold Drop

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

Moderator: Support Team

Gold Drop

Postby Lyrn » Sat Jan 10, 2015 10:09 pm

Hey everyone, I wanted to know how to increase the coin reward for killing an enemy ? It's not included with the coin drop rate, that seems to only affect mobs. Any help appreciated thank you in advance :) !
Lyrn
DOL Acolyte
 
Posts: 103
Joined: Thu Oct 27, 2011 3:15 pm

Re: Gold Drop

Postby HunabKu » Sun Jan 11, 2015 7:12 am

In GS\GameObjects\GameNPC.cs lines 4500 to 4534
Code: Select all
int zoneBonus = (((int)value * ZoneBonus.GetCoinBonus(killerPlayer) / 100)); if (zoneBonus > 0) { long amount = (long)(zoneBonus * ServerProperties.Properties.MONEY_DROP); killerPlayer.AddMoney(amount, ZoneBonus.GetBonusMessage(killerPlayer, (int)(zoneBonus * ServerProperties.Properties.MONEY_DROP), ZoneBonus.eZoneBonusType.COIN), eChatType.CT_Important, eChatLoc.CL_SystemWindow); InventoryLogging.LogInventoryAction(this, killerPlayer, eInventoryActionType.Loot, amount); } } if (Keeps.KeepBonusMgr.RealmHasBonus(DOL.GS.Keeps.eKeepBonusType.Coin_Drop_5, (eRealm)killer.Realm)) value += (value / 100) * 5; else if (Keeps.KeepBonusMgr.RealmHasBonus(DOL.GS.Keeps.eKeepBonusType.Coin_Drop_3, (eRealm)killer.Realm)) value += (value / 100) * 3; //this will need to be changed when the ML for increasing money is added if (value != lootTemplate.Price) { GamePlayer killerPlayer = killer as GamePlayer; if (killerPlayer != null) killerPlayer.Out.SendMessage(LanguageMgr.GetTranslation(killerPlayer.Client, "GameNPC.DropLoot.AdditionalMoney", Money.GetString(value - lootTemplate.Price)), eChatType.CT_Loot, eChatLoc.CL_SystemWindow); } //Mythical Coin bonus property (Can be used for any equipped item, bonus 235) if (killer is GamePlayer) { GamePlayer killerPlayer = killer as GamePlayer; if (killerPlayer.GetModified(eProperty.MythicalCoin) > 0) { value += (value * killerPlayer.GetModified(eProperty.MythicalCoin)) / 100; killerPlayer.Out.SendMessage(LanguageMgr.GetTranslation(killerPlayer.Client, "GameNPC.DropLoot.ItemAdditionalMoney", Money.GetString(value - lootTemplate.Price)), eChatType.CT_Loot, eChatLoc.CL_SystemWindow); } }
You can add modify here to affect drop variance.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: Gold Drop

Postby Graveen » Sun Jan 11, 2015 4:08 pm

You'd better add a new SP and submit the patch :) That should replace player's MONEY_DROP with MONEY_DROP_PVE and MONEY_DROP_PVP
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

Re: Gold Drop

Postby HunabKu » Mon Jan 12, 2015 6:18 am

+1
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: Gold Drop

Postby Argo » Wed Jan 14, 2015 1:36 am

Damn Cedric, i never thought about such a possibility :) but it sounds worth it to me :). thats something that even i can do :)

regards my friend

Argo
Möge Gott sein zwischen Dir und dem Leid, an allen dunklen und verlassenen Orten, die Du erreichen wirst.
Argo
Server Team
 
Posts: 1760
Joined: Thu Sep 18, 2008 6:21 pm
Location: Berlin, Germany


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest