You can use Pinescript for BuffNPC and you could if you know how to use Lua scripts but i know how to use Pinescript for a buff NPC as shown here:
Code:
open [main]
var InterruptBlock ""
InterruptArg ""
BuffHandle 0
Exit "".
interruptclear all.
interruptset admin "" 1 "".
call "BuffNPC".
infinite
open
waitinterrupt InterruptBlock "InterruptArg".
call InterruptBlock "BuffNPC".
close
close
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
open [IsRunning]
broadcast Handle "I am running" InterruptArg.
interruptset admin "" 1 "".
call InterruptBlock "BuffNPC".
close
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
open [BuffNPC]
npcstand Exit "MobName" 6983 7355 240 1000 "Normal".
interruptset NPCClickHandle "ExitClick" 1 Exit "BuffNPCBuff".
interruptset admin "" 1 "".
close
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
open [BuffNPCBuff]
var mclicker 0.
whoclickme mclicker InterruptArg.
abstateset mclicker "StaSafeProtection" 12 3600000.
abstateset mclicker "StaDarknessProtection" 6 3600000.
abstateset mclicker "StaRestore" 15 11000.
interruptset NPCClickHandle "ExitClick" 1 Exit "BuffNPCBuff".
interruptset admin "" 1 "".
close
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
open [LightsOff]
maplight 0 0 0.
interruptset admin "" 1 "".
close
open [LightsOffSlow]
LightTick = 0.
while LightTick < 52
open
maplight (255 - LightTick * 5) (255 - LightTick * 5) (255 - LightTick * 5).
LightTick = LightTick + 1.
close
interruptset admin "" 1 "".
close
Thats the code for CN-2012 PineScript Map/BuffNPC.ps (oh you could use Map/BuffNPC/BuffNPC (thats lua!))