Overview
The NewMap plugin has two parts that share one license key:
- Private map (Private): a map declared with
Private="1"inData\World\WorldTemplate.xml. Each character entering the map gets its own copy (a separate instance); the map's monsters are created separately for each player and cleaned up when nobody is left in the copy. - Event Map (Solo type): a button in the 4th tab of the Events Info window (like the original Boss Battle tab). The player clicks Move to enter their private copy of the map, the boss appears, and a countdown clock runs in the bottom right corner of the screen. When time runs out or the boss is killed, there is a short period to pick up items before the player is moved out.
EventMapSolo.xml file; selecting a map whose Index is of a type other than Solo reports "This map type is not available yet" (Lang EventMap 29).Operating conditions
- The NewMap plugin is purchased and in
Data\Plugin\Plugin.inisection[Plugin]hasnewmap = 1. If not purchased or set to0: the Event Map tab is hidden on the client, maps withPrivate="1"cannot be entered (the Move button reports "The Event Map system is currently disabled."). - The client needs a recent
Main.dlland images for each map (see the section Images on the client). - Game database (SQL Server): the entry counting table
chr_eventmap_enteris created automatically by GameServer at startup if it does not exist. If it cannot be created, GameServer logs the error "[EventMap] Table chr_eventmap_enter could not be created - EventMap disabled" and Event Map is turned off. - Maps used for Event Map need
Private="1"inWorldTemplate.xml. If missing, GameServer logs a warning and players will share the same map.
Configuration file
Data\Plugin\EventMap\EventMapSolo.xml. The root is <EventMapSolo Enable="1">, containing multiple <Map> elements (each Map = one button in the tab). Each Map contains the child tags <Time>, <Boss>, <Drop>, <Reward>, <Vip>, <RewardText>.
EventMapSolo root tag
| Key | Value | Default | Meaning |
|---|---|---|---|
Enable | 0 / 1 | 1 | 1 = use this file; 0 = hide all maps in the file (log: "EventMapSolo is disabled"). |
Map tag
| Key | Value | Default | Meaning |
|---|---|---|---|
Index | 1..255 | (required) | Map sequence number, must not repeat. Used as the image number on the client and as the key for counting daily entries in the database. If invalid or duplicated, the map is ignored (an error is logged). |
Gate | gate number | 0 | The gate the player enters through (Data\World\GateTemplate.xml). The gate determines the map and position. If the gate does not exist, the map is ignored. |
Map | map ID | 0 | Only used when Gate is not given: enter using the map's SpawnGate (WorldTemplate.xml). If the map is not in WorldTemplate.xml, the map is ignored. |
NameLang | ID number | 0 | ID of the map name in the Lang section <EventMap>. 0 = use Name. |
DescLang | ID number | 0 | ID of the description in Lang <EventMap>. 0 = use Desc. |
Name / Desc | string | empty | Name / description used when NameLang / DescLang is 0 or the ID is not in Lang. |
NoteLang / Note | ID number / string | 0 / empty | Note line under the Move button. If not given, Lang EventMap ID 13 is used. |
MinLevel | number or MAX | 0 | Lowest total level (normal level + master) allowed to enter. |
MaxLevel | number or MAX | MAX | Highest total level allowed to enter. MAX or empty = no limit. |
MinReset | number | 0 | Lowest reset count allowed to enter. |
MaxReset | number or MAX | MAX | Highest reset count allowed to enter. |
MatchAny | 0 / 1 | 0 | 1 = only the level OR the reset requirement needs to be met; 0 = both must be met. |
Duration | seconds | 0 | Time allowed to kill the boss (countdown clock). 0 = unlimited, no clock. |
LeaveTime | seconds | 60 | Time the player may stay after the end to pick up items. Boss killed: "Mission complete"; Duration expired with the boss still alive: "Mission failed" and the boss is removed. When LeaveTime expires the character is moved out to ExitGate. |
DailyCount | 0..255 | 0 | Number of entries per day for each CHARACTER (not per account). 0 = unlimited. Reset at 00:00 game server time. |
ReqZen | Zen amount | 0 | Zen deducted on entry. Not given = free. |
ExitGate | gate number | 0 | The gate that takes the player out when they must leave the map. 0 / not given = back to Lorencia. |
Icon / Background | number N | empty | Optional. Empty = the client uses images by Index; giving a number N = use image number N (button_event_N.ozd / bg_event_N.ozd). [TO VERIFY: these two attributes exist in the code but are not documented in the sample XML file] |
Time tag (opening hours)
Placed inside <Map>, as many lines as you like. No <Time> line at all = the map is open all day. Times follow the game server time.
| Key | Value | Default | Meaning |
|---|---|---|---|
Hour | 0..23 | 0 | Hour the map starts opening. Outside the range the line is ignored (an error is logged). |
Minute | 0..59 | 0 | Minute the map starts opening. |
Open | minutes (minimum 1) | 60 | For how many MINUTES from Hour:Minute the Move button is open. For example Hour="20" Minute="0" Open="30" = can enter from 20:00 to 20:29. |
DayOfWeek | -1, 0..6 | -1 | -1 = every day; 0 = Sunday, 1 = Monday ... 6 = Saturday. |
Boss tag
One line inside <Map>. The boss appears once in the private copy and does not respawn. The "killer" is the player who dealt the most damage to the boss.
| Key | Value | Default | Meaning |
|---|---|---|---|
Monster | monster ID | 0 | ID in Data\Monster\MonsterList.xml or Data\Plugin\Monster\CustomMonster.xml. If it is not in the list the boss is disabled (an error is logged). |
X / Y | coordinates | 0 / 0 | Position where the boss appears in the map. |
Delay | seconds | 0 | Number of seconds after the player arrives before the boss appears. 0 = immediately. |
DropMode | 0 / 1 | 0 | 0 = shared drops, everyone in the copy can pick them up; 1 = only the boss killer can pick up the <Drop> items. |
Exp | number | not given | Not given = experience like a normal monster (based on monster level). 0 = nobody receives experience. N = the killer receives exactly N experience. |
Drop tag (items dropped when the boss dies)
Same attributes as the <Item> line of the NPC shop file (Data\Shops\Scripts\*.xml). Items that are not in ItemList.xml are ignored (an error is logged).
| Key | Value | Default | Meaning |
|---|---|---|---|
ItemCat / ItemIndex | number | 0 / 0 | Item group and sequence number within the group (for example 14,13 = Jewel of Bless). |
ItemLevel | 0..15 | 0 | + level. |
ItemDur | number | 0 | Durability, 0 = item default. |
ItemSkill | 0 / 1 / -1 | 0 | 1 = has skill; -1 = 50% chance of having skill. |
ItemLuck | 0 / 1 / -1 | 0 | 1 = has luck; -1 = 50% chance of having luck. |
ItemOption | 0..7 | 0 | Additional option (+4 per level). |
ItemExel | string | -1 | -1 = no excellent; "1;2;5" = excellent lines by ID in Data\Item\ItemExcellentOptions.xml; -2 = random 1 or 2 lines; "-3;4" = random 4 lines (the number after the ;); -10 = mastery excellent line (Data\Item\MasteryExcOptions.xml). Can also be written using the name Exc. |
ItemAncient | number | 0 | Ancient (set) value, 0 = none. |
Socket1..Socket5 | number | 65535 | Socket value; 65535 = that socket slot does not exist. |
Count | 1..100 | 1 | Quantity of this item. |
Rate | 0..10000 | 10000 | Rate of EACH item out of 10000 (10000 = always drops, 5000 = 50%). |
Killer | 0 / 1 | 0 | 1 = this item can only be picked up by the boss killer (extra reward). 0 = follows DropMode. |
Reward tag (currency when the boss dies)
| Key | Value | Default | Meaning |
|---|---|---|---|
Type | Zen / WCoin / GCoin / Ruud | (required) | Currency type (GPoint is also understood as GCoin). If the type is wrong or Value is 0 the line is ignored (an error is logged). |
Value | number > 0 | 0 | Amount. |
Killer | 0 / 1 | 0 | 0 = every player currently in the copy receives it; 1 = only the boss killer. |
Vip tag (extra entries for VIP)
| Key | Value | Default | Meaning |
|---|---|---|---|
Min | number | 1 | Lowest VIP level (Data\VIPSystem.xml). |
Max | number or MAX | equal to Min | Highest VIP level. MAX = no limit. |
Bonus | number >= 0 | 0 | Number of entries added to DailyCount. The first matching line is used. Maximum total is 255. Not applied when DailyCount = 0. |
RewardText tag (optional)
Text of the "Main Reward" box, at most 4 lines. Without this tag the reward box automatically lists the names of the <Drop> items (no repeated names, at most 4 lines) and the <Reward> amounts.
| Key | Value | Default | Meaning |
|---|---|---|---|
Lang | ID number | 0 | ID of the line in Lang <EventMap>; 0 = use Text. |
Text | string | empty | Content used when Lang = 0 or the ID does not exist. |
Configuration example
<EventMapSolo Enable="1">
<Map Index="1" Gate="746" NameLang="101" DescLang="102" Name="Trial Land" Desc="Defeat the monsters of the Trial Land alone." MinLevel="1" MaxLevel="2000" MinReset="0" MaxReset="50" MatchAny="1" Duration="600" LeaveTime="60" DailyCount="10">
<Time Hour="20" Minute="0" Open="30" DayOfWeek="-1" />
<Reward Type="WCoin" Value="100" Killer="0" />
<Reward Type="Ruud" Value="500" Killer="1" />
<Vip Min="1" Max="5" Bonus="2" />
<Vip Min="6" Max="10" Bonus="3" />
<Boss Monster="1010" X="147" Y="29" Delay="0" DropMode="0" />
<Drop ItemCat="14" ItemIndex="13" ItemLevel="0" ItemDur="0" ItemSkill="0" ItemLuck="0" ItemOption="0" ItemExel="-1" ItemAncient="0" Socket1="65535" Socket2="65535" Socket3="65535" Socket4="65535" Socket5="65535" Count="3" Rate="10000" />
<Drop ItemCat="14" ItemIndex="22" ItemLevel="0" ItemDur="0" ItemSkill="0" ItemLuck="0" ItemOption="0" ItemExel="-1" ItemAncient="0" Socket1="65535" Socket2="65535" Socket3="65535" Socket4="65535" Socket5="65535" Count="1" Rate="10000" Killer="1" />
</Map>
</EventMapSolo>
In the real file, map 1 opens 24 time slots every day (one <Time> line per hour, open for 30 minutes); the example above is abridged to a single slot.
The map in the example (ID 200, "Trial Land") is declared in WorldTemplate.xml with Private="1" and SpawnGate="746".
Images on the client
The client takes images by the map's Index; nothing needs to be written in the XML:
Data\Custom\EventMap\button_event_<Index>.ozd: button image in the left list (161 x 55).Data\Custom\EventMap\bg_event_<Index>.ozd: large image (697 x 569).
The .ozd files are created with the TSWMU PNG image conversion tool. [TO VERIFY: name of the tool customers use to create .ozd (the sample XML file mentions the internal script tools\eventmap\mkozd.py, which is not a tool customers have)]
Messages (Lang)
All displayed text comes from the <EventMap> section in Data\Lang\*.xml (the %s, %d strings are substituted in order). Main IDs:
| ID | Content (English.xml) |
|---|---|
| 1, 2, 3, 4 | Level %s / Reset %s / Max Characters : %s / or |
| 7, 8, 11, 12, 13 | Unlimited / %d minute(s) / %d+ / %d ~ %d / Personal instance |
| 20 | The Event Map system is currently disabled. |
| 21, 22 | This map is not available. / This map is not open now. |
| 23, 24 | Your level / reset count does not meet the requirement (%s). |
| 25, 26 | No entries left today. / Not enough Zen. |
| 27, 28 | Time is up, you have been moved out of %s. / You entered %s. Time limit: %s. |
| 29 | This map type is not available yet. |
| 30 | The boss of %s has appeared! |
| 31, 32, 33 | Mission complete! / Mission failed! / Time is up! You will leave %s in %d second(s). |
| 34 | Reward: %s %s. |
| 36 | You already joined this opening. Wait for the next one. |
| 37, 38 | Event Map / You are in the event %s. This can only be used in a normal map. (shown when a player inside an Event Map uses a function that is only for normal maps) |
| 40..43 | Zen / WCoin / GCoin / Ruud (currency names in the reward message) |
| 101+ | Name / description / reward line of each map, used via NameLang, DescLang, RewardText |
Lang ID 35 ("Offline Attack is not allowed in this map.") is also in this section and is used by the offline attack feature.
Reloading
- Click the Reload plugin button on the GameServer control panel: it reloads
EventMapSolo.xmland re-sends the list to players who are online (the tab appears or hides immediately, no need to re-enter the game). Also click this button when you changenewmapinPlugin.ini. - The GameServer control panel has an instant event-open button Event Map (Plugin, all maps) (in the event start group): it opens all maps immediately for the largest
Openminutes among the<Time>lines (30 by default if there are none), creating a new time slot so that players who already entered in the previous slot can enter again; the<Time>schedule is left unchanged.