Rich (BB code):
5079: Sub Bind_AddToIgnore(MTIgnore)
5080: | Take the targeted mob as a parameter for mob to ignore.
5081: /if (!${Defined[${MTIgnore}]}) /declare MTIgnore string local ${Target.CleanName}
5082: /if (!${MTIgnore.Length} && ${Target.ID} && ${Spawn[=${Target.CleanName}].ID} && ${Select[${Target.Type},NPC,Pet]}) /varset MTIgnore ${Target.CleanName}
5083: /if (!${MTIgnore.Length} || ${MTIgnore.Find[null]} || ${Spawn[${MTIgnore}].ID}==${Me.ID} ) {
/echo No NPCs detected. Nothing added to list.
/return
}
In line 5083 the first clause is superfluous for the same reason.
I suggest this, which allows only npcs
Rich (BB code):
Sub Bind_AddToIgnore(MTIgnore)
| Take the targeted mob as a parameter for mob to ignore.
/if (!${Defined[${MTIgnore}]}) /declare MTIgnore string local ${Target.CleanName}
/if (${MTIgnore.Equal[null]} || !${Spawn[${MTIgnore}].Type.Equal[NPC]}) {
/echo No NPCs named ${MTIgnore} detected. Nothing added to the list.
/return
}
...
If you want to allow pets you have to exlude pc pets. And there is the question whether pets of an actual npc always have the same name. So it would possibly be safer to add the name of the owner. The actual ignore routine does check whether the pet owner is to be ignored, does it ?

