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

Lua No pvp in party?

Seaneman

New Member
Joined
Apr 17, 2009
Messages
23
Reaction score
0
Heya all,

I am trying to make playing and questing with others more important on my server, in order to do that i need to find a way to have no pvp when players are in party.
Is this possible in Lua or will it require a source edit?

Thanks in advance,

Seaneman.
 
If you know how to compile is really easy just go to combat.cpp find this:

Code:
ReturnValue Combat::canTargetCreature(const Player* player, const Creature* target)
{

And below that add this:

Code:
	if(player->getParty() == target->getParty())
	return RET_YOUMAYNOTATTACKTHISPLAYER;

Now compile and you are done :D
 
Back
Top