[CD3.55] Famepoints keep resetting?

Join Discord

Skelucia

Dedicated Member
Dedicated Member
Jul 5, 2013
72
0
32
Okay so i have a famepoint npc in and you trade him fpstones for famepoints, but lets say you traded 20fpstones for 400 famepoints logged out then logged back in n traded another stone it would reset you back to 20? here is the script any help is greatly appreciated.......


;;;;skelucia
[@main]


#SAY


<Trade in 1 famepointstone(20) for 20 famepoints?/@FamePoint>\\


<Trade in 10 famepointstones(20) for 200 famepoints?/@FamePoint1>\\

#ELSESAY




[@FamePoint]
#IF
CHECKFAME
CHECKITEM FamePointStone(20) 1
#ACT
mov D1 %P9
INC D1 20
TAKE FamePointStone(20) 1
SYSMSG "<$USERNAME> has used a famepoint stone congrats."
#ACT
SETFAME %D1
goto @close
#ELSESAY
Think your funny do you? Noob\\




[@FamePoint1]
#IF
CHECKFAME
CHECKITEM FamePointStone(20) 10
#ACT
mov D1 %P9
INC D2 200
TAKE FamePointStone(20) 10
SYSMSG "<$USERNAME> has used 10 famepoint stones congrats."
#ACT
SETFAME %D2
goto @close
#ELSESAY
Think your funny do you? Noob\\


[@close]
#SAY
Grats...\\
#ELSESAY












SOLVED

Changed D1 tp D4 and worked
 
Last edited:

Skelucia

Dedicated Member
Dedicated Member
Jul 5, 2013
72
0
32
i did on the post mate but ill post it next time sorry i changed D1 on the script to D4
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
[@FamePoint]
#IF
CHECKFAME
CHECKITEM FamePointStone(20) 1
#ACT
mov D4 %P9

#IF
#ACT
TAKE FamePointStone(20) 1
SYSMSG "<$USERNAME> has used a famepoint stone congrats."
INC D4 20
SETFAME %D4
goto @close
#ELSESAY
Think your funny do you? Noob\\




[@FamePoint1]
#IF
CHECKFAME
CHECKITEM FamePointStone(20) 10
#ACT
mov D4 %P9

#IF
#ACT
TAKE FamePointStone(20) 10
SYSMSG "<$USERNAME> has used 10 famepoint stones congrats."
INC D4 200
SETFAME %D4

goto @close
#ELSESAY
Think your funny do you? Noob\\


[@close]
#SAY
Grats...\\
#ELSESAY

Correct way to format the npc otherwise you will still have issues with fame resetting.
 
Upvote 0