From 2dd4e986ca166ab3d95963fb20f078d102a73632 Mon Sep 17 00:00:00 2001 From: Seefo Date: Thu, 27 Mar 2014 16:29:57 -0400 Subject: [PATCH] Fixed #251 --- scripts/commands/holoemote.py | 2 +- src/protocol/swg/PlayClientEffectObjectMessage.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/commands/holoemote.py b/scripts/commands/holoemote.py index 6b0554f0..e4266155 100644 --- a/scripts/commands/holoemote.py +++ b/scripts/commands/holoemote.py @@ -36,7 +36,7 @@ def run(core, actor, target, commandString): return effectObj = 'clienteffect/holoemote_' + commandString + '.cef' - actor.playEffectObject(effectObj, 'head') + actor.playEffectObject(effectObj, 'Head') player.setHoloEmoteUses(player.getHoloEmoteUses() - 1) # TODO: Cooldowns for the holo-emote's return diff --git a/src/protocol/swg/PlayClientEffectObjectMessage.java b/src/protocol/swg/PlayClientEffectObjectMessage.java index 498b8ddd..29d6aecb 100644 --- a/src/protocol/swg/PlayClientEffectObjectMessage.java +++ b/src/protocol/swg/PlayClientEffectObjectMessage.java @@ -36,7 +36,6 @@ public class PlayClientEffectObjectMessage extends SWGMessage { this.effectFile = effectFile; this.objectId = objectId; this.commandString = commandString; - } @Override @@ -47,8 +46,10 @@ public class PlayClientEffectObjectMessage extends SWGMessage { result.putShort((short) 5); result.putInt(0x8855434A); result.put(getAsciiString(effectFile)); - result.put(getAsciiString(commandString)); + result.putShort((short) 0); result.putLong(objectId); + result.put(getAsciiString(commandString)); + return result.flip(); }