Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 745
- Solutions
- 9
- Reaction score
- 125
Hello guys! I have this script for TFS 1.2:
That works perfect to prevent damage from players in the same party. The thing is, is it possible to add pets (Summons) to this script? I dont want myself or my partners damaging their pets while in party.
Thanks in advance for your time!
Code:
function Creature:onTargetCombat(target)
if not self then
return true
end
if self:isPlayer() and target:isPlayer() then
local party = self:getParty()
if party then
local targetParty = target:getParty()
if targetParty and targetParty == party then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
return true
end
That works perfect to prevent damage from players in the same party. The thing is, is it possible to add pets (Summons) to this script? I dont want myself or my partners damaging their pets while in party.
Thanks in advance for your time!
Last edited: