From 497a25b19d58ace8e450614f0b6cab433a040428 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Nov 2017 18:56:19 +0300 Subject: Add into setunitdata/getunitdata new options UDT_ROBE and UDT_BODY2. --- src/map/script.c | 10 ++++++++++ src/map/script.h | 2 ++ 2 files changed, 12 insertions(+) (limited to 'src') 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 }; -- cgit v1.2.3-60-g2f50