summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf2
-rw-r--r--src/map/script.c10
-rw-r--r--src/map/script.h2
3 files changed, 14 insertions, 0 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 921acbeaf..eda877671 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -3870,4 +3870,6 @@ constants_db: {
UDT_LIFETIME: 52
UDT_MERC_KILLCOUNT: 53
UDT_STATADD: 54
+ UDT_ROBE: 55
+ UDT_BODY2: 56
}
diff --git a/src/map/script.c b/src/map/script.c
index 729aa549e..bbaa5f6ed 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -18217,6 +18217,8 @@ BUILDIN(setunitdata)
case UDT_INTIMACY:
case UDT_LIFETIME:
case UDT_MERC_KILLCOUNT:
+ case UDT_ROBE:
+ case UDT_BODY2:
setunitdata_check_min(4, 0);
break;
case UDT_MASTERAID:
@@ -19182,6 +19184,12 @@ BUILDIN(setunitdata)
case UDT_WEAPON:
clif->changelook(bl, LOOK_WEAPON, val);
break;
+ case UDT_ROBE:
+ clif->changelook(bl, LOOK_ROBE, val);
+ break;
+ case UDT_BODY2:
+ clif->changelook(bl, LOOK_BODY2, val);
+ break;
default:
ShowWarning("buildin_setunitdata: Invalid data type '%s' for NPC unit.\n", udtype);
script_pushint(st, 0);
@@ -19602,6 +19610,8 @@ BUILDIN(getunitdata)
case UDT_CLOTHCOLOR: script_pushint(st, nd->vd.cloth_color); break;
case UDT_SHIELD: script_pushint(st, nd->vd.shield); break;
case UDT_WEAPON: script_pushint(st, nd->vd.weapon); break;
+ case UDT_ROBE: script_pushint(st, nd->vd.robe); break;
+ case UDT_BODY2: script_pushint(st, nd->vd.body_style); break;
default:
ShowWarning("buildin_getunitdata: Invalid data type '%s' for NPC unit.\n", udtype);
script_pushint(st, 0);
diff --git a/src/map/script.h b/src/map/script.h
index 283afa496..b2ab7510c 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -423,6 +423,8 @@ enum script_unit_data_types {
UDT_LIFETIME,
UDT_MERC_KILLCOUNT,
UDT_STATPOINT,
+ UDT_ROBE,
+ UDT_BODY2,
UDT_MAX
};