I need a function onSelectTarget(cid) and onDeselectTarget(cid, oldTarget) in creaturescripts to optimize my code even better and not sure if this already exists in TFS that's why I am writing it here. The first one would execute when player select any target. The other one when they decide to deselect or switch the target along with the ability to check what target was deselected
That would be for TFS1.X+
That would be for TFS1.X+