Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion addons/GearSwap/gearswap.lua
Original file line numberDiff line numberDiff line change
Expand Up@@ -113,7 +113,7 @@ require 'actions'
packets = require 'packets'

-- Resources Checks
if res.items and res.bags and res.slots and res.statuses and res.jobs and res.elements and res.skills and res.buffs and res.spells and res.job_abilities and res.weapon_skills and res.monster_skills and res.action_messages and res.skills and res.monstrosity and res.weather and res.moon_phases and res.races then
if res.items and res.bags and res.slots and res.statuses and res.jobs and res.elements and res.skills and res.buffs and res.spells and res.job_abilities and res.weapon_skills and res.monster_skills and res.action_messages and res.skills and res.monstrosity and res.weather and res.moon_phases and res.races and res.monster_abilities then
else
error('Missing resources!')
end
Expand Down
2 changes: 1 addition & 1 deletion addons/GearSwap/libs/Mote-SelfCommands.lua
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,7 +53,7 @@ function handle_set(cmdParams)

if state_var then
local oldVal = state_var.value
state_var:set(cmdParams[2])
state_var:set(cmdParams:slice(2):concat(' '))
local newVal = state_var.value

local descrip = state_var.description or cmdParams[1]
Expand Down
120 changes: 60 additions & 60 deletions addons/boxdestroyer/messages.lua
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
messages = { -- These dialogue IDs match "You were unable to enter a combination" for the associated zone IDs
[100] = 8071,
[101] = 7509,
[102] = 7922,
[103] = 8097,
[104] = 8662,
[105] = 7713,
[106] = 8087,
[107] = 7548,
[108] = 7617,
[109] = 8480,
[110] = 7604,
[111] = 8581,
[112] = 8183,
[113] = 7932,
[114] = 7782,
[115] = 7878,
[116] = 7574,
[117] = 7581,
[118] = 8123,
[119] = 8360,
[120] = 7520,
[121] = 8100,
[122] = 7438,
[123] = 7883,
[124] = 7834,
[125] = 7644,
[126] = 8067,
[127] = 7355,
[128] = 7510,
[130] = 7574,
[153] = 11400,
[157] = 7380,
[158] = 7386,
[159] = 8449,
[160] = 7413,
[166] = 10582,
[167] = 10596,
[169] = 7543,
[172] = 7416,
[173] = 10521,
[174] = 11399,
[176] = 7608,
[177] = 11223,
[178] = 11403,
[184] = 8633,
[190] = 8257,
[191] = 8377,
[192] = 7413,
[193] = 8389,
[194] = 8269,
[195] = 7600,
[196] = 8309,
[197] = 7354,
[198] = 8275,
[200] = 7531,
[204] = 7519,
[205] = 11486,
[208] = 8288,
[212] = 10642,
[213] = 10452,
[100] = 8074,
[101] = 7512,
[102] = 7925,
[103] = 8100,
[104] = 8665,
[105] = 7716,
[106] = 8090,
[107] = 7551,
[108] = 7620,
[109] = 8483,
[110] = 7607,
[111] = 8584,
[112] = 8186,
[113] = 7935,
[114] = 7785,
[115] = 7881,
[116] = 7577,
[117] = 7584,
[118] = 8126,
[119] = 8363,
[120] = 7523,
[121] = 8103,
[122] = 7441,
[123] = 7886,
[124] = 7837,
[125] = 7647,
[126] = 8070,
[127] = 7358,
[128] = 7513,
[130] = 7577,
[153] = 11403,
[157] = 7383,
[158] = 7389,
[159] = 8452,
[160] = 7416,
[166] = 10585,
[167] = 10599,
[169] = 7546,
[172] = 7419,
[173] = 10524,
[174] = 11402,
[176] = 7611,
[177] = 11226,
[178] = 11406,
[184] = 8636,
[190] = 8260,
[191] = 8380,
[192] = 7416,
[193] = 8392,
[194] = 8272,
[195] = 7603,
[196] = 8312,
[197] = 7357,
[198] = 8278,
[200] = 7534,
[204] = 7522,
[205] = 11489,
[208] = 8291,
[212] = 10645,
[213] = 10455,
}
offsets = {greater_less=1, failure=2, success=4, second_even_odd=5, first_even_odd=6, range=7, less=8, greater=9, equal=10, second_multiple=11, first_multiple=12, tool_failure=13}
4 changes: 2 additions & 2 deletions addons/indinope/indinope.lua
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,11 +38,11 @@ windower.register_event('incoming chunk', function(id, original, modified, injec
if injected or blocked or not offsets[id] then return end

offset = offsets[id]
flags = original:byte(offsets[id])
flags = modified:byte(offsets[id])

-- if any of the bits 0 through 7 are set, a bubble is shown and we want to block it.
if bit.band(flags, 0x7F) ~= 0 then
packet = original:sub(1, offset - 1) .. string.char(bit.band(flags, 0x80)) .. original:sub(offset + 1) -- preserve bit 8 (Job Master stars)
packet = modified:sub(1, offset - 1) .. string.char(bit.band(flags, 0x80)) .. modified:sub(offset + 1) -- preserve bit 8 (Job Master stars)
return packet
end
end)
4 changes: 2 additions & 2 deletions addons/libs/actions.lua
Original file line numberDiff line numberDiff line change
Expand Up@@ -200,9 +200,9 @@ end

function actionpacket:get_spell()
local info = self:get_targets()():get_actions()():get_basic_info()
if rawget(info,'resource') and rawget(info,'spell_id') and rawget(rawget(res,rawget(info,'resource')),rawget(info,'spell_id')) then
if rawget(info,'resource') and rawget(info,'spell_id') and rawget(res[rawget(info,'resource')],rawget(info,'spell_id')) then
local copied_line = {}
for i,v in pairs(rawget(rawget(res,rawget(info,'resource')),rawget(info,'spell_id'))) do
for i,v in pairs(rawget(res[rawget(info,'resource')],rawget(info,'spell_id'))) do
rawset(copied_line,i,v)
end
setmetatable(copied_line,getmetatable(res[rawget(info,'resource')][rawget(info,'spell_id')]))
Expand Down