Commit Graph
18 Commits
Author SHA1 Message Date
Karrz1 5b934cc5eb Ghost Wolf: trainers teach 2645 again
0.1.36 (world 2026_11_13_82, characters 2026_11_13_80) moved Ghost Wolf
to 1238640, as live trainers teach since 70888. The 70938 client has no
SkillLineAbility row for 1238640, and live pushes none as a hotfix, so
the spell is not in the shaman's spellbook and the client does not
cast it: shamans who trained it had no wolf.

New files move trainers, known spells and action buttons back to 2645;
the shipped files stay as they are. The bot rotation knows both ids.
2026-11-15 14:20:55 +00:00
Karrz1 82b30ef184 Day and night: a realm-wide sky speed and a sky of your own
Forever.DayCycle.Speed (worldserver.conf, default 1) makes the sky run
1x (the realm's clock, as before) up to 24x for the whole realm. The time
of day shown is worked out from the realm's local time alone, so every
player sees the same sky, also after a restart. Only the sky changes:
events, resets, respawns and scripts keep the realm's own time.

.time day and .time night keep noon or midnight for one character,
wherever it goes, and .time auto brings the realm's sky back; .time says
which one is set. Every player may use it (permission 1000, Role:
Player). The choice is kept in character_day_cycle, loaded with the other
login queries and saved with prepared async statements, and goes when
the character is deleted.

The clock is sent at login and at every map change, as before, and right
away by .time. The pure part (DayCycle.h) has unit tests.
2026-11-14 09:08:43 +00:00
Karrz1 7d4fc187c2 Realm: warn when an also-accepted build has no build_info row; custom SQL no longer hidden from git
Realm.AlsoAcceptBuilds lets a client build in, but the login also needs that build's auth build_info row, which comes from sql/custom/auth/*_auth_classic_<build>.sql. A repack with the auth updates turned off never gets it and the login fails with nothing in the log (asked on 2026-11-14 about 70938). The realm list now logs an error for each listed build without a row.

sql/custom/{auth,characters,hotfixes,world}/.gitignore ignored *.sql (from upstream), so a new custom file was left out of a commit unless added with -f: it happened to the 70888 and the 70938 auth rows. Every custom file here ships, so nothing is ignored now.
2026-11-14 08:07:57 +00:00
Karrz1 dfe3fce7c3 Ghost Wolf: trainers teach 1238640 as on live
Since build 70888 the live shaman trainers teach Ghost Wolf as 1238640
(same form, speed, price and level, but not limited to outdoors) in
place of 2645. Every trainer row moves to 1238640, characters who know
2645 get 1238640 and their action buttons follow, and the bot heal
logic treats either aura as Ghost Wolf.

(cherry picked from commit ea45a9642b5cf19340c0ff476f344935708390af)
2026-11-13 09:33:15 +00:00
Karrz1 ff699fb5cf Sync with WoW Forever 0.1.34: Blizzlike core
Brings forever up to date with our 0.1.34 code for the WoW Forever client 1.60.1.70862.
Blizzlike only: fixes from real game data (packet captures, live hotfixes, player caches, Wowhead and Questie data,
VMaNGOS for the vanilla world) and server fixes. No custom items or custom content; every rate and option defaults
to Blizzard's behaviour.

What is new since 2ae1313e, in short:
- Clients 70790, 70840 and 70862: message numbers, mail, guild window, charters, contact list, add-on whispers.
- Crash and exploit fixes: guild ranks, loot of emptied veins, quest lookups, taxi mask, battleground templates,
  vendor free buys, item sell price, auction house, falling out of the world, bnetserver request limit.
- Classes, talents, pets and buffs from the live game data and Blizzard's hotfixes of November.
- Quests, NPCs, spawns, trainers, loot, fishing, events, Merchant's Favor crates and writs, sealed crate turn-ins.
- Dungeon and raid scripts (Molten Core, Blackwing Lair, Zul'Gurub, Ahn'Qiraj, Shadowfang Keep, Deadmines ...).
- Pathing fixes that help pets and NPCs.
- Russian creature names, quest titles and quest texts.
- README: Blizzlike stance, branches, repack.
2026-11-09 17:27:57 +00:00
zsolt6kandClaude Opus 5.5 91d49b230f Spells: Soul Link puts its visible buff on both the warlock and the demon (#119)
Soul Link (19028) made the demon cast 18814 (OLDSoul Link Effect) on the
warlock: a hidden aura that only splits damage. Nothing showed on either,
so the spell seemed to do nothing, and the 3% damage bonus was missing.

The demon now casts 25228 on itself. It is a pet area aura that also
reaches the warlock, with the demon as caster: both show the Soul Link
buff and deal 3% more damage, and the demon takes 30% of the damage done
to the warlock.

A re-runnable custom characters update deletes the saved 18814 auras: pet
GUIDs are counted from 1 again after a restart, so a saved one could split
damage to a new demon on top of 25228.

Tested in game: the buff shows on both, and the warlock takes less damage.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-24 12:40:14 +08:00
Duy Hoang fdf4c99fcc Classic 1.60: store all 360 action buttons (#109)
The 1.60 client sends 360 action buttons (SMSG_UPDATE_ACTION_BUTTONS decoder
asserts 8 * 360 + 1). The server only stored 180 (MAX_ACTION_BUTTONS) and the
packet zero-padded 180-359, so anything bound above 180 was dropped: the
controller UI bound CMSG_SET_ACTION_BUTTON button 187 and it came back blank
on every relog.

Raise MAX_ACTION_BUTTONS to 360, send 360 real buttons, key ActionButtonList
and Add/Remove/GetActionButton/IsActionButtonDataValid by uint16, accept the
full uint16 button index from the client, and widen character_action.button
to SMALLINT (base schema + a re-runnable custom characters update).
2026-10-23 19:00:34 +08:00
Advocaite 855d360ddc Classic 1.60: in-game Shop, character boost, realm transfers, Hall of Thanes dungeon
Shop (legacy BattlePay Store):
- Store window: products, groups and purchases from world.shop_* tables, shop points in
  auth (account balance + log), purchase/confirm flow, items and gold mailed, services
  (rename, customize, race/faction change), professions, level, titles, reputation
- Gold Market: premium accounts list gold for points (gold taken at listing), anonymous
  listings in the Store, fee from Classic.Shop.GoldMarketFee
- Realm transfers: Store "Realm Transfer" and the Hardcore Character Transfer token;
  player dump queued in auth.character_transfer, loaded by the target realm (every 60 s
  and at startup) with verification; rules in auth.character_transfer_rule (nobody moves
  onto hardcore, hardcore characters leave only once dead)
- Character boost: character screen boost button with account boost tokens; level 60,
  per-class green "of the X" set (suffix bonus lists), bags and Classic.Shop.BoostGold
  (default 250) by mail; CharacterServiceInfo 120 hotfixed so any spec can be picked
- GM commands: .shop reload/points/balance/boost/goldlist/goldcancel
- Character services: rename/customize/faction packets carry the surname, own name no
  longer counts as taken, Skyborne language, cache updated after commit
- Guild roster: 70291+ member has a u64 after RaceID (client assert on hardcore login)
- Support site: player shop page (points, gold market, transfers) and GM shop panel
  (products, gold market, transfer rules, accounts, settings), DB connection pool

Hall of Thanes dungeon (map 3065) from the official sniff:
- Instance: map 3065, normal 5-player; portal at the bottom of Old Ironforge (custom area
  triggers 302 in / 303 out, radius 2.5 from the sniff), graveyard 852, mmaps for 3065
  generated (4 tiles in classic_data/mmaps, the repack needs them)
- Instance script with the encounter tracker: Faldrim Anvilmar 3493, Infurnus/Magmatus 3495,
  Plunder 3494, Durgen Dirgehammer 3496 (ENCOUNTER_START/END, kill credit); doors from the
  sniff: Faldrim opens portcullises 642024/642025, Plunder opens Iron Door 645389, the
  Ancient Switch opens 645391/645392 with its instance message
- Spawns (guids 21400000+): 138 creatures, 161 gameobjects, 9 patrols, random movement,
  linked packs; outside portal, meeting stone and quest givers; 16 creature and 104
  gameobject templates, 8 equipment sets
- Quests 96393, 96394, 96395, 96403, 98423 (givers, enders, Treaty to Magni)
- Loot: Wowhead Forever drops for all 11 mob types (973 rows) merged with sniffed loot,
  boss blues one per kill, heirloom chests, sniffed gold; zone item list checked, all 235
  items already known to the client
- AI: 29 SmartAI rows for 13 creatures, boss spells and yells with sound from the sniff;
  repeat timers estimated (each boss died in 11-21 s, every spell seen once); Plunder
  Charge and the second Durgen shout are on Wowhead but were not cast, left out
2026-10-13 00:30:07 +08:00
Advocaite ae91814906 Classic 1.60: pet action bar has 18 slots, warlock demon models from sniff
- SMSG_PET_SPELLS_MESSAGE: the Classic client reads 18 action button slots before the counts (official
  sniff). With 10 it read the first action entry as the actions count and crashed (BC_ASSERT on imp
  Phase Shift 0xC100119F when learning a grimoire)
- Warlock demons used retail displays the client cannot draw (invisible imp, no portrait, Missing
  ChrModel class 4): Imp 148118 class mage, Voidwalker 1132 and Succubus 4162 class paladin (official
  creates), Felhunter vanilla 850; saved pets updated in the characters databases
2026-10-12 10:16:38 +08:00
Advocaite 3018af918e Classic 1.60: vanilla AV, battleground spawn groups, pet loyalty, dbscripts, loot fixes
Battlegrounds
- Alterac Valley: port of the vanilla (VMaNGOS) battleground logic replaces the retail script on map 30:
  graveyards and towers, mines, captains, commanders, lieutenants, defender upgrades from armor
  scraps, supply crates, stable mounts, herald, end honor and reputation; banner script per node
- Node and state spawns in spawn groups (AV 300000+, AB node groups, WSG spirit guides 489004):
  only the current state is spawned instead of every state at once
- Frostwolf Graveyard added, AV graveyards follow their owner

Pets and spells
- Hunter pet loyalty (vanilla gain and loss, runs away when rebellious), training point fields
  sent to the client, loyalty saved per pet and shown in the stable; old pets count as Best Friend
- Grimoires: taught rank level check and demon family check (1.60 grimoire spells have no level)
- No spell crit suppression by target level (vanilla)
- Skeram True Fulfillment immunity via client spell 5579, Korv Fire Nova Totem summoned in script

World
- 153 creatures had loot rows but no LootID (80 also no gold): linked as in VMaNGOS
- Negolash: loot, arrival from the sea, feast objects, speech, knockdown proc
- Converted VMaNGOS event, gameobject and spell scripts: Emberseer start and doors, Ulag, door
  levers (BRD, Deadmines, SFK, SM, Scholomance, BWL), Scholomance portal gates, Call of
  Vaelastrasz, Binding ritual, Venture Co. explosives, Knot cache, Steam Tonk, Barthilas gate,
  Sharpbeak cage, Stratholme ziggurat door, class mount visuals, Soul Link; duplicate Dreadsteed
  and Gahzranka spawns removed
2026-10-12 09:46:04 +08:00
Advocaite d1647600b3 Classic 1.60.1.70338 support and Forever sniff features
- auth: build_info and realmlist gamebuild 70338
- sniff imports regenerated (Crossroads / Ratchet recording: quests, vendors, gossip, POIs)
- Legacy reward track: reward quests 96339-96342 at Innkeeper Wiley, added automatically at 15/25/40/55 Legacy Points
- trade company recipe vendors: reputation gates and Merchant's Favor costs; realm-wide world states (Merchant's Favor award)
- profession certifications: account-wide certification table, titles at 300 skill
- Glimmering Staff equip effect (spell power 34, server-only item effect)
- Skysight / Read Ley Line: 15 min buff next to an Elemental Convergence / Ley Line
- gameobject world effects from sniffs (minimap marks: ley lines, convergences, chests, quest objects)
- Skyborne portal condition: unused PlayerCondition fields set to -1
2026-10-10 20:05:30 +08:00
Advocaite f63ffc12b3 Classic 1.60: stable master, beta achievement, Skyborne portals, sniff import, login messages
- Hunter stable (vanilla rules, official sniff 70291): client 0x3E0011 is
  CMSG_BUY_STABLE_SLOT (new core 0x3D0310), 0x3E0012 is CMSG_SET_PET_SLOT.
  Slot 0 = current pet, 1..2 = stable slots bought for 5s / 50s, saved in
  character_stable_slots. Classic StablePetInfo layout (13-bit mask, loyalty,
  happiness, experience), PetStable is ActivePlayerData bit 158 and the slot
  count (NumStableSlots) bit 159.
- "Played in the WoW: Forever Beta" (64283) and its 16 Legacy Points
  (TraitCurrencySource 38875), given after the loading screen.
- Skyborne Portal to Stormwind / Dalaran: Alliance only (PlayerCondition
  152835), teleport destinations for them and the Dalaran city portals.
- Sniff import over all dumps incl. the donated 70245 / 70291 sniffs: new
  creatures, quests, gossip, quest texts, POIs, Dalaran NPCs and spawns.
  WotLK quest POIs for vanilla quests without any.
- Discord channel joined after the loading screen without moderator rights,
  MOTD sent after the loading screen, Resources service content handle,
  client main group insert index for 70291.
2026-10-10 00:20:58 +08:00
Advocaite 3f77d65e99 Classic 1.60: Battle.net friends, authenticator, social window, Discord two-way chat
Battle.net (bnetserver + worldserver tunnelled services)
- Authenticator: TOTP secret per Battle.net account, login asks for the code
  (client AUTHENTICATOR state), secured accounts get the +4 backpack slots
- BattleTag column, sent at login and in presence
- Friends v2: subscribe, invitations, accept/ignore/revoke, remove, notes;
  friends kept in auth (battlenet_friends, battlenet_friend_invitations)
- Presence v2: own and friends' presence (character, race, class, level,
  zone, faction group), status and broadcast passed through, appear offline
- Whisper v2 between friends on the same realm
- Unasked friends/block list Subscribe results and connection status as the
  official server sends them

Social window and Group Finder
- Social window side tabs: mirror vars (socialUIEnabledClient etc.), character
  name friends kept (legacyFriendSystemEnabledClient)
- Recent Allies: party, raid, trade, whisper and fought-together interactions,
  online state and zone; RolodexType hotfix gives grouping a reason text
- Group browser member roles, level and class; listing name/comment/play style
- Party invite reads the Classic target realm address instead of proposed roles

Character select and misc
- Character list as regionwide entries: money and professions in the tooltip
- Official feature flags and game rules (Classic.OfficialFeatureFlags)

Discord
- In-game Discord channel relayed both ways (.discord say, /join and /leave)
- Bot: faction counts, uptime, show/announce switches, [A]/[H] tags, LFG posts
  with roles, tidy status channel

Support site
- Account page: Battle.net account, game accounts, characters, authenticator
  setup with QR code
2026-10-07 04:39:01 +08:00
Advocaite d0dde7b468 Classic 1.60: Zephras story quests, SQL updater rewrite, companion pets, gathering and combat fixes
Story and world
- Scripted Zephras story chain: Talaanis crystal scene, Valennia muster, the Ayessa spire battle (Lorthuna, Rohash, storms, rift, portal back to Valanaar), Rohashi winds launch, secluded house, injured cave druids
- Phases and quest chain fixes (Prepare for Battle, Confront Lorthuna, The Fate of Zephras), Al'Aketh hill fight, peacekeeper/Ayessa factions
- Talk-to quest objectives credit on gossip and questgiver hello
- Phase shift flags are 1 byte (client crash accepting Prepare for Battle)
- Reputation: Classic standing packet (change field), no reputation for the other side's faction
- Wisps fly (Floating), inns rested (6 missing vanilla taverns, server side inn triggers on Zephras)
- Teleports for every new Forever map

Database updater
- Applies SQL over its own multi statement connection (the mysql client silently stopped reading files)
- Reapplies every later custom file once an earlier one is reapplied
- No apostrophes in SQL comments; reapplied the fixes the sniff import had undone

Professions and items
- Skinning loot for Zephras beasts, skill-ups for herbalism, mining and skinning (no parent skill line, no content tuning)
- Vanilla chests (herbs, veins, treasure) consumed on loot (ChestFlags)
- Profession books 247840/247841/247846, gathering extras (Pristine Leather, Frilled Lichen, Pyrite, seeds)
- Companion pets: journal packet (Classic int64), creatures and models for the new Forever pets
- .legacy points command to test the Legacy trees

Combat
- Player, pet and trap spells use flat base points (Scorch), vanilla 14 AP per DPS
- Spell crits 150%, no extra spell crit against lower level targets
2026-10-05 08:01:14 +08:00
Advocaite 1fae4e8313 Classic 1.60: add the Guild Finder tables file (was missing from git) 2026-10-02 17:37:28 +08:00
Advocaite ec138b4e1f Classic 1.60: re-runnable custom SQL, camp Boosted Rest, weapon enchants, sniffed unit flags
- Custom SQL safe to run twice (the updater re-runs files whose content changed): guarded column adds, Guild Finder
  tables no longer dropped
- Camping: the campfire rest gives the Boosted buff of each camp feature nearby; Boosted Rest raises rested experience to
  5% of a level (Camp Tent)
- Classic spell effect 360 (poisons, shaman imbues, Spellstone) handled as a temporary weapon enchant; imbues without an
  item target enchant the main hand weapon, duration from the spell when the enchant has none
- Sniff import: unit flags read correctly (VisibleItem layout), quest NPCs immune with their real reputation factions,
  Camp Tent not selectable
2026-10-02 17:36:48 +08:00
Advocaite b7a41b6f32 Classic 1.60: ruleset realms, hardcore, surnames, vanilla graveyards
Ruleset realms (contentSetId, one worldserver per ruleset), ruleset switch fix, hardcore permanent death, surnames, Undead Paladin and new class combos, vanilla graveyards.
2026-09-30 04:20:13 +08:00
Naios 352012e531 Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

Signed-off-by: Naios <[email protected]>
Signed-off-by: Nayd <[email protected]>
2015-03-21 14:09:38 +00:00