This was made by a mate of mine just to how to do it should work on 2.3 or 2.6
This is ur npc (but it goes in market def)
[@quest]
#IF
checknamelist Quests/CompleteomaQuest.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main3
[@main3]
#IF
checknamelist Quests/omaquest.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME> welcome to the beginners quest. \
To complete this quest you need to kill 20 Omas. \\
<Attempt the quest/@attempt> \
<Not now thanks/@exit>
[@attempt]
#IF
#ACT
addnamelist Quests/omaquest.txt
SET [303] 1
Var Integer Human omaKilled
#SAY
Good luck, come back to me to check \
how many Oma you have killed. \\
<Exit/@exit>
[@quest1]
#IF
CheckVar Human omaKilled > 19
#ACT
addnamelist Quests/CompleteomaQuest.txt
#SAY
Well done, you have killed enough Oma! \
Take this reward. \\
\
<Here/@male>
\
<Exit/@exit> \
#ELSESAY
Number of Omas killed : <$HUMAN(omaKilled)> \\
<Exit/@exit>
[@male]
#if
GENDER MAN
#act
Give LightArmourQ(M) 1
RESET [303] 0
#elseact
Give LightArmourQ(F) 1
RESET [303] 0
This is ur Qfun
[@onkillmob(Oma)]
#IF
CHECK [303] 1
#ACT
CalcVar Human omaKilled + 1
SaveVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
break
This is ur Qman
#IF
#ACT
Var Integer Human omaKilled
LoadVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
Add this to QuestDiary
A folder named
Variables
in the folder put a txt named
Integral
ket to vars when useing flags also if u can the npc for testing remember to wipe any txt files it uses and u MUST reset the flags it uses this is only for testing
This is ur npc (but it goes in market def)
[@quest]
#IF
checknamelist Quests/CompleteomaQuest.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main3
[@main3]
#IF
checknamelist Quests/omaquest.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME> welcome to the beginners quest. \
To complete this quest you need to kill 20 Omas. \\
<Attempt the quest/@attempt> \
<Not now thanks/@exit>
[@attempt]
#IF
#ACT
addnamelist Quests/omaquest.txt
SET [303] 1
Var Integer Human omaKilled
#SAY
Good luck, come back to me to check \
how many Oma you have killed. \\
<Exit/@exit>
[@quest1]
#IF
CheckVar Human omaKilled > 19
#ACT
addnamelist Quests/CompleteomaQuest.txt
#SAY
Well done, you have killed enough Oma! \
Take this reward. \\
\
<Here/@male>
\
<Exit/@exit> \
#ELSESAY
Number of Omas killed : <$HUMAN(omaKilled)> \\
<Exit/@exit>
[@male]
#if
GENDER MAN
#act
Give LightArmourQ(M) 1
RESET [303] 0
#elseact
Give LightArmourQ(F) 1
RESET [303] 0
This is ur Qfun
[@onkillmob(Oma)]
#IF
CHECK [303] 1
#ACT
CalcVar Human omaKilled + 1
SaveVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
break
This is ur Qman
#IF
#ACT
Var Integer Human omaKilled
LoadVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
Add this to QuestDiary
A folder named
Variables
in the folder put a txt named
Integral
ket to vars when useing flags also if u can the npc for testing remember to wipe any txt files it uses and u MUST reset the flags it uses this is only for testing
