summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/constants.conf150
1 files changed, 79 insertions, 71 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 0709cd758..5440c521e 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -43,7 +43,7 @@ constants_db: {
// implementation values assigned by scripts to parameters will affect
// runtime values, such as Zeny, as well (see pc_readparam/pc_setparam).
- /** Weekdays */
+ comment__: "Weekdays"
SUNDAY: 0
MONDAY: 1
TUESDAY: 2
@@ -52,7 +52,7 @@ constants_db: {
FRIDAY: 5
SATURDAY: 6
- /** Months */
+ comment__: "Months"
JANUARY: 1
FEBRUARY: 2
MARCH: 3
@@ -66,7 +66,7 @@ constants_db: {
NOVEMBER: 11
DECEMBER: 12
- /** Job IDs */
+ comment__: "Job IDs"
Job_Novice: 0
Job_Swordman: 1
Job_Mage: 2
@@ -225,7 +225,7 @@ constants_db: {
Job_Oboro: 4212
Job_Rebellion: 4215
- /** Job masks / Job map_ids */
+ comment__: "Job masks / Job map_ids"
EAJL_2_1: 0x0100
EAJL_2_2: 0x0200
EAJL_2: 0x0300
@@ -359,8 +359,7 @@ constants_db: {
EAJ_BABY_GENETIC: 0x6205
EAJ_BABY_CHASER: 0x6206
-
- /** Broadcast flags */
+ comment__: "Broadcast flags"
bc_all: 0
bc_map: 1
bc_area: 2
@@ -371,7 +370,7 @@ constants_db: {
bc_blue: 16
bc_woe: 32
- /** Mapflags */
+ comment__: "Mapflags"
mf_nomemo: 0
mf_noteleport: 1
mf_nosave: 2
@@ -426,7 +425,7 @@ constants_db: {
mf_nocashshop: 54
mf_noviewid: 55
- /** Cell Properties */
+ comment__: "Cell Properties"
cell_walkable: 0
cell_shootable: 1
cell_water: 2
@@ -436,7 +435,7 @@ constants_db: {
cell_novending: 6
cell_nochat: 7
- /** Cell checks */
+ comment__: "Cell checks"
//cell_gettype: 0
cell_chkwall: 1
cell_chkwater: 2
@@ -452,7 +451,7 @@ constants_db: {
cell_chknovending: 12
cell_chknochat: 13
- /** Parameters */
+ comment__: "Parameters"
BaseExp: {
Value: 1
Parameter: true
@@ -570,7 +569,7 @@ constants_db: {
Parameter: true
}
- /** Bonuses / Parameter IDs */
+ comment__: "Bonuses / Parameter IDs"
bMaxHP: 6
bMaxSP: 8
bStr: 13
@@ -752,10 +751,8 @@ constants_db: {
bAddRaceTolerance: 2061
bAddMaxWeight: 2062
- /**
- * Equip index
- * reference to script.c::script_defaults():equip[] array used for easy-conversion
- */
+ comment__: "Equip index"
+ /* reference to script.c::script_defaults():equip[] array used for easy-conversion */
EQI_HEAD_TOP: 1
EQI_ARMOR: 2
EQI_HAND_L: 3
@@ -777,23 +774,7 @@ constants_db: {
EQI_SHADOW_ACC_R: 19
EQI_SHADOW_ACC_L: 20
- /** Look */
- LOOK_BASE: 0
- LOOK_HAIR: 1
- LOOK_WEAPON: 2
- LOOK_HEAD_BOTTOM: 3
- LOOK_HEAD_TOP: 4
- LOOK_HEAD_MID: 5
- LOOK_HAIR_COLOR: 6
- LOOK_CLOTHES_COLOR: 7
- LOOK_SHIELD: 8
- LOOK_SHOES: 9
- LOOK_BODY: 10
- LOOK_FLOOR: 11
- LOOK_ROBE: 12
- LOOK_BODY2: 13
-
- /** Status effects */
+ comment__: "Status effects"
Eff_Stone: 0
Eff_Freeze: 1
Eff_Stun: 2
@@ -810,7 +791,7 @@ constants_db: {
Eff_Burning: 13
Eff_Deepsleep: 14
- /** Elements */
+ comment__: "Elements"
Ele_Neutral: 0
Ele_Water: 1
Ele_Earth: 2
@@ -823,7 +804,7 @@ constants_db: {
Ele_Undead: 9
Ele_All: 255
- /** Races */
+ comment__: "Races"
RC_Formless: 0
RC_Undead: 1
RC_Brute: 2
@@ -843,7 +824,7 @@ constants_db: {
RC_NonDemiPlayer: 17
RC_All: 255
- /** Subraces */
+ comment__: "Subraces"
RC2_None: 0
RC2_Goblin: 1
RC2_Kobold: 2
@@ -854,12 +835,12 @@ constants_db: {
RC2_Scaraba: 7
RC2_Turtle: 8
- /** Sizes */
+ comment__: "Sizes"
Size_Small: 0
Size_Medium: 1
Size_Large: 2
- /** Battle Flags */
+ comment__: "Battle Flags"
BF_WEAPON: 0x0001
BF_MAGIC: 0x0002
BF_MISC: 0x0004
@@ -868,7 +849,7 @@ constants_db: {
BF_SKILL: 0x0100
BF_NORMAL: 0x0200
- /** Attack Flags */
+ comment__: "Attack Flags"
ATF_SELF: 0x01
ATF_TARGET: 0x02
ATF_SHORT: 0x04
@@ -878,7 +859,7 @@ constants_db: {
ATF_MISC: 0x40
ATF_SKILL: 0x60
- /** Status Changes */
+ comment__: "Status Changes"
SC_ALL: -1
SC_STONE: 0
SC_FREEZE: 1
@@ -1517,7 +1498,7 @@ constants_db: {
SC_G_LIFEPOTION: 640
SC_MYSTICPOWDER: 641
- /** Emotes */
+ comment__: "Emotes"
e_gasp: 0
e_what: 1
e_ho: 2
@@ -1600,14 +1581,14 @@ constants_db: {
e_panic: 79
e_whisp: 80
- /** petstat */
+ comment__: "petstat"
PET_CLASS: 1
PET_NAME: 2
PET_LEVEL: 3
PET_HUNGRY: 4
PET_INTIMATE: 5
- /** getmonsterinfo */
+ comment__: "getmonsterinfo"
MOB_NAME: 0
MOB_LV: 1
MOB_MAXHP: 2
@@ -1632,12 +1613,12 @@ constants_db: {
MOB_MODE: 21
MOB_MVPEXP: 22
- /** mercenary guilds */
+ comment__: "mercenary guilds"
ARCH_MERC_GUILD: 0
SPEAR_MERC_GUILD: 1
SWORD_MERC_GUILD: 2
- /** Effects */
+ comment__: "Effects"
EF_NONE: -1
EF_HIT1: 0
EF_HIT2: 1
@@ -2738,7 +2719,7 @@ constants_db: {
EF_SPRITEMABLE: 1096
EF_TUNAPARTY: 1097
- /** NPC sprite IDs */
+ comment__: "NPC sprite IDs"
FAKE_NPC: -1
WARPNPC: 45
1_ETC_01: 46
@@ -3602,7 +3583,7 @@ constants_db: {
4_GIBBET: 10177
4_DULLAHAN: 10178
- /** Mercenary IDs */
+ comment__: "Mercenary IDs"
MER_LIF: 6001
MER_AMISTR: 6002
MER_FILIR: 6003
@@ -3650,12 +3631,12 @@ constants_db: {
MER_SWORDMAN09: 6045
MER_SWORDMAN10: 6046
- /** checkquest */
+ comment__: "checkquest"
HAVEQUEST: 0
PLAYTIME: 1
HUNTING: 2
- /** questinfo */
+ comment__: "questinfo"
QTYPE_NONE: 0x270f
QTYPE_QUEST: 0x00
QTYPE_QUEST2: 0x01
@@ -3666,7 +3647,7 @@ constants_db: {
QTYPE_WARG: 0x06
QTYPE_WARG2: 0x08
- /** Font weight */
+ comment__: "Font weight"
FW_DONTCARE: 0
FW_THIN: 100
FW_EXTRALIGHT: 200
@@ -3678,18 +3659,45 @@ constants_db: {
FW_EXTRABOLD: 800
FW_HEAVY: 900
- /** setlook */
- VAR_HEAD: 1
- VAR_WEAPON: 2
- VAR_HEAD_TOP: 3
- VAR_HEAD_MID: 4
- VAR_HEAD_BOTTOM: 5
- VAR_HEADPALETTE: 6
- VAR_BODYPALETTE: 7
- VAR_SHIELD: 8
- VAR_SHOES: 9
-
- /** Directions */
+ comment__: "old setlook (use LOOK_* constants instead)"
+ VAR_HEAD: {
+ Value: 1
+ Deprecated: true // Use LOOK_HAIR
+ }
+ VAR_WEAPON: {
+ Value: 2
+ Deprecated: true // Use LOOK_WEAPON
+ }
+ VAR_HEAD_TOP: {
+ Value: 3
+ Deprecated: true // Use LOOK_HEAD_TOP
+ }
+ VAR_HEAD_MID: {
+ Value: 4
+ Deprecated: true // Use LOOK_HEAD_MID
+ }
+ VAR_HEAD_BOTTOM: {
+ Value: 5
+ Deprecated: true // Use LOOK_HEAD_BOTTOM
+ }
+ VAR_HEADPALETTE: {
+ Value: 6
+ Deprecated: true // Use LOOK_HAIR_COLOR
+ }
+ VAR_BODYPALETTE: {
+ Value: 7
+ Deprecated: true // Use LOOK_CLOTHES_COLOR
+ }
+ VAR_SHIELD: {
+ Value: 8
+ Deprecated: true // Use LOOK_SHIELD
+ }
+ VAR_SHOES: {
+ Value: 9
+ Deprecated: true // Use LOOK_SHOES
+ }
+
+ comment__: "Directions"
DIR_NORTH: 0
DIR_NORTHWEST: 1
DIR_WEST: 2
@@ -3699,7 +3707,7 @@ constants_db: {
DIR_EAST: 6
DIR_NORTHEAST: 7
- /** Item types */
+ comment__: "Item types"
IT_HEALING: 0
IT_USABLE: 2
IT_ETC: 3
@@ -3712,30 +3720,30 @@ constants_db: {
IT_DELAYCONSUME: 11
IT_CASH: 18
- /** queueopt */
+ comment__: "queueopt"
QUEUEOPT_LOGOUT: 1
QUEUEOPT_DEATH: 2
QUEUEOPT_MAPCHANGE: 3
- /** Instance owner type */
+ comment__: "Instance owner type"
IOT_NONE: 0
IOT_CHAR: 1
IOT_PARTY: 2
IOT_GUILD: 3
- /** tradertype */
+ comment__: "tradertype"
NST_ZENY: 0
NST_CASH: 1
NST_MARKET: 2
NST_CUSTOM: 3
- /** strcharinfo */
+ comment__: "strcharinfo"
PC_NAME: 0
PC_PARTY: 1
PC_GUILD: 2
PC_MAP: 3
- /** sc_start */
+ comment__: "sc_start"
SCFLAG_NONE: 0x00
SCFLAG_NOAVOID: 0x01
SCFLAG_FIXEDTICK: 0x02
@@ -3743,7 +3751,7 @@ constants_db: {
SCFLAG_FIXEDRATE: 0x08
SCFLAG_NOICON: 0x10
- /** Mount types */
+ comment__: "Mount types"
MOUNT_NONE: 0
MOUNT_PECO: 1
MOUNT_WUG: 2
@@ -3755,7 +3763,7 @@ constants_db: {
MOUNT_DRAGON_BLUE: 7
MOUNT_DRAGON_RED: 8
- /** gettime */
+ comment__: "gettime"
GETTIME_SECOND: 1
GETTIME_MINUTE: 2
GETTIME_HOUR: 3
@@ -3765,7 +3773,7 @@ constants_db: {
GETTIME_YEAR: 7
GETTIME_DAYOFYEAR: 8
- /** unit types */
+ comment__: "unit types"
UNITTYPE_PC: 0
UNITTYPE_NPC: 1
UNITTYPE_PET: 2
@@ -3774,7 +3782,7 @@ constants_db: {
UNITTYPE_MER: 5
UNITTYPE_ELEM: 6
- /** Colors */
+ comment__: "Colors"
C_AQUA: 0x00FFFF
C_BLACK: 0x000000
C_BLUE: 0x0000FF