Ancores
Active Member
- Joined
- Jan 17, 2010
- Messages
- 538
- Reaction score
- 28
Is it possible to use for example:
To make it impossible for a monster to attack a player?
I know you can add a line in the monster's .xml files which has something to do with creature events but don't remember the reason why or if that's how I can use this script.
Hope you can help!
Code:
function onCombat(cid, target)
if isMonster(cid) and isPlayer(target) then
return false
end
return true
end
To make it impossible for a monster to attack a player?
I know you can add a line in the monster's .xml files which has something to do with creature events but don't remember the reason why or if that's how I can use this script.
Hope you can help!