# Generated by tests/addons/gen_windower_events_test.py; run by tests/addons/windower_events_test.sh
load wevtest xi
echo --- login, bags, items
# 0x00A zone in: login
packet_in 0a 00 10 00 04 03 02 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 6f 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 03 00 00 00 00 00 00 00 25 00 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e8 03 00 00 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x01C bag sizes
packet_in 1c 00 10 00 51 51 00 00 00 51 00 00 51 00 00 51 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 00 51 00 00 00 00 00 00 00 51 00 00 00 00 00 51 00 00 00 00 00 51 00 00 00 00 00 00 00 00 00
# 0x01F gil (before 0x01D: no add item)
packet_in 1f 00 10 00 40 e2 01 00 ff ff 00 00 00 00 00 00
# 0x01F inventory 1: 12 fire crystals
packet_in 1f 00 10 00 0c 00 00 00 00 10 00 01 00 00 00 00
# 0x020 inventory 2: an equipped item with extdata
packet_in 20 00 10 00 01 00 00 00 00 00 00 00 ab 40 00 02 05 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 00 00 00
# 0x050 equip slot 0 <- inventory 2
packet_in 50 00 10 00 02 00 00 00
# 0x01D all bags loaded
packet_in 1d 00 10 00 01 12 00 00 00 00 00 00
# 0x01F inventory 5: add item
packet_in 1f 00 10 00 03 00 00 00 01 10 00 05 00 00 00 00
# 0x01E inventory 5 gone: remove item
packet_in 1e 00 10 00 00 00 00 00 00 05 00 00
# 0x020 an equipped linkshell: add item, linkshell change
packet_in 20 00 10 00 01 00 00 00 00 00 00 00 01 02 00 06 13 4d 00 00 00 00 00 3f 0f 01 90 f4 c8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_items(0, 1))
lua wevtest ser(wev.get_items(0, 2))
lua wevtest ser(wev.get_items("gil"))
lua wevtest ser(wev.get_items("equipment").main) .. " " .. ser(wev.get_items("equipment").main_bag)
lua wevtest ser({max = wev.get_items("inventory").max, count = wev.get_items().inventory.count, en = wev.get_items().wardrobe3.enabled})
echo --- buffs, status, vitals, jobs
# 0x037 first: no events
packet_in 37 00 10 00 01 21 21 2c ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 04 03 02 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00
# 0x037: lose 1 and a 33, gain 40 and 257, status 0 -> 1
packet_in 37 00 10 00 21 2c 28 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 04 03 02 01 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00
# 0x0DF first: no events
packet_in df 00 10 00 04 03 02 01 84 03 00 00 90 01 00 00 e8 03 00 00 00 04 5a 50 00 00 00 00 00 00 00 00 05 4b 03 25 00 00 00 00
# 0x0DF: hp, tp, hpp change
packet_in df 00 10 00 04 03 02 01 52 03 00 00 90 01 00 00 dc 05 00 00 00 04 55 50 00 00 00 00 00 00 00 00 05 4b 03 25 00 00 00 00
# 0x061: main job BLU: job change
packet_in 61 00 10 00 4c 04 00 00 2c 01 00 00 10 4b 03 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x044 BLU set spells
packet_in 44 00 10 00 10 00 00 00 01 02 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_mjob_data().spells)
# 0x044 PUP as sub job
packet_in 44 00 10 00 12 01 00 00 01 20 a2 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4c 75 76 62 6f 74 00 00 00 00 00 00 00 00 00 00 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_sjob_data().attachments) .. ser(wev.get_sjob_data().name) .. ser(wev.get_sjob_data().available_heads)
lua wevtest ser(wev.get_player_extra().buffs) .. " " .. ser(wev.get_player_extra().vitals)
echo --- action, messages, chat
# 0x028 melee: two targets, an added effect and spikes
packet_in 28 00 10 00 40 04 03 02 01 02 04 00 00 cc 1a 00 00 00 80 02 08 40 80 a0 00 90 60 0f 40 00 00 00 00 00 50 00 48 c0 07 20 00 00 00 00 c0 60 5a 00 8c 62 01 04 20 20 02 00 00 70 00 e0 01 00 00 00 80 42 78 00 21 00 00 00
# 0x029 action message
packet_in 29 00 10 00 04 03 02 01 0a 20 00 01 0b 00 00 00 16 00 00 00 00 04 0a 00 06 00 00 00
lua wevtest replace_in[0x029] = function(m) return m:sub(1, 0x18) .. string.char(7, 0) .. m:sub(0x1B) end
# 0x029 changed by the chunk handler: message 7
packet_in 29 00 10 00 04 03 02 01 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 00
lua wevtest replace_in[0x029] = nil
# 0x02D exp chain
packet_in 2d 00 10 00 04 03 02 01 09 00 00 00 00 00 00 00 fa 00 00 00 03 00 00 00 fd 00 00 00
# 0x02D level up
packet_in 2d 00 10 00 04 03 02 01 00 00 00 00 00 00 00 00 4c 00 00 00 00 00 00 00 09 00 00 00
# 0x017 a tell
packet_in 17 00 10 00 03 00 00 00 46 72 69 65 6e 64 00 00 00 00 00 00 00 00 00 68 65 6c 6c 6f 20 74 68 65 72 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x05A emote
packet_in 5a 00 10 00 0c 20 00 01 04 03 02 01 00 00 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x009 examined
packet_in 09 00 10 00 0c 20 00 01 01 04 59 00 00 46 72 69 65 6e 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x0DC party invite
packet_in dc 00 10 00 0c 20 00 01 00 00 00 00 46 72 69 65 6e 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest block_in[0x0DC] = true
# 0x0DC blocked: no party invite, 0 bytes out
packet_in dc 00 10 00 0c 20 00 01 00 00 00 00 46 72 69 65 6e 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest block_in[0x0DC] = nil
packet_out 15 00 00 00 00 00 00 00
echo --- known things, recasts, merits
# 0x055 key items, table 1: ids 513 and 515
packet_in 55 00 10 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
# 0x0AA spells 1 and 2
packet_in aa 00 10 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_key_items()) .. " " .. ser({wev.get_spells()[1], wev.get_spells()[2], wev.get_spells()[3]})
# 0x0AC abilities: ws 0, ja 16, pet 513, trait 2
packet_in ac 00 10 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_abilities())
# 0x119 recasts
packet_in 19 01 10 00 2c 01 00 00 00 00 00 00 3c 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest local r = wev.get_ability_recasts() return (r[0] > 290 and r[0] <= 300) and (r[5] > 50) and r[6] == 0
# 0x08C merits
packet_in 8c 00 10 00 02 00 00 00 40 00 03 05 c2 00 00 02 00 00 00 00
# 0x063 job points
packet_in 63 00 10 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d2 04 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x063 buff times
packet_in 63 00 10 00 09 00 00 00 21 00 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
# 0x062 skills
packet_in 62 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fa 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 87 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest local p = wev.get_player_extra() return ser(p.merits) .. ser(p.job_points.blu.cp) .. ser(p.skills.sword) .. ser(p.skills.cooking) .. ser(p.item_level) .. ser(p.buff_details[1].id)
# 0x0D2 treasure
packet_in d2 00 10 00 00 00 00 00 0a 20 00 01 01 00 00 00 00 10 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_items("treasure"))
echo --- weather, zone, clock, logout
# 0x057 weather 4
packet_in 57 00 10 00 00 00 00 00 04 00 00 00
# 0x00A to zone 231: zone change
packet_in 0a 00 10 00 04 03 02 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4a 6f 73 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 03 00 00 00 00 00 00 00 25 00 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e8 03 00 00 f4 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest fake_now = 1790000000
frames 1
lua wevtest fake_now = 1790000003
frames 1
lua wevtest fake_now = 1790000003 + 3456
frames 1
lua wevtest ser(wev.get_info())
lua wevtest ser(wev.parse_action(string.char(0x28, 0x10, 0, 0, 0x14, 4, 3, 2, 1)).actor_id)
# 0x00B type 1: logout
packet_in 0b 00 10 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
lua wevtest ser(wev.get_info().logged_in)
