Variables 2 Types of mobs HELP

Mu online season 21 - grand opening

DiabloVodkaShot

LOMCN VIP
VIP
Feb 20, 2009
2,285
204
245
Hey guys,

I have been playing with variables these last couple of days and it has really began to tick me off im trying to add a quest in where you have to kill two types of mobs on a map so say 20 omas and 40 hens and then report back once done any idea?

Post some examples if possible on how i should achieve this.

P.s i have followed icemans guide

---------- Post added at 09:41 PM ---------- Previous post was at 04:19 PM ----------

any 1?
 

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
You just double up on what you do for the first mob variable with a different name.
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
SET [433] 1
Var Integer Human MultiKill22 0
Var Integer Human MultiKill23 0
SaveVar Human MultiKill22 ..\QuestDiary\Variables\Integral.txt
SaveVar Human MultiKill23 ..\QuestDiary\Variables\Integral.txt
sendmsg 6 "Kill 40 WedgeMoth! 40 rats Come back when you have!"

MapQuest
Mob 1 txt

[@main]
#IF
CHECK [433] 1
#ACT
CalcVar Human MultiKill22 + 1
SaveVar Human MultiKill22 ..\QuestDiary\Variables\Integral.txt
LineMSG 6 "Quest: <$Human(MultiKill22)>/40 Kiled!"
GOTO @w1

[@w1]
#IF
CheckVar Human MultiKill22 > 39
#ACT
sendmsg 6 "You have killed 40 see Sam."
close

Mob 2 txt

[@main]
#IF
CHECK [433] 1
#ACT
CalcVar Human MultiKill23 + 1
SaveVar Human MultiKill23 ..\QuestDiary\Variables\Integral.txt
LineMSG 6 "Quest: <$Human(MultiKill23)>/40 Kiled!"
GOTO @w1

[@w1]
#IF
CheckVar Human MultiKill23 > 39
#ACT
sendmsg 6 "You have killed 40 see Sam."
close
 
Last edited:
Upvote 0

DiabloVodkaShot

LOMCN VIP
VIP
Feb 20, 2009
2,285
204
245
my question now is how does it know what it needs to count like where does it say kill wedgemoth to the computer or do i need to define that some where :) sorry for all these noobish questions
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
in map quest txt

map# [433] 1 monname * moth < txt name of file in mapquest def
map# [433] 1 mobname * rat < txt name of file in mapquest def
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
This works just tested it, you can script it better only a quick edit of an older script.

npc
Code:
[@main]
#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 & 5 Deer. \ \
<Attempt the quest/@attempt> \
<Not now thanks/@exit>

[@attempt]
#IF
#ACT
addnamelist Quests/omaquest.txt
SET [303] 1
Var Integer Human omaKilled
Var Integer Human deerKilled
#SAY
Good luck, come back to me to check \
how many mobs you have killed. \\
<Exit/@exit>

[@quest1]
#IF
CheckVar Human omaKilled > 19
CheckVar Human deerKilled > 4
#ACT
addnamelist Quests/CompleteomaQuest.txt
#SAY
Well done, you have killed enough mobs \
Take this reward. \ \
<Here/@male>
#ELSESAY
Number of Omas killed : <$HUMAN(omaKilled)>/20 \ 
Number of Deer killed : <$HUMAN(deerKilled)>/5\ 
<Exit/@exit>

[@male]
#if
GENDER MAN
#act
Give LightArmour(M) 1
SET [303] 0
#elseact
Give LightArmour(F) 1
SET [303] 0
GOTO @main

qmanage
Code:
[@Login]
#IF
#ACT
Var Integer Human omaKilled
LoadVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
#IF
#ACT
Var Integer Human deerKilled
LoadVar Human deerKilled ..\QuestDiary\Variables\Integral.txt
break

mapquest folder make 2 new txt one called quest1.txt other quest1.1.txt add these..
quest1.txt
Code:
[@main]
#IF
CHECK [303] 1
#ACT
CalcVar Human omaKilled + 1
SaveVar Human omaKilled ..\QuestDiary\Variables\Integral.txt
goto @oma1

[@oma1]
#IF
CheckVar Human omaKilled > 19
#ACT
sendmsg 6 "Well done you have killed all 20 "
quest1.1.txt
Code:
[@main]
#IF
CHECK [303] 1
#ACT
CalcVar Human deerKilled + 1
SaveVar Human deerKilled ..\QuestDiary\Variables\Integral.txt
goto @oma1

[@oma1]
#IF
CheckVar Human deerKilled > 4
#ACT
sendmsg 6 "Well done you have killed all 5 Deer.

add this to mapquest.txt
Code:
0      [303]    1      Oma       *               quest1
0      [303]    1      Deer       *               quest1.1
 
Upvote 0

Mask

Banned
Banned
Golden Oldie
Jun 20, 2003
1,695
22
175
United Kingdom
how do other games do their quest systems? iv always found variables very long winded in mir, there must be an easier method out there.
 
Upvote 0