Hello, I am trying to make a script that will reward players with cashpoints whenever they kill a boss/miniboss/mvp/champion mob. I have had some success with help from the discord, but Im not quite there yet, and am receiving an error. Been beating my head against the wall trying to fix things, so I figured I would come here and ask if anyone has any idea how to fix this and get it to do what I want it to.
The script in question (Original):
And the error I am receiving whenever I kill any mob at all:
[Error] : script:op_2: invalid data for operator C_NE
[Debug] : Data: C_ARG
[Debug] : Data: number value=-1
Thanks in advance for any and all help!
Completed and functional script: