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

Solved Damage to same guild

_Aion_

Nothing Else
Joined
Jan 19, 2010
Messages
401
Solutions
4
Reaction score
10
Location
Jequie,Bahia,Brazil
Hello, is anyone able to put the guild attack in ARENA
I've tried to not getTileInfo (getThingPos (cid)). pvp and did not work
here the script
Code:
function onCombat(cid, target)
	if isPlayer(target) and getPlayerGuildId(cid) ~= 0 and getPlayerGuildId(cid) == getPlayerGuildId(target) then
		doPlayerSendCancel(cid, "Não pode atacar players da mesma guild.")
		return false
	end
	return true
end
I want it to attack guild members only in ARENA, with a script like that, can not attack anywhere
 
Last edited:
Try:
LUA:
function onCombat(cid, target)
    if getTileInfo(getThingPos (cid)). pvp then return true end
	if isPlayer(target) and getPlayerGuildId(cid) ~= 0 and getPlayerGuildId(cid) == getPlayerGuildId(target) then
		doPlayerSendCancel(cid, "Não pode atacar players da mesma guild.")
		return false
	end
	return true
end
 
Back
Top