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

How to add "non pvp in party" TFS 1.0 ?

bradette19

Member
Joined
May 25, 2011
Messages
97
Reaction score
6
Location
Canada
Good morning all.

I'd like to add "non pvp in party" on my server. I'm using TFS 1.0. I saw a post that say to edit this in sources, but it was for older version. Anybody know how to do this, thanks :)!
 
Good morning all.

I'd like to add "non pvp in party" on my server. I'm using TFS 1.0. I saw a post that say to edit this in sources, but it was for older version. Anybody know how to do this, thanks :)!
You probably want to change the canDoCombat function. Also you should consider using TFS 1.2 instead of 1.0
 
you could also add onhealthchange creaturescript to player and ask:
if attacker then
if attacker:isPlayer() then
if attacker:getParty() then
and now loop trough the party and add leader to it too.

If the guy is team with you. change the dmg to 0

It wont work however with custom aoe spells or effects where the source id is 0
 
Back
Top