Var Guilde

Desolation Mir2 (Med Rate Server)

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
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
 

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Thanks i'm sure it will come in handy :P

But as you tought me everything already im good thx :P

Want a legend of mir tutor pm iceman :P
 
Last edited:
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,745
346
330
Kent, UK
its ok i alrdy tutor iceman ;)

some1 posted this ages ago btw it was in a varaible.txt explainin how they all work etc

personally, on this bit:

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

i woulda done

#IF
check [303] 1
#ACT
Var Integer Human omaKilled 0
LoadVar Human omaKilled ..\QuestDiary\Variables\Integral.txt


but thats me
 
Upvote 0

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
45
its ok i alrdy tutor iceman ;)

some1 posted this ages ago btw it was in a varaible.txt explainin how they all work etc

personally, on this bit:

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

i woulda done

#IF
check [303] 1
#ACT
Var Integer Human omaKilled 0
LoadVar Human omaKilled ..\QuestDiary\Variables\Integral.txt


but thats me

i do the same thing :P
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
it was just something to show ppl

also think for pointing things sure it will help others
 
Upvote 0