Adding and taking fame in 3.55 files

smoochy boys on tour

SoulForge

Dedicated Member
Dedicated Member
Oct 18, 2004
169
7
64
How is it done so npc can add fame to an existing amount of fame without resetting the amount a player already has to the new amount
e.g.

I have 100 fame on my character i do a small quest and get awards 50 fame, i should now have 150 fame but my scripts all seem to reset my 100 fame and make it 50 so i lose the 100 :S

Can someone PLEASE post a fame adding script plz this is a nightmare playing with D numbers :(
 

MasterQ

LOMCN Veteran
Veteran
Loyal Member
Aug 6, 2006
462
0
62
London
#IF
CHECKFAME "number" checks they have the fame
#ACT
SETFAME "Number" sets it no matter what they had before
INCFAME "Number" adds fame
DECFAME "Number" decreases fame

what ude want is

#IF
CHECKFAME 100
#ACT
SETFAME 150
#ELSESAY
You dont have 100 FamePoints yet.\
 
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
i got this npc

[@main]
#SAY
Zamieniam itemy na Fame Points.\\
< ...ITEM..../@item\>


[@item]
#SAY
Za ten item dam ci\
1 Fame Point.\\

< Zgoda/@yes\>
< Nie dzięki/@main>

[@yes]
#IF
checkitem fleaskin 500

#ACT
takeitem fleaskin 500
incfame 1

#SAY
Oto twoja nagroda.\\

#ELSESAY
Wybacz ale nie masz itemu.\\

i got 3.38 server and everything works npc takes items but dont give FP plz help :)
 
Upvote 0

SoulForge

Dedicated Member
Dedicated Member
Oct 18, 2004
169
7
64
All them scripts will not work correctly, they only set your characters fp to a set number they wont add the fp npc will give and your current fp
 
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
#IF
CheckFame
#ACT
mov P1 %P9
Inc P1 5
Setfame %P1


ever call first CheckFame then in P9 is the Information from the DB.


Edit : The Fame System Work normaly only on MapQuests things, If you use other like a Normaly NPC then you need to Kill a Mob or you switch the Map to Update the FP overview.
 
Last edited:
Upvote 0