Checking monsters

Mu online season 21 - grand opening

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
Hello people,

I am just wondering two things.


  1. How do you check if the monsters on the map are dead then teleport the user out of the cave.
  2. How do you check how many monsters of the same kind the user has done.
 

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
#IF
CHECKMONMAP Q001 1
#SAY
There is mobs still alive
#ELSESAY
The mobs are dead.

Play around wit that command - i think it's that way round.
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
That bit I aint sure..

Should be someway to do it in QFunction - other than that, you could use timerecall, aint exactly what you want but you could edit it differently if there isnt a way..

/Daz
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
In QFunction.

[@OnKillMob(mobname)]
#ACT
MAPMOVE 0 350 260

Something like that..

/Daz
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
Nope =/ so it's gotta be a single mob thing. you COULD, have a NPC at the end of the room, where it checks if the room is clear then you tele out..

That makes you, when you kill a mob called 'mobname' u do #ACT

/Daz
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
No problem, the [@onkillmob(mobname)] - is used on quests such as RME quest where you have to kill apes for an oil or something, and a little box comes up, "Sorry you haven't got the right oil yet" every time you kill an Ape -

[@onkilllmob(Ape)]
#IF
RANDOM 2
#SAY
Sorry not right ape!

#IF
RANDOM 2
#ACT
GIVE ApeOil 1
#SAY
You got the right ape!

Summet like that.
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
It picks from one of the 2, RANDOM 2 = u got 1/2 chance.

So u got 2 options, it will pick one of them - so if you have RANDOM 26, you will have 26 statements so u have 1/26 chance of getting the winning statement (if u only have 1 winning statement)

/Daz
 
Upvote 0

Dazz

LOMCN Veteran
Veteran
Apr 12, 2008
296
0
43
You have to do this via a NPC and using something called Variables, I USED to know how to set them up :( try searching, its weird :P

When you do Variables and set it up - you ave something in your NPC like this..

#SAY
Hi, you have killed <$HUMAN(SandSnake)>

/Daz
 
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
I will be setting it up so if you type @goals it will come up with the monsters he or she has killed.

Could you write an example for, say BigRat.
 
Upvote 0