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:
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:
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:
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.
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....
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--
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--