|
|
@ -1190,15 +1190,17 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (hairStyleID != 0) { |
|
|
|
if (hairStyleID != 0) { |
|
|
|
|
|
|
|
|
|
|
|
// Create Hair
|
|
|
|
// Create Hair
|
|
|
|
Item tempHair = new Item(ItemBase.getItemBase(hairStyleID), playerCharacter.getObjectUUID(), OwnerType.PlayerCharacter, |
|
|
|
Item hair = new Item(hairStyleID); |
|
|
|
(byte) 0, (byte) 0, (short) 1, (short) 1, false, false, ItemContainerType.EQUIPPED, |
|
|
|
hair.ownerID = playerCharacter.getObjectUUID(); |
|
|
|
(byte) MBServerStatics.SLOT_HAIRSTYLE, new ArrayList<>(), ""); |
|
|
|
hair.ownerType = OwnerType.PlayerCharacter; |
|
|
|
|
|
|
|
hair.containerType = ItemContainerType.EQUIPPED; |
|
|
|
|
|
|
|
hair.equipSlot = (byte) MBServerStatics.SLOT_HAIRSTYLE; |
|
|
|
|
|
|
|
|
|
|
|
Item hair; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
hair = DbManager.ItemQueries.PERSIST(tempHair); |
|
|
|
hair = DbManager.ItemQueries.PERSIST(hair); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
hair = null; |
|
|
|
hair = null; |
|
|
|
} |
|
|
|
} |
|
|
@ -1213,12 +1215,14 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
|
|
|
|
|
|
|
|
if (beardStyleID != 0) { |
|
|
|
if (beardStyleID != 0) { |
|
|
|
// Create Beard
|
|
|
|
// Create Beard
|
|
|
|
Item tempBeard = new Item(ItemBase.getItemBase(beardStyleID), playerCharacter.getObjectUUID(), OwnerType.PlayerCharacter, |
|
|
|
Item beard = new Item(hairStyleID); |
|
|
|
(byte) 0, (byte) 0, (short) 1, (short) 1, false, false, ItemContainerType.EQUIPPED, |
|
|
|
beard.ownerID = playerCharacter.getObjectUUID(); |
|
|
|
(byte) MBServerStatics.SLOT_BEARDSTYLE, new ArrayList<>(), ""); |
|
|
|
beard.ownerType = OwnerType.PlayerCharacter; |
|
|
|
Item beard; |
|
|
|
beard.containerType = ItemContainerType.EQUIPPED; |
|
|
|
|
|
|
|
beard.equipSlot = (byte) MBServerStatics.SLOT_BEARDSTYLE; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
beard = DbManager.ItemQueries.PERSIST(tempBeard); |
|
|
|
beard = DbManager.ItemQueries.PERSIST(beard); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
beard = null; |
|
|
|
beard = null; |
|
|
|
} |
|
|
|
} |
|
|
|