Hi guys, I had modificated a patch found at http://www.getmangos.eu/community/showthread.php?t=10909.
--- src/game/Player.cpp.orig 2009-11-08 23:48:49.000000000 +0100
+++ src/game/Player.cpp 2009-11-08 23:45:29.000000000 +0100
@@ -2362,6 +2362,39 @@
// XP resting bonus for kill
uint32 rested_bonus_xp = victim ? GetXPRestBonus(xp) : 0;
+ // thnks
+
+ float xpmod = 1.0f;
+ uint32 itemSpell = 0;
+ for(int i=0; i < EQUIPMENT_SLOT_END; ++i)
+ {
+ if(m_items[i])
+ {
+ itemSpell = m_items[i]->GetProto()->Spells->SpellId;
+ if (itemSpell == 57353)
+ {
+ xpmod += 0.1f;
+ }
+ }
+ }
+
+ xp = uint32(xp * xpmod);
SendLogXPGain(xp,victim,rested_bonus_xp);
uint32 curXP = GetUInt32Value(PLAYER_XP);
@@ -2378,8 +2411,7 @@
level = getLevel();
nextLvlXP = GetUInt32Value(PLAYER_NEXT_LEVEL_XP);
}
-
- SetUInt32Value(PLAYER_XP, newXP);
+ SetUInt32Value(PLAYER_XP, newXP );
}
// Update player to next level
There's one problem, I tested with char level 1 versus wolf level 1, and results:
without items - 50xp
with 1 item - 60xp
with 2 items - 66xp
I think anyone of you can modify again and make it perfect.
Thnks and sorry for my bad english, I'm from PERU.
Sry if this post is in bad section. So please move it.