fix: Reset body hue and facial hair (#896)
This commit is contained in:
parent
58190674f9
commit
48232829ad
1 changed files with 12 additions and 1 deletions
|
|
@ -33,9 +33,11 @@ public static class StaffDress
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pm.Race = Race.Human;
|
||||||
pm.Karma = pm.Fame = pm.Kills = pm.ShortTermMurders = pm.BodyMod = 0;
|
pm.Karma = pm.Fame = pm.Kills = pm.ShortTermMurders = pm.BodyMod = 0;
|
||||||
pm.Body = 987;
|
pm.Body = 987;
|
||||||
pm.SolidHueOverride = pm.HueMod = -1;
|
pm.SolidHueOverride = pm.HueMod = -1;
|
||||||
|
pm.FacialHairItemID = 0;
|
||||||
pm.Blessed = true;
|
pm.Blessed = true;
|
||||||
pm.DisplayGuildTitle = false;
|
pm.DisplayGuildTitle = false;
|
||||||
pm.DisplayChampionTitle = false;
|
pm.DisplayChampionTitle = false;
|
||||||
|
|
@ -47,13 +49,22 @@ public static class StaffDress
|
||||||
pm.NetState.SendSpeedControl(SpeedControlSetting.Mount);
|
pm.NetState.SendSpeedControl(SpeedControlSetting.Mount);
|
||||||
pm.ResetStaffAccess();
|
pm.ResetStaffAccess();
|
||||||
|
|
||||||
|
if (pm.AccessLevel < AccessLevel.Administrator)
|
||||||
|
{
|
||||||
|
pm.Hue = Race.Human.ClipSkinHue(pm.Hue & 0x3FFF);
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = pm.Items.Count - 1; i >= 0; i--)
|
for (var i = pm.Items.Count - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
var item = pm.Items[i];
|
var item = pm.Items[i];
|
||||||
|
|
||||||
|
if (item.Layer is Layer.FacialHair)
|
||||||
|
{
|
||||||
|
item.Delete();
|
||||||
|
}
|
||||||
|
|
||||||
if (item.Layer is not Layer.Backpack
|
if (item.Layer is not Layer.Backpack
|
||||||
and not Layer.Bank
|
and not Layer.Bank
|
||||||
and not Layer.FacialHair
|
|
||||||
and not Layer.Hair
|
and not Layer.Hair
|
||||||
and not Layer.Mount
|
and not Layer.Mount
|
||||||
and not Layer.ShopBuy
|
and not Layer.ShopBuy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue