CHECKMONMAP help if you can please

Mu online season 21 - grand opening

chris987789

Dedicated Member
Dedicated Member
Dec 29, 2008
11
0
27
I've searched through the forum to try and find what im doing wrong but to no avail.
I'm trying to make it tele to kerquest map with 20 keratoids and when you kill the last 1 it gives you the gold exp and tt. It works fine spawning etc but runs @ker1 from kerquest.txt after the first mob is killed :s
Please can some1 help me with this code:

NPC:
Code:
[@ker]
#IF
CHECK [418] 0
#ACT
goto @ker1
#ELSEACT
goto @kercomp

[@ker1]
Please will you clear my fields\
of them pesky Keratoids!!!!\
Reward 100k Gold 100k Exp\ \
<I Will/@ker2>\
<Exit/@exit>

[@ker2]
#IF
#ACT
CLEARMAPMON kerquest
Param1 kerquest
Param2 25
Param3 25
MONGEN keratoid 20
MAP kerquest

[@kercomp]
You have already completed this quest!!\ \
<Exit/@exit>
MapQuest.txt:
Code:
kerquest [418] 0 keratoid * kerquest
kerquest.txt
Code:
[@main]
#IF
CHECKMONMAP kerquest 1
#ACT
goto @ker1
#ELSEACT
goto @ker2

[@ker1]
#IF
#ACT
GIVE townteleport
GIVE GOLD 100000
CHANGEEXP + 100000
SET [418] 1
sendmsg 6 "Thankyou for killing the Keratoids!"

[@ker2]
#IF
#ACT
sendmsg 6 "Nearly There!"
sorry for triple post wouldn't let me do it all in one!
Thanks in advance
 
Last edited by a moderator:

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
What files are you using please?

Firstly you need to set a flag when someone begins the quest, so give me a flag number you want to use for that.

But basically your main problem is this:

Code:
CHECKMONMAP kerquest 1

Instead of using that I'd use:

Code:
CHECKMAPMONCOUNT kerquest = 0
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
What files are you using please?

Firstly you need to set a flag when someone begins the quest, so give me a flag number you want to use for that.

He's done that, it's flag 418. Though i'm unsure of how high flags go, can't remember off the top of my head - it's been a while.


But yeah the reason it's coming up once you've killed one is because
Code:
#IF
CHECKMONMAP kerquest 1

There is still 1 of the mob on that map, more than 1 in fact but still 1, you either want what Tai said (= 0) or (< 1).

Also I would re-think this bit;
Code:
[@ker2]
#IF
#ACT
sendmsg 6 "Nearly There!"
As the quest requires you to kill 20? This will spam a lot, exp spam plus this line message 20 times!
 
Last edited:
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
I know he's used a flag but it only checks to see if it's set to 0. When I posted I was thinking well anyone who isnt doing the quest won't have it set, but I just realised it's probably a quest-only map so doesn't rly matter.
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
I know he's used a flag but it only checks to see if it's set to 0. When I posted I was thinking well anyone who isnt doing the quest won't have it set, but I just realised it's probably a quest-only map so doesn't rly matter.

[@ker1]
#IF
#ACT
GIVE townteleport
GIVE GOLD 100000
CHANGEEXP + 100000
SET [418] 1
sendmsg 6 "Thankyou for killing the Keratoids!"

Sets the flag once the quest is complete and the user has received the reward.

All flags are set to 0 by default.
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
I know that. What I mean is when the quest is actually in play the only flag it checks for is set to 0
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
I know that. What I mean is when the quest is actually in play the only flag it checks for is set to 0

Yeah to make sure the user's can't do it twice, this quest doesn't require the user to visit the quest NPC more than once as it is completed and rewards are received within the MapQuest.
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
Indeed, but what I meant with my original comment was that it would be better to use 2 flags...one for when the quest is in play, then set another when it's completed. But as I've also said, after thinking about it it doesn't really matter with this quest in particular, so why are we still talking about it! lol
 
Upvote 0

chris987789

Dedicated Member
Dedicated Member
Dec 29, 2008
11
0
27
lol thanks for the help yes its a quest map and I had changed the kerquest.txt to that because it wasnt working I originally had it to just break on elseact.
I just thought I'd read somewhere that checkmonmap 1 would check that there wer less than 1 mobs on the map i.e. empty map. Thanks tho
 
Upvote 0