MapQuest Guide

Join Discord

Solitude

LOMCN VIP
VIP
Apr 22, 2003
325
0
153
South Wales
I've seen a lot of people asking for help in using the MapQuest system. So below is a simple guide for creating a quest to kill mob X on map Y.

Open up "\mirserver\Mir200\Envir\MapQuest.txt", you should see something like this:

Code:
12      [401]    1      RootSpider       *               Q1401

D10031  [403]    1      BigApe           *               Q1403
D10032  [403]    1      BigApe           *               Q1403
D1004   [403]    1      BigApe           *               Q1403
D10051  [403]    1      BigApe           *               Q1403
D10052  [403]    1      BigApe           *               Q1403
D10053  [407]    1      RedEvilApe       *               Q1407
D10071  [409]    1      RedMoonEvil1  EvilApeOil         Q14091
D10054  [412]    1      GreyEvilApe      *               Q1412
D10062  [413]    1      RedMoonEvil      *               Q14132

This is were you set any mobs for MapQuests. Scenario: We have map Y and we want to trigger something when mob X gets killed on that map, to do this we would add the following:

Code:
Mapname   [Quest Flag]  Ammount    Mob Name   Item Name        Quest File
MapY      [999]    1      MobX       *               Q999

Now that we've added our trigger, we need to define something to output once that event has been triggered. So now create a text file called Q999 and put the following NPC script in it:

Code:
[@main]
#IF
check [999] 1
#ACT
goto @killed_mob

[@killed_mob]
#SAY
Well done, you killed mob X\
Click next to get your prize
<Next../@getprize>

[@getprize]
#IF
check [998] 0
#ACT
give prize 1
set [998] 1
#ELSESAY
You have already had your prize\\
<Exit/@exit>

Save this file as Q999.txt in the "\mirserver\Mir200\Envir\MapQuest_Def\" folder.

That is the use of MapQuest for killing a mob. Now you're wondering how you stop people accessing maps using MapQuest?? Easily done.

As an example, we want to only allow people who've completed a quest to be able to access map X. Open up "\mirserver\Mir200\Envir\mapinfo.txt" and add the following.

Code:
[MapX Quest_Map_X 0] CHECKQUEST(Q8888) NORECALL NORECONNECT(0)

In that code, the bit that makes all this work is "CHECKQUEST(Q8888)", what this does is as someone enters a map it executes the NPC script in "\mireserver\Mir200\Envir\MapQuest_Def\Q8888.txt". Now lets make that NPC script....

Code:
[@main]
#IF
;check if quest has been completed (888 being the flag for quest)
check [888] 1
#ACT
break

#IF
;check if quest has been completed (888 being the flag for quest)
check [888] 0
#SAY
You cannot access this map without first completing the quest\
<Exit/@exit>

Save the above NPC script in "Q8888.txt". There you have it, a script to stop people accessing a map based on their flag status.

Obviously for you to be able to use this guide properly, you need to change some details, but it's just a basic guide to how the MapQuest system works.

--Soli--
 

stan

Guest
Ive followed the guide but it doesnt seem to work , im not sure if my m2server effects this at all could someone help please. Much appreciated :)
 

Aspious

Dedicated Member
Dedicated Member
Nov 27, 2003
21
0
47
This is mega helpful, will try it out ASAP!!

I want to set up an NPC that asks the player to go kill GK. So i want GK to get a pop-up when it's done, but only to players who have started the quest. Not to everyone who kills a GK, how would i do this??

Whn GK is killed does the TAG in MapQuest.txt get set to 0. If so then the Code would be simpler, if not do i have to set the TAG back to 0 if the quest hasn't been started?

Code:
[@main]
#IF
CHECK [951] 1
#ACT
Close
#ELSEIF
check [950] 1
#ACT
goto @killed_mob

[@killed_mob]
#IF
CHECK [908] 1
#SAY
I have done all that has been asked!\\
<Continue/@getprize>
#ELSEACT
SET [950] 0
Close

[@getprize]
#IF
check [709] 0
check [951] 0
#ACT
set [709] 1
set [951] 1
Close
#ELSESAY
You have already killed GiantKeratoid!\\
<Exit/@exit>

Sorry, i'm missing the RMV, mob Coding. Won't be able to get it till the Host come online :/ So i can't refer to that.
 
Last edited:

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
175
Darlington, UK
Great guide, floor in this part tho.

Code:
[@main]
#IF
;check if quest has been completed (888 being the flag for quest)
check [888] 1
#ACT
break

#IF
;check if quest has been completed (888 being the flag for quest)
check [888] 0
#SAY
You cannot access this map without first completing the quest\
<Exit/@exit>


if you dont want some 1 in the room you must teleport them or what ever of before they enter the room the npc window will flash up and they can enter anyway. You could also add NEEDSET(888) to the mapinfo that makes it so you need a specific flag set to enter the map. Just thought id point that out
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
195
do you know how to make the box flash up for the entire group or for everyone in the map? or is that not possible?
 

daneo1989

I am Ancient.
Staff member
Moderator
Dec 5, 2005
5,961
1
223
280
UK
This is mega helpful, will try it out ASAP!!

I want to set up an NPC that asks the player to go kill GK. So i want GK to get a pop-up when it's done, but only to players who have started the quest. Not to everyone who kills a GK, how would i do this??

Whn GK is killed does the TAG in MapQuest.txt get set to 0. If so then the Code would be simpler, if not do i have to set the TAG back to 0 if the quest hasn't been started?

Code:
[@main]
#IF
CHECK [951] 1
#ACT
Close
#ELSEIF
check [950] 1
#ACT
goto @killed_mob
 
[@killed_mob]
#IF
CHECK [908] 1
#SAY
I have done all that has been asked!\\
<Continue/@getprize>
#ELSEACT
SET [950] 0
Close
 
[@getprize]
#IF
check [709] 0
check [951] 0
#ACT
set [709] 1
set [951] 1
Close
#ELSESAY
You have already killed GiantKeratoid!\\
<Exit/@exit>

Sorry, i'm missing the RMV, mob Coding. Won't be able to get it till the Host come online :/ So i can't refer to that.


Think it will be more like this m8, not sure:

For the NPC that asks you to kill the GK:

[@main]
#IF
check [102] 1
#ACT
goto @grats
#ELSEACT
goto @main1

[@main1]
#IF
check [101] 1
#SAY
Go kill the GiantKeratoid!\
<Exit/@exit>
#ELSEACT
goto @main2

[@main2]
#SAY
Can you please go kill a GiantKeratoid\
that has been bothering our village lately\
<Sure/@next>\
<Cancel/@exit>

[@next]
#ACT
SET [101] 1
break

[@grats]
#SAY
Thankyou for killing the GiantKeratoid.\
Here please take this\

OK now in mirserver\Mir200\Envir\MapQuest.txt add

3 [101] 1 GiantKeratoid * Q1 <<< pls note the 3 is the map

OK now go in mirserver\Mir200\Envir\MapQuest_def

Create a new text file called Q1 and put this in

[@main]
#say
I have killed the GiantKeratoid\
I should report to the chief!\
<Exit/@Exit>

That should work I think m8
 
Last edited:

Babyhack

Devilsoul Owner
VIP
Feb 4, 2004
5,343
28
305
Dublin, Ireland
Think it will be more like this m8, not sure:

For the NPC that asks you to kill the GK:

[@main]
#IF
check [102] 1
#ACT
goto @grats
#ELSEACT
goto @main1

[@main1]
#IF
check [101] 1
#SAY
Go kill the GiantKeratoid!\
<Exit/@exit>
#ELSEACT
goto @main2

[@main2]
#SAY
Can you please go kill a GiantKeratoid\
that has been bothering our village lately\
<Sure/@next>\
<Cancel/@exit>

[@next]
#ACT
SET [101] 1
break

[@grats]
#SAY
Thankyou for killing the GiantKeratoid.\
Here please take this\

OK now in mirserver\Mir200\Envir\MapQuest.txt add

3 [101] 1 GiantKeratoid * Q1 <<< pls note the 3 is the map

OK now go in mirserver\Mir200\Envir\MapQuest_def

Create a new text file called Q1 and put this in

[@main]
#say
I have killed the GiantKeratoid\
I should report to the chief!\
<Exit/@Exit>

That should work I think m8


23-02-2005
For some reason I dont think he/she cares anymore

BH
 

daneo1989

I am Ancient.
Staff member
Moderator
Dec 5, 2005
5,961
1
223
280
UK
Lol I never look at the date, my apologies... only trying to help
No need to be lary however