Special Zone Commands
J (jump lines):
Format: 'J' [if-flag] [# of lines to jump]
If the last command did NOT execute and the if-flag is set to 0,
it will jump x number of commands.
If the last command DID execute and the if-flag is set to 1,
it will jump x number of commands.
T (set time interval for subsequent commands)
Format: T [if-flag] [hour] [day] [weekday] [month]
Specify a time range in game hours and this command will
return true if the current hour falls within the range.
You may also specify a day and a month. Link other zon
commands to this one to create time based zone events.
You can now specify 1 hour, 1 day, 1 weekday, 1 month.
Any combination of these time fields can be used to
specify a vague or exact time. Valid days are 1 - 35.
Valid times are 0-23 (0 is midnight, 23 is 11pm). If
you want to omit the hour, place a -1 in its field.
Any combination of hours/day/month is valid - ie, it's
perfectly possible to create a command that is only
activated at midnight, on Saturday, of the 9th month of
the year, or a command that only activates on Wednesday
of the 8th month of the year at any time of day, etc etc
ad infinitium. A valid list of months and weekdays and
their numerical values can be found below.
Uses for this command:
- This command is best used within a zon with a 1-minute
reset. If this is inconvenient for your zone (it
usually is), attach it to another zone with a 1-minute
reset (I've created one, just email me if you want something
inserted in it.) Note that for day/month only
commands, any zone with a reset less than 24 minutes
will work just fine.
-Note that when you use this command to determine only a
vague time (month, weekday, etc) it will be checked
every *minute* of that month/day if you have a reset of
1. So the best solution is to link an object load with
a max of 1 to the time command, and then link the actual
time-based zon commands to said obj. Use a 2nd T
command to remove the obj when the time period is over.
EXAMPLE1: these commands will load a single mob once
every wednesday, whenever the zon is reset. This could
be used with a zone reset of anything less than 23 (a
full day), and frees you from having to specify an
hour. So the total effect is to load a mob at a random
time on
wednesdays only. :)
*** Activation chain ****
T 0 -1 0 4 0 *** 4 = Wednesday
O 1 91100 1 91101 *** Load obj 91100 in a distro room
M 1 91704 1 91700 *** Load mob 91704
*** Deactivation chain ***
T 0 -1 0 5 0 *** 5 = Thursday
R 1 91101 91100 *** Remove obj 91100 from room
- Create a zon with a special set of mobs at night. For
instance, set a time command for midnight, then link a
bunch of mob loads to it (vampires?). Set another time
command for 6am, and link the X command with the -1 room
option to remove all of those nocturnal mobs.
EXAMPLE2: This loads a mob at 10pm, and removes it at
6am, again, assuming the zone has a 1 minute reset time:
T 0 20 0 0 *** 20 = 10pm
M 1 40409 1 40403 *** Load mob 40409 in room
T 0 6 0 0 *** 6 = 6am
X 1 -1 40409 1 *** If line above happens, then remove mob
- Make a quest mob that is only around at a certain time
of day.
- Make a quest that forces the players to do something
at a certain time. For example, one could make the Forka
quest in GC only work if the players drop the materials
on the ground at midnight. If they drop it at a
different time, remove the items and load something
else!
WEEKDAYS:
the Day of the Moon 1
the Day of the Bull 2
the Day of the Deception 3
the Day of Thunder 4
the Day of Freedom 5
the day of the Great Gods 6
the Day of the Sun 7
MONTHS:
Month of Hammer (the Deepwinter) 1
Month of Alturiak (the Claws of the Cold) 2
Month of Ches (of the Sunsets) 3
Month of Tarsakh (of the Storms) 4
Month of Mirtul (the Melting) 5
Month of Bestanth (the Renewal) 6
Month of Kythorn (the Time of Flowers) 7
Month of Flamerule (Summertide) 8
Month of Eleasias (Highsun) 9
Month of Vinthar (of the Harvest) 10
Month of Eleint (the Fading) 11
Month of Marpenoth (Leafall) 12
Month of Uktar (the Rotting) 13
Month of Nightal (the Drawing Down) 14
Month of Mithrian (the Wanting) 15
Month of Horthos (of the Abandoned) 16
Month of Annaxes (the Breath of Frost) 17