[2.3] Mob Killing Quest

Mu online season 21 - grand opening

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Managed to get the hang of this "slightly", although I think Im still going to have troubles with moving onto the next monster killing variables >.<
------------------------------------------------

I've now got my @Quest page working. However when It pops up, I cant click the tabs e.g. Bosses for some weird reason >.<
Any ideas again would be great please
laugh.gif


QFunction:

[@Quest]
#CALL [..\NPC_Def\Quests\Quests.txt @mainstart]

Quests.txt

[@mainstart]
{
#SAY
Hello <$USERNAME>! Welcome to the "Quest" page of Tatsunuko!\
Please select which quest you would like to complete.\
======================================================\ \

.. <Bosses/@bosses> ..\
.. <Monsters/@monster> ..\
.. SECRET\
.. SECRET\
======================================================\
<Exit/@exit>
}

[@Bosses]
{
#SAY
Slaughter: <EvilMir/@EM> - [Located in EvilPalace]\
Slaughter: <EdgeCentipede/@EC> - [Located in TheEdge]\
Slaughter: <KingScorpion/@KS> - [Located in MoneyInNumbers]\
slaughter: <OkitaDragon/@OD> - [Located in NeverLand]\
Slaughter: <JapaneseHooker/@KH> - [Located in NeverLand]\
======================================================\
<Page1/@Bosses> . <Page2/@b2> . <Page3/@b3> . <Main Page/@mainstart> . <Exit/@exit>
{
 
Last edited:

Ilsta

Dedicated Member
Dedicated Member
Feb 20, 2012
563
23
80
Use variables, there's plenty of guides on here about them. Your have to add each mob from that cave to save to a varable and a seperate variable for the boss mob.
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Is there any chance you could give me a quick example on how they work please?
Variables are something ive never used before >.<
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Okay i've followed a basic script but theres a problem..
I've set it so 20 Tongs & 20 Centipedes have to be killed, you can accept this quest by typing @quest.
However, when ive killed e.g. 20 Tongs, and I type @quest again to view how many centipede's ive killed, nothing seems to happen.
and the centipedes won't reach 20 and no shout received.
Unsure what ive done wrong.

I've added a folder in Market_Def called "Quests" with the following txts
"Quest1.txt"
"Quest1Complete.txt"

I've also added a "Variables" folder in the QuestDiary folder with a txt called "Integral.txt"



Heres the script:
QFunction:

[@Quest]
#CALL [..\Market_Def\Quests.txt] @Main

QManage:

#IF
#ACT
Var Integer Human TongsKilled
Var Integer Human CentipedeKilled
LoadVar Human TongsKilled ..\QuestDiary\Variables\Integral.txt
LoadVar Human CentipedeKilled ..\QuestDiary\Variables\Integral.txt
break

Market_Def/Quests.txt

[@main]
{
#IF
checknamelist Quests/Quest1Complete.txt
#SAY
You have already completed this quest
#ELSEACT
goto @main3
[@main3]
#IF
checknamelist Quests/Quest1.txt
#ACT
goto @quest1
#ELSESAY
Hello <$USERNAME> welcome to the beginners quest. \
To complete this quest you need to kill 20 Tongs and\
20 Centipedes\ \
<Attempt the quest/@attempt> \
<Not now thanks/@exit>
[@attempt]
#IF
#ACT
addnamelist Quests/Quest1.txt
SET [303] 1
SET [304] 1
Var Integer Human TongsKilled
Var Integer Human CentipedeKilled
#SAY
Good luck, type @quest to check how many\
you have killed.\ \
<Exit/@exit>
[@quest1]
#IF
CheckVar Human TongsKilled > 19
CheckVar Human CentipedeKilled > 19
#ACT
addnamelist Quests/Quest1Complete.txt
#SAY
Well done, you have killed enough monsters! \
Take this reward. \\
\
<Here/@male>
\
<Exit/@exit> \
#ELSESAY
Number of Tongs killed : <$HUMAN(TongsKilled)> \\
Number of Centipedes killed : <$HUMAN(CentipedeKilled)> \\
<Exit/@exit>

[@male]
#ACT
GIVE TownTeleport 1
RESET [303] 1
}
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
tom pm me for my msn, i got a easy setup for vars and quests you can use.
 
Upvote 0

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
take out the { and } before and after [@bosses]
you only need one at top and then the other at the very end of script.

Code:
[@mainstart]
{
#SAY
Hello <$USERNAME>! Welcome to the "Quest" page of Tatsunuko!\
Please select which quest you would like to complete.\
==================================================  ====\ \

.. <Bosses/@bosses> ..\
.. <Monsters/@monster> ..\
.. SECRET\
.. SECRET\
==================================================  ====\
< Exit/@exit>

[@Bosses]
#SAY
Slaughter: <EvilMir/@EM> - [Located in EvilPalace]\
Slaughter: <EdgeCentipede/@EC> - [Located in TheEdge]\
Slaughter: <KingScorpion/@KS> - [Located in MoneyInNumbers]\
slaughter: <OkitaDragon/@OD> - [Located in NeverLand]\
Slaughter: <JapaneseHooker/@KH> - [Located in NeverLand]\
==================================================  ====\
< Page1/@Bosses> . <Page2/@b2> . <Page3/@b3> . <Main Page/@mainstart> . [EMAIL="Exit/@exit"]Exit/@exit[/EMAIL]
}
 
Last edited:
Upvote 0