Overview

The NewMap plugin has two parts that share one license key:

  • Private map (Private): a map declared with Private="1" in Data\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.
Multi-player Event Map types (Guild, Raid) do not exist yet. The server only reads the 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.ini section [Plugin] has newmap = 1. If not purchased or set to 0: the Event Map tab is hidden on the client, maps with Private="1" cannot be entered (the Move button reports "The Event Map system is currently disabled.").
  • The client needs a recent Main.dll and images for each map (see the section Images on the client).
  • Game database (SQL Server): the entry counting table chr_eventmap_enter is 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" in WorldTemplate.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

KeyValueDefaultMeaning
Enable0 / 111 = use this file; 0 = hide all maps in the file (log: "EventMapSolo is disabled").

Map tag

KeyValueDefaultMeaning
Index1..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).
Gategate number0The 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.
Mapmap ID0Only 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.
NameLangID number0ID of the map name in the Lang section <EventMap>. 0 = use Name.
DescLangID number0ID of the description in Lang <EventMap>. 0 = use Desc.
Name / DescstringemptyName / description used when NameLang / DescLang is 0 or the ID is not in Lang.
NoteLang / NoteID number / string0 / emptyNote line under the Move button. If not given, Lang EventMap ID 13 is used.
MinLevelnumber or MAX0Lowest total level (normal level + master) allowed to enter.
MaxLevelnumber or MAXMAXHighest total level allowed to enter. MAX or empty = no limit.
MinResetnumber0Lowest reset count allowed to enter.
MaxResetnumber or MAXMAXHighest reset count allowed to enter.
MatchAny0 / 101 = only the level OR the reset requirement needs to be met; 0 = both must be met.
Durationseconds0Time allowed to kill the boss (countdown clock). 0 = unlimited, no clock.
LeaveTimeseconds60Time 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.
DailyCount0..2550Number of entries per day for each CHARACTER (not per account). 0 = unlimited. Reset at 00:00 game server time.
ReqZenZen amount0Zen deducted on entry. Not given = free.
ExitGategate number0The gate that takes the player out when they must leave the map. 0 / not given = back to Lorencia.
Icon / Backgroundnumber NemptyOptional. 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.

KeyValueDefaultMeaning
Hour0..230Hour the map starts opening. Outside the range the line is ignored (an error is logged).
Minute0..590Minute the map starts opening.
Openminutes (minimum 1)60For 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.
Each character can enter only once per opening time slot (whether successful or not); they must wait for the next slot. The Move button of that slot will show a "closed" status until the next slot.

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.

KeyValueDefaultMeaning
Monstermonster ID0ID 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 / Ycoordinates0 / 0Position where the boss appears in the map.
Delayseconds0Number of seconds after the player arrives before the boss appears. 0 = immediately.
DropMode0 / 100 = shared drops, everyone in the copy can pick them up; 1 = only the boss killer can pick up the <Drop> items.
Expnumbernot givenNot 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).

KeyValueDefaultMeaning
ItemCat / ItemIndexnumber0 / 0Item group and sequence number within the group (for example 14,13 = Jewel of Bless).
ItemLevel0..150+ level.
ItemDurnumber0Durability, 0 = item default.
ItemSkill0 / 1 / -101 = has skill; -1 = 50% chance of having skill.
ItemLuck0 / 1 / -101 = has luck; -1 = 50% chance of having luck.
ItemOption0..70Additional option (+4 per level).
ItemExelstring-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.
ItemAncientnumber0Ancient (set) value, 0 = none.
Socket1..Socket5number65535Socket value; 65535 = that socket slot does not exist.
Count1..1001Quantity of this item.
Rate0..1000010000Rate of EACH item out of 10000 (10000 = always drops, 5000 = 50%).
Killer0 / 101 = this item can only be picked up by the boss killer (extra reward). 0 = follows DropMode.

Reward tag (currency when the boss dies)

KeyValueDefaultMeaning
TypeZen / 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).
Valuenumber > 00Amount.
Killer0 / 100 = every player currently in the copy receives it; 1 = only the boss killer.

Vip tag (extra entries for VIP)

KeyValueDefaultMeaning
Minnumber1Lowest VIP level (Data\VIPSystem.xml).
Maxnumber or MAXequal to MinHighest VIP level. MAX = no limit.
Bonusnumber >= 00Number 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.

KeyValueDefaultMeaning
LangID number0ID of the line in Lang <EventMap>; 0 = use Text.
TextstringemptyContent 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:

IDContent (English.xml)
1, 2, 3, 4Level %s / Reset %s / Max Characters : %s / or
7, 8, 11, 12, 13Unlimited / %d minute(s) / %d+ / %d ~ %d / Personal instance
20The Event Map system is currently disabled.
21, 22This map is not available. / This map is not open now.
23, 24Your level / reset count does not meet the requirement (%s).
25, 26No entries left today. / Not enough Zen.
27, 28Time is up, you have been moved out of %s. / You entered %s. Time limit: %s.
29This map type is not available yet.
30The boss of %s has appeared!
31, 32, 33Mission complete! / Mission failed! / Time is up! You will leave %s in %d second(s).
34Reward: %s %s.
36You already joined this opening. Wait for the next one.
37, 38Event 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..43Zen / 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.xml and 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 change newmap in Plugin.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 Open minutes 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.