[CD3.55] adding crazy amounts of fame

Join Discord

DarkSouls

Loyal Member
Loyal Member
May 27, 2014
114
0
42
Hi all can you tell me why this adds crazy amounts of fame... :/

[@Firereward]
#IF
CHECKFAME
CHECKITEM IgnisCrystal 50
#ACT
TAKE IgnisCrystal 50
GIVE FireAmulet 1
GIVEEXP 5000
GIVE Gold 10000
mov P1 %P9
Inc P1 10
Setfame %P1
#ELSESAY
You Do Not Have What I Require {FCOLOR/10}<$USERNAME>{FCOLOR/12}!!\
Please Gather 50 Ignis Crystals\\
<[ Exit ]/@Exit>\\\

Scripting isnt my best talent lol
 

Sejanus

Dedicated Member
Dedicated Member
Sep 14, 2006
212
5
64
Try:

[@Firereward]
#IF
CHECKFAME
CHECKITEM IgnisCrystal 50
#ACT
TAKE IgnisCrystal 50
GIVE FireAmulet 1
GIVEEXP 5000
GIVE Gold 10000
mov D4 %P9
inc D4 10
setfame %D4
#ELSESAY
You Do Not Have What I Require {FCOLOR/10}<$USERNAME>{FCOLOR/12}!!\
Please Gather 50 Ignis Crystals\\
<[ Exit ]/@Exit>\\\

ps. I understand you wanted to add 10 FP for IgnisCrystals.
 
Upvote 0

DarkSouls

Loyal Member
Loyal Member
May 27, 2014
114
0
42
Cheers mate i will look at it later

---------- Post Merged on 28-10-2014 at 03:41 PM ---------- Previous Post was on 27-10-2014 at 07:19 PM ----------

I tried it that way and still gave crazy FP sumit like 56million lol, So i tried it this way :-


[@Firereward]
#IF
CHECKFAME
CHECKITEM IgnisCrystal 50

#ACT

mov D4 %P9
inc D4 10
setfame %D4
TAKE IgnisCrystal 50
GIVE FireAmulet 1
GIVEEXP 5000
GIVE Gold 10000

#ELSESAY

You Do Not Have What I Require {FCOLOR/10}<$USERNAME>{FCOLOR/12}!!\
Please Gather 50 Ignis Crystals\\
<[ Exit ]/@Exit>\\\


For some reason moving the give and takes after the fame bits seamed to work. all works fine this way.. Ty for the help again :)
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,183
30
2,785
540
mov D4 %P9
inc D4 10
setfame %D4

those 3 lines are the only bits which should modify your fame.

since inc D4 10 just adds 10 to the value of D4, it must be what you've got in P9 that breaks it.
 
Upvote 0