in the player.cpp you have to change these lines
MAKE SURE THAT YOUR players all begin at a lvl at least above 10!
these will give you 220 talent points when you start a new character, now since i shared this, go to my thread and tell me whats wrong with my compiler :<
also i noticed you want to start giving out talent points at lvl 2??
all you need to do is change the lines that say
"if level =10 or 9 whateva" blah blah blah, change those to a "2"
http://www.mmowned.com/forums/emulat...ing-error.html
Code:
/* if(sWorld.start_level >= 10 && sWorld.start_level <= PLAYER_LEVEL_CAP)
{int startingTalents;
startingTalents = sWorld.start_level - 9;
SetUInt32Value(PLAYER_CHARACTER_POINTS1,startingTalents);}*/
change it to
if(sWorld.m_startLevel >= 10 && sWorld.m_startLevel <= 70)
{uint32 startingTalents;
startingTalents = sWorld.start_level - 9;
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 220);}
Code:
//PLAYER_BYTES_3 DRUNKENSTATE PVPRANK
SetUInt32Value(PLAYER_BYTES_3, ((gender) | (0x00 << 8) | (0x00 << 16) | (GetPVPRank() << 24)));
SetUInt32Value(PLAYER_NEXT_LEVEL_XP, 400);
SetUInt32Value(PLAYER_FIELD_BYTES, 0x08 );
SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.m_levelCap);
change to
//PLAYER_BYTES_3 DRUNKENSTATE PVPRANK
SetUInt32Value(PLAYER_BYTES_3, ((gender) | (0x00 << 8) | (0x00 << 16) | (GetPVPRank() << 24)));
SetUInt32Value(PLAYER_NEXT_LEVEL_XP, 400);
SetUInt32Value(PLAYER_FIELD_BYTES, 0x08 );
SetUInt32Value(PLAYER_CHARACTER_POINTS2, 220);
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.m_levelCap);
Code:
if (m_uint32Values[PLAYER_CHARACTER_POINTS1] > 61 && ! GetSession()->HasGMPermissions())
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 61);
ss << m_uint32Values[PLAYER_CHARACTER_POINTS1] << ","
<< load_health << ","
<< load_mana << ","
<< uint32(GetPVPRank()) << ","
<< m_uint32Values[PLAYER_BYTES] << ","
<< m_uint32Values[PLAYER_BYTES_2] << ","
<< player_flags << ","
<< m_uint32Values[PLAYER_FIELD_BYTES] << ",";
change to
if (m_uint32Values[PLAYER_CHARACTER_POINTS1] > 220 && ! GetSession()->HasGMPermissions())
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 220);
ss << m_uint32Values[PLAYER_CHARACTER_POINTS1] << ","
<< load_health << ","
<< load_mana << ","
<< uint32(GetPVPRank()) << ","
<< m_uint32Values[PLAYER_BYTES] << ","
<< m_uint32Values[PLAYER_BYTES_2] << ","
<< player_flags << ","
<< m_uint32Values[PLAYER_FIELD_BYTES] << ",";
Code:
else
{
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 0);
}
change to
{
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 220);
}
Code:
SetUInt32Value(UNIT_FIELD_ATTACK_POWER, info->attackpower );
SetUInt32Value(PLAYER_CHARACTER_POINTS1,0);
SetUInt32Value(PLAYER_CHARACTER_POINTS2,2);
change to
SetUInt32Value(UNIT_FIELD_ATTACK_POWER, info->attackpower );
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 220);
SetUInt32Value(PLAYER_CHARACTER_POINTS2, 220);
Code:
// Calculate talentpoints
uint32 TalentPoints = 0;
if(Level >= 10)
TalentPoints = Level - 9;
SetUInt32Value(PLAYER_CHARACTER_POINTS1, TalentPoints);
change to
// Calculate talentpoints
uint32 TalentPoints = 0;
if(Level >= 10)
TalentPoints = Level - 9;
SetUInt32Value(PLAYER_CHARACTER_POINTS1, 220);