OK
My name isn't Santa Poring though...
Place the script in your npc (probably somewhere like npc/custom/) and then type @loadnpc npc/custom/reward.txt in-game. After you've run the SQL query in your logs schema, type @reward in-game to use the command (default syntax: @reward <preset> <player name>); there's no NPC to click, since the script is activated via @reward.
OK thanks
Sir santa poring.. i have enconuter error?