Robot + MapQuest Help

Desolation Mir2 (Med Rate Server)

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Problem sorted thanks to boothy.

What I was origionally trying to do, was make a certain map E.G 2nd floor to 3rd floor of cave, open and close at certain times.
So it was accessable between 12PM and 12:59PM.
Once the clock strikes 1:00PM, you will then be denied access to the map.

Once the clock has hit 12PM, The door will open and the boss will spawn.
You then have 1 hour to make your way to the boss and kill it before the room locks.
Once it locks all players will be automatically teleported off the map.

I have explained in full detail on the post below on how to do this.
 
Last edited:

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Heres how its been done:

------------------------------------- Opening / Locking Doors ---------------------------------

QFunction @Home Command's (If you have one) :

Add this on
set [501] 0

../M2Server/EnvirMapQuest_def/

Create a new ini called Q1510.
In the new ini put the following:

#IF
CHECK [501] 1
#ACT
BREAK
CLOSE

#ELSESAY
Sorry <$USERNAME>.\
You cannot access this cave at the moment...\ \

<Exit/@exit>

../M2Server/Envir/NPC_Def

Find your teleportstone / teleport guy NPC.

Add a new teleport selection on.
E.G <OmaCave/@oma2>

then on your [@oma2] section
Put the following:

[@oma2]
#IF
HOUR 12
MIN 0 59
#ACT
set [501] 1
map D002
#ELSEACT
goto @next

What this does, is checks if the time is between 12 and 12:59PM.
If it IS between that time, then you can enter the map DM002 from D002,
Once the clock ticks past 1PM, you will NOT be able to access the DM002 map.

Find the map 'D002' in your SQL, TBL_MapInfo
When you have found the map, then tab along to FLD_Flag.
Add this on your FLD_Flag:

DARK CHECKQUEST(Q1510) NEEDSET_ON(501)


------------------------------------------ Spawning Certain Mobs On A Map ------------------------


../Envir/Robot_def AutoRunBot.txt

Delete everything else in the text that you are NOT already useing.
And add the following:

#AutoRun NPC RUNONDAY 12:00 @tester

../Envir/Robot_def RobotManage.txt

[@tester]
#IF
CHECKMONMAP X Y Z (You will need to change X Y Z to your own mapname & coordinates)
#ACT
Param1 (MapName)
Param2 (Coord X)
Param3 (Coord Y)
MONGEN (Mobname) (Amount) (Range)

../M2Server/Envir/ Robot.txt

Type the following:
System AutoRunRobot

--------------------------------------------------------------------

Hope this helps, many thanks to boothy for figuring these things out.
 
Last edited:
Upvote 0