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

C++ [PARTY] No damage

srunobantana

Active Member
Joined
Oct 24, 2021
Messages
55
Reaction score
34
By GoogleTranslation
Hello! I’d like to ask where I should start — in the source code or in the .lua scripts — to make it so that members of the same party do not deal damage or apply negative statuses to each other. At the moment, area spells are still affecting party members.

TFS 1.4.2: link
 
Lua: data/events/creature.lua onTargetCombat onAreaCombat or smth
C++ combat.cpp onCombat

aiming for code like

if player has party and the party is the same --> return false / cant attack player
 
Back
Top