diff --git a/scripts/commands/inspire.py b/scripts/commands/inspire.py index 30df2e29..46a97aaf 100644 --- a/scripts/commands/inspire.py +++ b/scripts/commands/inspire.py @@ -10,9 +10,15 @@ def run(core, actor, target, commandString): print playerObject.getProfession() if not playerObject or playerObject.getProfession() != "entertainer_1a": return - - print 'x' - if actor.getPosture() != 0x09: + + if target is None or actor.getObjectId() == target.getObjectId(): + print ('Buffing Player: ' + str(target.getObjectId()) + ' or: ' + target.getCustomName()) + openBuffWindow = BuffBuilderStartMessage(actor.getObjectId(), actor.getObjectId(), actor.getObjectId()) + objController = ObjControllerMessage(11, openBuffWindow) + actor.getClient().getSession().write(objController.serialize()) + return + + if actor.getPosture() != 0x09 and target.getObjectId() != actor.getObjectId(): actor.sendSystemMessage('@performance:insp_buff_must_perform', 2) return diff --git a/src/protocol/swg/objectControllerObjects/Animation.java b/src/protocol/swg/objectControllerObjects/Animation.java index 751b6f1a..0997a01f 100644 --- a/src/protocol/swg/objectControllerObjects/Animation.java +++ b/src/protocol/swg/objectControllerObjects/Animation.java @@ -45,7 +45,7 @@ public class Animation extends ObjControllerObject { @Override public IoBuffer serialize() { - IoBuffer result = IoBuffer.allocate(16 + animation.length()).order(ByteOrder.LITTLE_ENDIAN); + IoBuffer result = IoBuffer.allocate(20 + animation.length()).order(ByteOrder.LITTLE_ENDIAN); result.putInt(ObjControllerMessage.ANIMATION);