Kownikuzyt
Member
- Joined
- Feb 11, 2020
- Messages
- 174
- Solutions
- 1
- Reaction score
- 8
While in a party, you can deal DMG to your allies. How can you soak it? Where can I look for a solution? Where can I find the code to share?
Where can I look for a solution? Where can I find the code to share?
Do you need party members to be able to attack eachother?
Where can I look for a solution? Where can I find the code to share?
Where can I look for a solution? Where can I find the code to share?
Here:
Search (https://otland.net/search/)
Basic 1.x dont have implemented party protection? Then?? First post make here little confusion, thrid is about other way.
As i said, 5 sec search...
Request Party Protection (https://otland.net/threads/request-party-protection.236019/#post-2278844)
here:Were you able to open the link to github, for me it says its expired. Is it possible to upload the script again?
With kind regards
Thank you very muchhere:
![]()
Party Protection
Party Protection. GitHub Gist: instantly share code, notes, and snippets.gist.github.com
function Creature:onTargetCombat(target)
print("ontargetcombat")
if not self then
return true
end
if self:isPlayer() and target:isPlayer() then
local party = self:getParty()
print("players")
if party then
print("party")
local targetParty = target:getParty()
if targetParty and targetParty == party then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
return true
end