mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-11 01:48:07 +00:00
Implemented sourceType for SendSetCurrency
Implemented sourceType for the function SendSetCurrency.
This commit is contained in:
@@ -527,7 +527,7 @@ void Character::OnZoneLoad()
|
||||
*/
|
||||
if (HasPermission(PermissionMap::Old)) {
|
||||
if (GetCoins() > 1000000) {
|
||||
SetCoins(1000000);
|
||||
SetCoins(1000000, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -567,18 +567,15 @@ const NiPoint3& Character::GetRespawnPoint(LWOMAPID map) const
|
||||
return pair->second;
|
||||
}
|
||||
|
||||
void Character::SetCoins(int64_t newCoins, const bool message) {
|
||||
void Character::SetCoins(int64_t newCoins, int lootType) {
|
||||
if (newCoins < 0)
|
||||
{
|
||||
newCoins = 0;
|
||||
}
|
||||
|
||||
m_Coins = newCoins;
|
||||
|
||||
if (message)
|
||||
{
|
||||
GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true);
|
||||
}
|
||||
|
||||
GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true, lootType);
|
||||
}
|
||||
|
||||
bool Character::HasBeenToWorld(LWOMAPID mapID) const
|
||||
|
Reference in New Issue
Block a user