• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Requesting A new 0.3.5 compiled.exe file with this following descriptopn

Scofield

New Member
Joined
Oct 24, 2009
Messages
147
Reaction score
1
Location
Cairo/Egypt
i need it to allow 8.5 + 8.52 it's 0.3.5pl1 and this codes as well for party atk preventation

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 :)
 
Back
Top