Fortera Global
Intermediate OT User
- Joined
- Nov 20, 2015
- Messages
- 1,180
- Solutions
- 2
- Reaction score
- 117
What I'm trying to do: prevent spells from my summon from affecting a player I did not attack or affect (take pk) if I'm not on secureMode.
I mean, if player are with secureMode/have a summon/his summon attack one monster, the spell will shoot the target:isPlayer() but like non-pvp (no damage)
tfs 1.3
current script:
I mean, if player are with secureMode/have a summon/his summon attack one monster, the spell will shoot the target:isPlayer() but like non-pvp (no damage)
tfs 1.3
current script:
Lua:
local Master = self:getMaster()
if Master then
if Master:isPlayer() then
if (self:getName():lower() == 'monk vip') then
if target and target:isPlayer() then
-- no works here cuz my target is monster
if self:getMaster():hasSecureMode() then
return RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS
end
end
end
end
end
Last edited by a moderator: