[2.3] quest npc help variables

SabreMir

Dedicated Member
Dedicated Member
Jul 21, 2012
114
2
45
ive made a kill quest NPC but seems ive done summin wrong somewhere, i basically copied 1 i have working but changed mob etc any1 tell me what ive done wrong

heres npc script

[@main]
#IF
checknamelist Quests/CompleteRatQuest.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main3
[@main3]
#IF
checknamelist Quests/ratquest.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME>, Welcome to the ZumaQuests. \
To complete this quest you need to kill 100 Rats. \\
<Attempt the quest/@attempt> \
<Not now thanks/@exit>
[@attempt]
#IF
#ACT
addnamelist Quests/ratquest.txt
SET [304] 1
Var Integer Human BigratKilled
#SAY
Good luck, come back to me to check \
how many Rats you have killed. \\
<Exit/@exit>
[@quest1]
#IF
CheckVar Human BigRatKilled > 99
#ACT
addnamelist Quests/CompleteRatQuest.txt
#SAY
Well done, you have killed enough Rats! \
Take this reward. \\
\
<Here/@orb>
\
<Exit/@exit> \
#ELSESAY
Number of Rats killed : <$HUMAN(BigRatKilled)> \\
<Exit/@exit>
[@Orb]
#if


#act
Give ProtectionOrb 1
RESET [304] 1


break


Qmanage

#IF
#ACT
Var Integer Human BigRatkills
LoadVar Human BigRatKilled ..\QuestDiary\Variables\Integral.txt

and qfunction

[@onkillmob(BigRat)]
#IF
CHECK [304] 1
#ACT
CalcVar Human BigRatKilled + 1
SaveVar Human BigRatKilled ..\QuestDiary\Variables\Integral.txt
goto @Rat1


[@Rat1]
#IF
CheckVar Human BigRatKilled > 99
#ACT
sendmsg 5 "Well done you have killed all 100 Rats come back for your reward!!!"


i have txts in quests folder for each IE: completeratquest.txt and ratquest.txt


npc was sort of working but now he says variable not found any ideas ?

---------- Post Merged on 04-08-2012 at 09:26 AM ---------- Previous Post was on 03-08-2012 at 06:12 PM ----------

any help any1?

---------- Post Merged on 04-08-2012 at 10:38 AM ---------- Previous Post was on 03-08-2012 at 06:12 PM ----------

---------- Post Merged on 04-08-2012 at 10:39 AM ---------- Previous Post was on 03-08-2012 at 06:12 PM ----------

have got this working now but wanted to add to quest so that after u finished 1 quest another becomes available but getting same prob again keeps saying Variable not found think i have done all script correct and added correct bits to Qmanage/Function
any help be most appreciated