Jump to content

[Fix] Arena and honor point on money board


Guest djmagma59

Recommended Posts

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.

Link to comment
Share on other sites

×
×
  • 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