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);
}
}
Users browsing this forum: No registered users and 1 guest