Ascerr / Lua-Scripts

Rifbot lua scripts ctrl+f to search
7 stars 36 forks source link

Alert when drops legendarny Item. #29

Open Lewy207 opened 3 weeks ago

Lewy207 commented 3 weeks ago

Hello, I use this link with script https://github.com/Ascerr/Lua-Scripts/blob/beb01b79e76b02c127a11e9209d6400432540b72/Alarm%20on%20Rarity%20Orange%20Message.lua#L4

I change in scrpit rarity for legendary but not work. Any sugestions? IMG_20240611_181211

Ascerr commented 3 weeks ago

Hello

First you need to discover i this message about legendary i possible to detect this message, add as new line: 13 this:

print("proxy: " .. msg.speaker, msg.message, msg.channel, msg.mode, msg.level)

Here is how should looks code:

function proxy(messages) for i, msg in ipairs(messages) do print("proxy: " .. msg.speaker, msg.message, msg.channel, msg.mode, msg.level) if msg.message == "Rarity" and msg.mode == 34 then if msg.speaker == Self.Name() then Rifbot.PlaySound() print("Rarity item dropped!") end end end end Proxy.New("proxy")

wt., 11 cze 2024 o 18:17 Lewy207 @.***> napisał(a):

Hello, I use this link with script

https://github.com/Ascerr/Lua-Scripts/blob/beb01b79e76b02c127a11e9209d6400432540b72/Alarm%20on%20Rarity%20Orange%20Message.lua#L4

I change in scrpit rarity for legendary but not work. Aby sugestions? IMG_20240611_181211.png (view on web) https://github.com/Ascerr/Lua-Scripts/assets/169442582/7d2f473d-7a14-4822-a8bc-5de0781c779a

— Reply to this email directly, view it on GitHub https://github.com/Ascerr/Lua-Scripts/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLPSPUEHRDIS2WVPGPDL63ZG4PIPAVCNFSM6AAAAABJEVMRKSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DMOBRHAYDEOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>