Mjmackan
Mapper ~ Writer
Could someone fix this to TFS 0.4?
Problem i've got now: pvp gets disabled, no one can attack anyone. (No errors shown.)
http://otland.net/f82/no-damage-guildmates-no-damage-party-members-139041/
Thanks in advance, rep for the ones that helps.
(My first post of this in support section got deleted, if it was a mod who did it please tell me why next time.)
Problem i've got now: pvp gets disabled, no one can attack anyone. (No errors shown.)
http://otland.net/f82/no-damage-guildmates-no-damage-party-members-139041/
LUA:
function onCombat(cid, target)
if(isPlayer(cid) and isPlayer(target)) then
if(getConfigValue("noDamageToGuildMates")) then
if(getPlayerGuildId(cid) == getPlayerGuildId(target)) then
return false
end
end
if(getConfigValue("noDamageToPartyMembers")) then
if(getPlayerParty(cid) == getPlayerParty(target)) then
return false
end
end
end
return true
end
Thanks in advance, rep for the ones that helps.
(My first post of this in support section got deleted, if it was a mod who did it please tell me why next time.)
Last edited: