8000 Update roe.lua by ianandersonlol · Pull Request #2057 · Windower/Lua · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update roe.lua #2057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions addons/roe/roe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

_addon = {}
_addon.name = 'ROE'
_addon.version = '1.0'
_addon.version = '1.1'
_addon.author = "Cair"
_addon.commands = {'roe'}

Expand Down Expand Up @@ -70,6 +70,7 @@ local function accept_roe(id)
id = tonumber(id)

if not id or _roe.complete[id] or _roe.active[id] then return end
if id and id >= 4008 and id <= 4021 then return end

local p = packets.new('outgoing', 0x10c, {['RoE Quest'] = id })
packets.inject(p)
Expand Down Expand Up @@ -206,8 +207,12 @@ local function blacklist(add_remove,id)
settings.blacklist:add(id)
notice('roe quest %d added to the blacklist':format(id))
elseif add_remove == 'remove' then
settings.blacklist:remove(id)
notice('roe quest %d removed from the blacklist':format(id))
if id >= 4008 and id <= 4021 then
return
else
settings.blacklist:remove(id)
notice('roe quest %d removed from the blacklist':format(id))
end
else
error('`blacklist` specify \'add\' or \'remove\'')
end
Expand Down
0