Hello
Well I've got a little situation here, becasue I couldn't really understand this type of script.
I'm using darkhaos pet system and so I'd like to add a feature in which you coudln't attack your own pet.
So there is:
I'd like to make it so a player could not attack his own pet by spells, but someone else could, or not.
Thanks for help.
Well I've got a little situation here, becasue I couldn't really understand this type of script.
I'm using darkhaos pet system and so I'd like to add a feature in which you coudln't attack your own pet.
So there is:
Code:
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerPet(cid) and getPlayerPet(cid) == attacker then
return false
end
return true
end
I'd like to make it so a player could not attack his own pet by spells, but someone else could, or not.
Thanks for help.
Last edited: