• 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!

No damage in party or guild

Status
Not open for further replies.

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,488
Solutions
18
Reaction score
199
Location
Sweden
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/

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:
Status
Not open for further replies.
Back
Top