Jump to content

[Fix] Arena and honor point on money board


Recommended Posts

Posted

hello i just code it for my server and write here the small code if you need.

Index: C:/Mangos/src/game/player.h
===================================================================
--- C:/Mangos/src/game/player.h     (revision 1)
+++ C:/Mangos/src/game/player.h         (revision 2)
@@ -2384,6 +2384,8 @@

        bool canSeeSpellClickOn(Creature const* creature) const;
    protected:
+    
+    void CheckBGMoney();

        uint32 m_contestedPvPTimer;

Index: C:/Mangos/src/game/player.cpp
===================================================================
--- C:/Mangos/src/game/player.cpp    (revision 1)
+++ C:/Mangos/src/game/player.cpp    (revision 2)
@@ -1226,6 +1226,8 @@
    CheckDuelDistance(now);

    UpdateAfkReport(now);
+    
+    CheckBGMoney();

    // Update items that have just a limited lifetime
    if (now>m_Last_tick)
@@ -22240,3 +22242,17 @@
            SetFFAPvP(false);
    }
}
+
+void Player::CheckBGMoney()
+{
+    uint32 count, pArenaID, pHonorID;
+    count = 1;
+    pArenaID = 43307; 
+    pHonorID = 43308; 
+  
+    if (!HasItemCount(pArenaID, count) && GetArenaPoints() > 0)
+        StoreNewItemInBestSlots(pArenaID, count);
+  
+    if (!HasItemCount(pHonorID, count) && GetHonorPoints() > 0)
+        StoreNewItemInBestSlots(pHonorID, count);
+}

Sorry for my bad english.

Posted

Hello,

I don't think Player::Update is the good spot to fix this (does it really need a fix?)

If there's a real problem I think you should find the source of the problem : when does the server gives arena points/honor points?

Posted

the server give already correct arena/honor point but its just for offilike copy this in monney slot ( its an item for print in this case) after i dont know if other way is better but in my server its work

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use