Scofield
New Member
i need it to allow 8.5 + 8.52 it's 0.3.5pl1 and this codes as well for party atk preventation
will be great favor and rep++ forsure
Code:
In configmanager.cpp:
Under:
Code:
m_confNumber[MAX_PLAYER_SUMMONS] = getGlobalNumber(L, "maxPlayerSummons", 2);
Add:
Code:
m_confNumber[NO_DAMAGE_TO_PARTY_MEMBERS] = getGlobalNumber(L, "noDamageToPartyMembers", 0);
In configmanager.h:
Under:
Code:
MAX_PLAYER_SUMMONS,
Add:
Code:
NO_DAMAGE_TO_PARTY_MEMBERS,
In combat.cpp:
Under (around 250 line):
Code:
if((attackerPlayer = attacker->getPlayer()) || (attacker->getMaster()
&& (attackerPlayer = attacker->getMaster()->getPlayer())))
{
Add:
Code:
uint32_t party = g_config.getNumber(ConfigManager::NO_DAMAGE_TO_PARTY_MEMBERS);
if(party != 0)
{
Party* attackerPlayerParty = attackerPlayer->getParty();
Party* targetPlayerParty = targetPlayer->getParty();
if(attackerPlayerParty == targetPlayerParty && attackerPlayerParty > 0 && targetPlayerParty > 0)
{
return RET_YOUMAYNOTATTACKTHISPLAYER;
}
}
will be great favor and rep++ forsure