Emberholt changes to NightVibes GM Panel 5.13.1 (2026-10-17)
Changed files (readable, re-formatted source): Core\Utils.lua, Core\Comms.lua, Core\ItemActions.lua,
UI\ItemsTab.lua, UI\CharacterTab.lua. All other files are untouched.
- Fixed Items tab crash (Trim returned 2 values -> tonumber(x, 0) "base out of range"), which broke
  item search, the item list/icons and giving items.
- Give to Myself now works with an NPC targeted (only another player as target is refused).
- Item icons load straight from client data; item level/type and quality border fill in; tooltips.
- Server Search button (.lookup item), results parsed from the server reply and hidden from chat.
- Add Gold row in the Items tab (gold/silver/copper, Myself / Selected Player / Mail, Remove option).
- Currencies and Tokens section in the Character tab (.modify currency, token items via .additem).
- Server replies to Give / Add Gold / currency are shown in the panel status line.

== Phase 2 (2026-10-17) ==
Items tab
- New Gear filter (All / Cloth / Leather / Mail / Plate / Shield / Misc / Weapons). Uses the catalog
  class/subclass, and C_Item.GetItemInfoInstant for the slot (cloaks count as Misc) and for items that
  are not in the catalog. Combines with search text, Quality, Category and Drops from; also applied to
  Server Search results.
- New third filter row "Loot": Drops from (instance) -> Boss (bosses in encounter order, Trash, Chests).
  Data/ItemSourcesExported.lua now holds dungeon/raid loot exported read-only from the Emberholt world DB
  (creature_loot_template + reference_loot_template + gameobject chest loot; 30 instances, ~4,000 entries,
  35 KB). Bosses: instance_encounters credit creatures, boss_ scripts, rank 3. Kept: green+ and quest items
  for bosses; blue+ and quest items for Trash and Chests. Large shared world-drop references are left out.
Character tab
- New Professions section: 9 primary + 3 secondary professions (this build has no Jewelcrafting or
  Inscription). Learn (.learn <Apprentice rank>), Max Skill (.learn all 4 ranks, .setskill <tier line>
  300 300, .setskill <skill line> 300 300), Learn All Recipes (.learn all recipes <name>; gathering
  professions send their spells one by one). Myself or Selected Player; warns above 2 primary professions.
GM bar (Weather)
- Intensity button (Light 0.3 / Medium 0.55 / Heavy 1) used by Rain, Snow and Sandstorm; Weather Detail
  button sets weatherDensity to 3; server replies shown in the status line.
- Known limitation: the classic weather states the server sends (rain 3/4/5, snow 6/7/8, sand 22/41/42)
  have no particle entry in this client's WeatherXParticulate table, so the sky darkens and the sound
  plays but nothing falls. Not fixable from the addon.

== Phase 3 (2026-10-17): "Usable by me" filter ==
- Items tab, filter row 2: "Usable by me" checkbox (saved in SavedVariables as settings.embUsableOnly).
  Off = unchanged. On = only items your logged-in character can use:
  * armour type by class (cloth/leather/mail/plate; mail from 40 for hunters/shamans, plate from 40 for
    warriors/paladins, or earlier if the Mail/Plate Mail proficiency is known), shields (warrior, paladin,
    shaman), librams (paladin), idols (druid), totems (shaman); rings/necks/trinkets/off-hands for everyone;
  * weapon types each class can learn in Classic (wands only for priests/mages/warlocks, etc.);
  * required level <= your level (UnitLevel; updates on level up);
  * class/race/profession/reputation limits from the item tooltip (red text), checked once per cached
    item for the first 150 shown results and cached; right-side red type text and "Already known" ignored.
  Unknown data stays visible. Works with the catalog, Server Search and the dungeon/raid loot browser.

== 5.15.0-emberholt (2026-10-18) ==
Character tab
- New Legacy Points section: grant Legacy Points to yourself or the selected player. Points sets how many
  (1 point = the next unearned Legacy challenge achievement); Grant All completes every remaining challenge.
  Uses the EmberCore GM command .legacy points [n] (GM level 3). Shows your own earned points; the server's
  reply ("Granted N Legacy Points to ...") is shown in the panel status line. Reopen the Legacy window after.

== 5.16.0-emberholt (2026-10-18) ==
Tickets tab (new)
- Lists open GM tickets, bug reports, suggestions and player reports (counts on the four buttons), with
  details, the GM note and the reply history. Same data as the website ticket desk: every action runs
  the server's own command (.ticket gm ... for GM tickets, .ticket bug|suggestion|complaint ... for reports).
- Reply / Reply & Close: GM tickets use .ticket gm respond|complete (the player gets an in-game mail).
  Reports: an in-game mail to the player (.send mail) plus "Replied: ..." saved as the GM note, then
  optionally .ticket <type> close - the same thing the website does.
- Add Note, Close (asks first), Assign to Me, Assign..., Unassign.
- Go to Player (.appear), Summon Player (.summon, asks first), Whisper, and Go to Location for GM tickets
  (.go xyz to where the ticket was written).
- Stays in sync: refreshes when the server announces a ticket change (from the game or the website desk),
  every 60 seconds while the tab is open (Auto box), or with Refresh. Its query replies are kept out of chat.
- Replies and notes are limited to 180 characters (chat command limit); longer answers: use the website desk.
- On a server without the new ticket commands, the tab shows reports read-only until the next restart.
