mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Cleaned up the emotes code.
This commit is contained in:
@@ -63,12 +63,16 @@ emoteTable = {
|
||||
};
|
||||
|
||||
|
||||
function onEventStarted(player, actor, triggerName, emoteId)
|
||||
function onEventStarted(player, actor, triggerName, emoteId, unknownArg1, arg2, arg3, targetId)
|
||||
|
||||
if (targetId == nil) then
|
||||
targetId = 0;
|
||||
end
|
||||
|
||||
if (player:GetState() == 0) then
|
||||
emote = emoteTable[emoteId];
|
||||
if (emote ~= nil) then
|
||||
player:doEmote(emote.animId, emote.descId);
|
||||
player:doEmote(targetId, emote.animId, emote.descId);
|
||||
else
|
||||
player:SendMessage(0x20, "", string.format("Not implemented; EmoteId: %d", emoteId));
|
||||
end
|
||||
@@ -77,6 +81,3 @@ function onEventStarted(player, actor, triggerName, emoteId)
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
Reference in New Issue
Block a user