• 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 Summon Protection

_M4G0_

Intermediate OT User
Joined
Feb 6, 2016
Messages
540
Solutions
16
Reaction score
106
i did this based on https://otland.net/threads/check-if-monster-is-summon-tfs-1-2.239004/#post-2311702
need > the part not get skull
and the owner can attack without needing part

local master = target:getMaster()
if target:isMonster() then
if master and master:isPlayer() then
local party, targetParty = self:getParty(), master:getParty()
if (party ~= nil and targetParty ~= nil) and party == targetParty then

return RETURNVALUE_CREATUREBLOCK
else
return RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE
end
end
end
 
Last edited:
Back
Top