mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[12140] Basic curency support. Based on @Supabad, @Shocker, @Shauren work.
TODO: reward/take currencies from quests, take currencies with extended cost, reset currencies week count. Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
d8eb7327a1
commit
b4d7780f46
25 changed files with 620 additions and 162 deletions
|
|
@ -1764,8 +1764,8 @@ void BattleGroundMgr::DistributeArenaPoints()
|
|||
// update to database
|
||||
CharacterDatabase.PExecute("UPDATE characters SET arenaPoints = arenaPoints + '%u' WHERE guid = '%u'", plr_itr->second, plr_itr->first);
|
||||
// add points if player is online
|
||||
if (Player* pl = sObjectMgr.GetPlayer(ObjectGuid(HIGHGUID_PLAYER, plr_itr->first)))
|
||||
pl->ModifyArenaPoints(plr_itr->second);
|
||||
//if (Player* pl = sObjectMgr.GetPlayer(ObjectGuid(HIGHGUID_PLAYER, plr_itr->first)))
|
||||
// pl->ModifyArenaPoints(plr_itr->second);
|
||||
}
|
||||
|
||||
PlayerPoints.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue