Quest Variables- Wont Save

NightScare

Legend
Legendary
Nov 11, 2005
3,071
225
290
Nottingham
Cant get em to save


Q-Manage.TXT=
[@login]
#IF
Check [101] 1
#ACT
Var Integer Human KillCount 0
LoadVar Human KillCount..\QuestDiary\Variables\Integral.txt
#IF
Check [102] 1
#ACT
Var Integer Human KillCount1 0
LoadVar Human KillCount1..\QuestDiary\Variables\Integral.txt





Market_Def=
[@OgreHide]
#IF
CHECKNAMELIST Namelists/Ogre1.txt
#SAY
Thanks you for you help <$USERNAME>. \ \
<Exit/@exit>
#ACT
BREAK
#IF
CHECK [203] 1
#SAY
Thanks you for you help <$USERNAME>. Please take this reward. \ \
<Exit/@exit>
#ACT
Gamepoint + 30
SENDMSG 6 "GamePoint +30 Added"
set [203] 0
ADDNAMELIST Namelists/Ogre1.txt
BREAK
#IF
CHECKNAMELIST namelists/OgreStart.txt
#SAY
You have killed <$Human(KillCount1)>/5 OgreChiefs. Please come back \
when you have killed all five. \ \
<Exit/@exit>
#ACT
BREAK
#ELSESAY
I need you to kill 5 OgreChiefs for me\\
I Will Reward you with 30 GamePoints \ \
<Yes/@accept> || <No/@exit>

[@accept]
#ACT
Var Integer Human KillCount1 0
SaveVar Human KillCount1 Integral.txt
ADDNAMELIST Namelists/Ogrestart.txt
SET [102] 1
#SAY
Sweet. Come back when you've killed 5 OgreChiefs. \ \
<Exit/@exit>


MapQuest-ogre.txt
[@main]
#IF
CheckVar Human KillCount1 = 5
#ACT
BREAK
#IF
CheckVar Human KillCount1 = 4
#ACT
GOTO @finish
BREAK
#IF
CheckVar Human KillCount1 < 4
#ACT
CalcVar Human KillCount1 + 1
SaveVar Human KillCount1 Integral.txt
BREAK
#ELSEACT
BREAK

[@finish]
#ACT
SET [102] 0
CalcVar Human KillCount1 + 1
SaveVar Human KillCount1 Integral.txt
set [203] 1
#SAY
You have killed enough OgreChiefs to finish the quest. Return to the NPC for you \
prize. \ \
<Exit/@exit>


MapQuest.txt
C1 [101] 1 KelzukWarLord * KelzukQuest
C2 [102] 1 OgreChief * OgreQuest



havnt posted both npc scripts, but ive posted main bits,
some reason neither of theese quests will save when i log out
[101] 1 and [102] 1 are the flagsd u get for starting the quests so
rly, @login if u have them flags it shud load them var's
But it doesnt...
 

Celsius

Golden Oldie
Golden Oldie
Dec 31, 2008
1,179
63
134
Check if the vars even load, as I believe you have an issue with the variable name and the path, theres no space between them.

LoadVar Human KillCount..\QuestDiary\Variables\Integral.txt <- no space

LoadVar Human KillCount ..\QuestDiary\Variables\Integral.txt <- space


You also need the full integral path when saving, not just Integral.txt
 
Last edited:
Upvote 0