summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2016-01-06 16:39:57 +0800
committerHaru <haru@dotalux.com>2016-01-16 19:57:35 +0100
commitd649659e90cc37e2074eb0238317f9d58f879b2a (patch)
tree937d957eef527661432b3f839dc6009a704256cd
parenta1310e2d8c098fcbeb485314a4bafa5d6659be7e (diff)
downloadhercules-d649659e90cc37e2074eb0238317f9d58f879b2a.tar.gz
hercules-d649659e90cc37e2074eb0238317f9d58f879b2a.tar.bz2
hercules-d649659e90cc37e2074eb0238317f9d58f879b2a.tar.xz
hercules-d649659e90cc37e2074eb0238317f9d58f879b2a.zip
set_constant the LOOK_ constants
-rw-r--r--db/constants.conf16
-rw-r--r--src/map/script.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 790c0ed53..98de6ac98 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -777,22 +777,6 @@ 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 */
Eff_Stone: 0
Eff_Freeze: 1
diff --git a/src/map/script.c b/src/map/script.c
index 2cee8855d..0fd1f0690 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -20898,6 +20898,22 @@ void script_hardcoded_constants(void)
script->set_constant("BG_AREA_WOS",BG_AREA_WOS,false, false);
script->set_constant("BG_QUEUE",BG_QUEUE,false, false);
+ /* LOOK_ constants, use in setlook/changelook script commands */
+ script->set_constant("LOOK_BASE", LOOK_BASE, false, false);
+ script->set_constant("LOOK_HAIR", LOOK_HAIR, false, false);
+ script->set_constant("LOOK_WEAPON", LOOK_WEAPON, false, false);
+ script->set_constant("LOOK_HEAD_BOTTOM", LOOK_HEAD_BOTTOM, false, false);
+ script->set_constant("LOOK_HEAD_TOP", LOOK_HEAD_TOP, false, false);
+ script->set_constant("LOOK_HEAD_MID", LOOK_HEAD_MID, false, false);
+ script->set_constant("LOOK_HAIR_COLOR", LOOK_HAIR_COLOR, false, false);
+ script->set_constant("LOOK_CLOTHES_COLOR", LOOK_CLOTHES_COLOR, false, false);
+ script->set_constant("LOOK_SHIELD", LOOK_SHIELD, false, false);
+ script->set_constant("LOOK_SHOES", LOOK_SHOES, false, false);
+ script->set_constant("LOOK_BODY", LOOK_BODY, false, false);
+ script->set_constant("LOOK_FLOOR", LOOK_FLOOR, false, false);
+ script->set_constant("LOOK_ROBE", LOOK_ROBE, false, false);
+ script->set_constant("LOOK_BODY2", LOOK_BODY2, false, false);
+
/* Equip Position in Bits, use with *getiteminfo type 5, or @inventorylist_equip */
script->set_constant("EQP_HEAD_LOW", EQP_HEAD_LOW, false, false);
script->set_constant("EQP_HEAD_MID", EQP_HEAD_MID, false, false);