|
|
@ -25,7 +25,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
_addon.author = 'atom0s'; |
|
|
|
_addon.author = 'atom0s'; |
|
|
|
_addon.name = 'Chatmon'; |
|
|
|
_addon.name = 'Chatmon'; |
|
|
|
_addon.version = '3.0.0'; |
|
|
|
_addon.version = '3.0.1'; |
|
|
|
|
|
|
|
|
|
|
|
require 'common' |
|
|
|
require 'common' |
|
|
|
|
|
|
|
|
|
|
@ -404,7 +404,7 @@ ashita.register_event('incoming_packet', function(id, size, packet) |
|
|
|
-- Incoming emote.. |
|
|
|
-- Incoming emote.. |
|
|
|
if (id == 0x5A) then |
|
|
|
if (id == 0x5A) then |
|
|
|
local target = struct.unpack('H', packet, 0x08 + 1); |
|
|
|
local target = struct.unpack('H', packet, 0x08 + 1); |
|
|
|
if (GetPlayerEntity().ServerID == target) then |
|
|
|
if (GetPlayerEntity().ServerId == target) then |
|
|
|
if ((os.time() - chatmon.emote_last_alert) >= alert_delay('emote')) then |
|
|
|
if ((os.time() - chatmon.emote_last_alert) >= alert_delay('emote')) then |
|
|
|
chatmon.emote_last_alert = os.time(); |
|
|
|
chatmon.emote_last_alert = os.time(); |
|
|
|
play_alert_sound('emote'); |
|
|
|
play_alert_sound('emote'); |
|
|
|