| It is explicitly impossible to initiate a mouse click on the WorldFrame from a script or addon. This is intentional, to prevent botting and other forms of automated gameplay. You can bind a key to perform a right click, but you must still move your mouse over the object/creature you want to click on.
Try using Shift + V to bring up the npc's nameplate, then click on the nameplate from there. |