Gates and Warp Configuration

1. Game Client Configuration
 
The system can be configured from level of 4 files. For server these are IGC_MoveReq.xml and IGC_GateSettings.xml where for game client movereq_eng.bmd and Gate.bmd.
 
 


1.1 Understanding Gates Configuration
 
The discussed content in this paragraph is referring to setting of IGC_GateSettings.xml and Gate.bmd. There are recognized 3 types (flags) of gate configuration - 0, 1 and 2.

 

  • Type (Flag) 0 - used for one side moves only, e.g. for purpose of warp menu or on-map teleport spot. Map Number (ID) in this case is the destination location where Target parameter always stays 0, example
    <Gate Index="75"  Flag="0" MapNumber="7"   StartX="225" StartY="53"  EndX="228" EndY="50"  Target="0"   Direction="0" MinLevel="60"  Name=" " /> 
    What you see here is a definition of gate of Flag 0 which moves to map number 7 within a range of defined coordinates.

 

  • Type (Flag) 1 - used to define a move-to location. In this case Map Number (ID) is used to define source map you move from where Target attribute is used for destination gate Index (number), example
    <Gate Index="259" Flag="1" MapNumber="2"   StartX="161" StartY="245" EndX="166" EndY="246" Target="260" Direction="0" MinLevel="15"  Name=" " />
    What you see here is gate of Flag 1 which moves from map of number 2 at specified coordinates to location defined in gate number 260 (target). 

 

  • Type (Flag) 2 - used to define a destination location for gate of Type (Flag 1). The MapNumber (ID) defines here destination map for gate target of Type (Flag 1) where Target attribute stays at 0 always, example
    <Gate Index="260" Flag="2" MapNumber="51"  StartX="26"  StartY="29"  EndX="27" 	EndY="30"  Target="0"   Direction="0" MinLevel="15"  Name=" " />
    What you see in this scenario is a target gate for previous example. It defines the map number for target location and expected coordinate to put character on after move.

 

 

Other attributes

  • StartX (X1) - Defines start X coordinate of character spawn range after move for gate Type 0 and 2 or teleport spot location for gate of Type 1 
  • StartY (Y1) - Defines start Y coordinate of character spawn range after move for gate Type 0 and 2 or teleport spot location for gate of Type 1
  • EndX (X2) - Defines End X coordinate of character spawn range after move for gate Type 0 and 2 or teleport spot location for gate of Type 1
  • EndY (Y2) - Defines End Y coordinate of character spawn range after move for gate Type 0 and 2 or teleport spot location for gate of Type 1
  • Direction - Direction the character look at after spawn
    • 0: Central
    • 1: South-West
    • 2: South
    • 3: South-East
    • 4: East
    • 5: North-East
    • 6: North
    • 7: North-West
    • 8: West
    • -1: Random
  • MinLevel - Minimum required level (normal) to use the gate. If gate is being used for Warp Menu purpose the minimum level should stay at 0.

 

 

Configuration between Gate.bmd and IGC_GateSettings.xml must match exactly.

 

 

2. Warp Menu (M) Configuration

 

Adding an entry of warp definition requires modification of movereq_eng.bmd at \Data\Local\Eng of game client. Open it using IGC ToolKit.
 
Once opened you can see columns as below

  • Index - unique index of entry in file
  • Name (Client) - Name of the entry displayed in-game warp menu
  • Name (Server) - Name used for server logging purpose, it is best to keep both, server and client same
  • Min Level - defines minimum level required to use the warp
  • Max Level - defines maximum level of required to use the warp
  • Price  - price in Zen charged for using the warp
  • Gate ID  - ID/Index of gate (Type/Flag 0) used to define target location for the warp (can be checked/defined in \Data\Local\Gate.bmd file

 

 

Most of required gates is already defined in Gate.bmd / IGC_GateSettings. Search for desired one before adding own. Configuration between movereq_eng.bmd and IGC_MoveReq.xml must match with respect of same entries order.

 

 

Explanation of configuration on an example

<Warp Index="44"  ServerName="CryWolf" ClientName="CryWolf" MinLevel="300" MaxLevel="400" ReqMoney="2000" GateNumber="258" />

 

What you can see above is and example entry that defines a warp to CryWolf. Configured at first free Index (according to default server settings) at minimum usage level of 300 and maximum of 400, Zen charge of 2000. Gate number for this is 258 (available in default Gate.bmd / IGC_GateSettings.xml).

  • 4 Χρήστες που βρήκαν αυτό χρήσιμο
Ήταν χρήσιμη αυτήν την απάντηση;

Σχετικά Άρθρα

Inspector - Server AutoStart and Monitor

Fully featured tool that will always keep your Server running.General functionality of the tool...

Adding Custom items

 • BmdDec - CLICK  • Sword42 - CLICK   1. Adding an Item to Game ClientThis is most time...

Adding Custom Mix

Server Version X12 Edited Server-Side Files IGCData/IGC_CustomMix.xml Edited Client-Side...

SubServer Configuration

SubServer Configuration Tutorial Guide for creating next gameserver working on the same database:...