Commit graph RynthCore/src/RynthCore.Engine/Compatibility/AccountHooks.cs
Author SHA1 Message Date
ba7b7d8375 Fix hourglass cursor after UseObject portal, add CastSpell client path, quiet logging
- Fix stuck hourglass after UseObject portal teleport by directly zeroing
  ClientUISystem.m_cBusy and calling UpdateCursorState to force cursor re-eval
- Add CommandInterpreter::ClearAllCommands and TakeControlFromServer for
  post-teleport action cleanup
- Switch CastSpell to ClientMagicSystem::CastSpell (0x00568DE0) with game
  action 0x4A fallback — fixes ring spell casting
- Move all success/info Compat log calls to Verbose; log file now errors-only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:08:27 -04:00
c2ca425f87 Add salvage, appraisal, account, teleport hooks and expand engine API
New hooks:
- AppraisalHooks: hook CM_Examine::SendNotice_SetAppraiseInfo (0x006B05B0) to
  cache bool properties from server appraisal data; fixes wobjectgetboolprop
  returning 0 for inventory items whose m_pQualities is null in client memory
- SalvageHooks: hook gmSalvageUI::OpenSalvagePanel to capture singleton instance
  for use by SalvagePanelAddItem and SalvagePanelExecute
- AccountHooks: capture account name and world/server name from login flow
- TeleportStateHooks: track teleport/portal state via SmartBox

ClientObjectHooks: check AppraisalHooks cache before CBaseQualities::InqBool in
TryGetObjectBoolProperty so identified inventory items return correct values

API v40 additions (PluginContract / PluginManager / PluginSdk):
- GetCurrentCombatMode: direct read from ClientCombatSystem without hook
- SalvagePanelOpen / SalvagePanelAddItem / SalvagePanelExecute
- GetVitae: reads vitae multiplier via CACQualities::GetVitaeValue
- GetAccountName / GetWorldName
- GetObjectWcid: reads PublicWeenieDesc._wcid fast path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 00:27:17 -04:00