NPC FamePoint

smoochy boys on tour

ladron300

Dedicated Member
Dedicated Member
Nov 13, 2009
54
1
34
Hi
Script Masters
I Need help
I have a script, and the problem. I did not write in SQL FP

;;; test npc ;;;

[@main]

#IF
checkitem PotionMP 1
#ACT
#SAY
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ \
<Yes/@text1>\ \
<Exit/@exit>\
#ELSESAY
xxxxxxxxxxxxxxxxx\

[@text1]

#IF

#ACT
#SAY
xxxxxxxxxxxxxxxxxxxxxxxxxxx\
<Reward/@reward>\
<Exit/@exit>
#ELSESAY
xxxxxxxxxxxxxxxxxxxx\
xxxxxxxxxxxxx\
<Exit/@exit>

[@Reward]

#IF
checkitem PotionMP 1

#ACT
FormatStr "FLD_USERID='%s'"%USERID
mov D4%P9
inc D4 50
setfame %D4
FormatStr "FLD_POINT='%s'" %D4
UpdateValueSQL "TBL_RELATPOINT" %A8 %A9




#SAY
xxxxxxxxxxxxxxxxxxxxxx.\ \

<Thanks/@exit>
;;;;;;;;;;;;;;;;;;;;;;;;;
Please help
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
you don't need to write famepoints to sql like that, just use this, the commands already add it to sql so you don't need to do it lol.

#IF
CHECKFAME
#ACT
mov D4 %P9
inc D4 50
setfame %D4
 
Upvote 0