Commit Graph
31894 Commits
Author SHA1 Message Date
Karrz1 4652eae751 WANTED: Murkdeep! (4740) and Plagued Lands (2118) work
Murkdeep has no spawn: walking into the murloc camp on the quest calls up three murloc waves and then him. That event was never ported; it is now (classic_npc_murkdeep, classic_at_murloc_camp, from VMaNGOS). The bear trap's spell targets the nearest Rabid Thistle Bear and needs a conditions row naming it; there was none, so the trap caught nothing.

(cherry picked from commit c3a000f91606ec4376141debe82a8a74beb68dd0)
2026-11-11 23:37:56 +00:00
Karrz1 9eabf97fa0 Wrack (1316697): Corruption, Siphon Life and Bane of Agony tick faster
Build 70888 gives Wrack a second effect: "While channeling, your Siphon
Life, Corruption, and Bane of Agony effects on the target deal their
periodic damage 100% faster." The client effect is a dummy aura, so the
server did nothing with it.

AuraEffect::ChangePeriodKeepingExpiry re-times a running periodic effect:
the expiry stays, the time already run towards the next tick keeps its
share, and the tick count follows what still fits. The Wrack script
shortens the caster's own warlock dots on the target while the channel
runs and gives them their normal period back when it ends. Same model as
wowsims/forever (MIT), sim/warlock/wrack.go.

Soul Siphon counts the same three dots, as its 70888 tooltip says.
Spell.h is included for the existing IsTriggered() call (non-PCH builds).

(cherry picked from commit ef644d9e36b4dfdced13565441b65719a3f64e16)
2026-11-11 23:37:53 +00:00
Karrz1 e2c4bf6946 Nightfall (18094) procs from Drain Soul and Wrack too
The 1.60 tooltip names Corruption, Drain Soul, Drain Life and Wrack;
only Corruption and Drain Life could proc it.

(cherry picked from commit 019c9d401a3587ffd1b7666deaa3fd146c0c9381)
2026-11-11 23:37:53 +00:00
Karrz1 85fbca0ec5 Appearances: items that never bind are collected too
Only soulbound items went into the appearance collection. Most vendor and white gear in Classic has no binding at all, so it never bound and was never collected, not even when worn. An item with no binding now counts as soon as the player has it: looted, bought, equipped, or already in the bags at login. Bind on equip items still count when they bind (equipped), like on live.

(cherry picked from commit e6919e740d23230ddb0b569485221e823ac96bf8)
2026-11-11 23:37:52 +00:00
Karrz1 c01333337b Flight points: found by visiting the flight masters, as on the live realm
A new character knew every flight point of its faction on Kalimdor and the
Eastern Kingdoms, from an early beta sniff. The live realm does not do that:
a packet log from the live EU realm (build 70862, 2026-11-07) has a level 16
Horde character at the Crossroads flight master who knows only Orgrimmar,
the Crossroads and Ratchet. Players on Discord say the same.

Now no flight point is known at the start and each one is learned at its
flight master. Only death knights (retail) keep the full list.
AllFlightPaths = 1 in worldserver.conf still opens every flight path for
realms that want that.

Characters made before this keep the flight points already saved with them.
Bots learn their flight points on their own (setup pipeline), so bot travel
is not affected.

(cherry picked from commit 7755303db12a6350d7e84461eafaa408ec4bcefa)
2026-11-11 23:37:52 +00:00
Karrz1 d4968eb31d Hunters: Beast Training gives its skill so the window opens
Beast Training 5149 has no skill effect and its skill line 261 is not a
starting skill (SkillRaceClassInfo Availability 0), so hunters had the
spell but not the skill. The client then refused the Beast Training
window ("You can't do that right now", player report 10 Nov) and the
Growl ranks that come with the skill (1853, 14922) were never learned.
Learning any Beast Training spell now gives the skill, like Lockpicking
and weapon skills; existing hunters get it at their next login.

(cherry picked from commit 97866a3d4bf0d6387937b84b1ed532396ab4709a)
2026-11-11 23:37:51 +00:00
Karrz1 e341aff0ac The Treaty of Understanding (98423): the tablet puts the treaty in the bag
The quest starts from the Treaty of Understanding tablet (gameobject 673474)
and gives item 281030 on accept. In the client data that item also names
98423 as its start quest, so GiveQuestSourceItem took it for the item the
player had just used and gave nothing. The quest could never be finished.

Skip the item only when the player really holds it (quest started from
the item itself). Reported by Zlavrentiy on Discord, 11-10.

(cherry picked from commit b5c558f185e9ab5ec17bfb42104b7d564f2bef8a)
2026-11-11 23:37:49 +00:00
Karrz1 c2ef95852e worldserver: optional read-only status endpoint
GET /status on its own small HTTP port answers one JSON line with
up/stalled state, uptime, online counts, world update lag (last, smoothed,
worst of the last 30-60 s) and the build hash. A launcher can use it for
the realm status dot, and a monitor can use it for "server is down" alerts:
HTTP 200 while players can play, 503 while starting, stalled or stopping.

Off unless StatusServer.Token is set (16+ characters); every request needs
the token. Binds to 127.0.0.1:8087 by default. It cannot run commands or
change anything. The world thread publishes the numbers once per update
through atomics, so a request never touches game objects. Only worldserver
files change; no game code is touched.

(cherry picked from commit 14773d0dcb92ead3cd94cd2a59bbf6cf685f2dbc)
2026-11-11 23:37:49 +00:00
Karrz1 2f8de15186 Hunter pets: tamed beasts keep their wild abilities and teach them
A newly tamed pet had only auto attack (player report 10 Nov), so beast
mastery hunters could neither learn nor teach the family abilities.
Nothing gave a tamed beast an active ability: the code only adds family
passives and summon spells, and every pet ability rank is a learned
SkillLineAbility, never a level-up one.

Like vanilla, a tamed beast now keeps the abilities it had in the wild
(new table classic_pet_tame_spell: creature PetSpellDataId from VMaNGOS,
pet spells from the Classic Era client table CreatureSpellData), and each
time it uses one the hunter has a 10% chance to learn the Beast Training
rank that teaches it (VMaNGOS/CMaNGOS Pet::CheckLearning). Pets tamed
before this that know no ability at all get theirs when they are next
called. Beast Training (5149) now comes with Tame Beast and Call Pet.

(cherry picked from commit 593855c331b4ea30cd670419a80671eea2885848)
2026-11-11 23:37:49 +00:00
Karrz1 8ee62b2e3b Druid: no Ravage or Pounce from Shadowmeld (Blizzard's 6 November hotfix)
(cherry picked from commit 94fd7011afe5ae834abb659c4fb0d16c7561eedd)
2026-11-11 23:37:48 +00:00
Karrz1 9b334e6740 The Sleeper Has Awakened: start with the Horn of Awakening, Kerlonian naps less often (Blizzard's 6 November hotfix)
(cherry picked from commit e3f18a35c01b2157c2838a129698f904bc461fcf)
2026-11-11 23:37:48 +00:00
Karrz1 52e43beade The Attack! (434): the spybot goes to Lescovar and the garden talk happens
Taking the quest from Tyrion did nothing: the spybot stayed next to him and
Lord Gregor Lescovar never walked to the garden, so the talk with Marzon could
not be overheard and neither could be fought. Only parts of the VMaNGOS event
had come over into SmartAI.

The whole event is now a script, following VMaNGOS's own version:
- Tyrion sends his spybot, dressed as Priestess Tyriona, past the garden
  guards to Lescovar in the library.
- Lescovar walks to the garden door, sends the two Royal Guards away and
  waits in the garden; Marzon sneaks in and they talk about VanCleef.
- At the end of the talk everyone close by with the quest gets the
  "Overhear" part, both turn hostile and Tyrion shouts to kill them.
- With both dead the guards go back and the spybot comes home to Tyrion.
- Leaving (200 yards), dying or 10 minutes passing fails the quest and puts
  everyone back; Lescovar walking back alive after his minute also fails it.

The walks use the paths already in the database (810077790, 810017540,
810088560). SQL 2026_11_09_52 drops the half-imported SmartAI rows and sets
the script names.

(cherry picked from commit 0db09a0df8ab73fc1000720dd81acabec0eec257)
2026-11-11 23:37:47 +00:00
Karrz1 01ebc9b6f1 Devastate: the rune damage only comes from Sunder Armor
Devastate 403196 is the damage part of the Rune of Devastate: Sunder Armor
triggers it through the rune aura 403195. The client gives it no cost, no
cooldown and a 50000 yard range because it is meant to be triggered, so a
warrior who had it on the action bar hit anything in sight as fast as they
pressed (SIN's clip: five hits from 20 yards, no rage).

- spell script refuses a direct cast, only the triggered cast works
- melee range like Sunder Armor
- never kept in a spellbook (also drops it from characters that have it)

(cherry picked from commit a3986fa885f4850ad4d74277f211d709f7798368)
2026-11-11 23:37:47 +00:00
Karrz1 83290f3c1b Timezone: do not die at startup when Windows has no time zone data
GameTime's StartTime initializer runs UpdateGameTimers during static
initialization, which asks std::chrono::current_zone() for the local
offset. When Windows cannot provide the time zone database, or reports
a zone it does not know, MSVC throws std::runtime_error and the
worldserver ends before main with E06D7363 under _initterm.

Look the database and current zone up once, without throwing. Without
them the offset comes from the C runtime, the zone name is empty so the
client time zone is picked by offset, and bnetserver uses the
pre-generated offset hash table.

(cherry picked from commit addd5c379992795c599c073411c49beba8190c03)
2026-11-11 23:37:45 +00:00
Karrz1 13eebe1cc2 Gossip: "browse your goods" only shows on an NPC that sells something (the fishing trainers' menu had a dead one)
(cherry picked from commit 22aa769e0870456fee277af29d57c57d42cd4fb4)
2026-11-11 23:37:45 +00:00
Karrz1 ba0a48b4c2 Skyborne Walk on Air stays on: an aura that ends on the ground is not taken off in the moment before the lift
(cherry picked from commit 2894547bf2440b8d7708b6281f7dd29c5cda316e)
2026-11-11 23:37:45 +00:00
Karrz1 cfdb3dc218 Below level 10 the specialization is only reset when it is not the default one already (pets were dismissed on level gains)
(cherry picked from commit d4cd746dc745871879de998aaff16c56fc5a13e0)
2026-11-11 23:37:44 +00:00
Karrz1 54d686550c Transmog: armor outfit slots save again (Classic armor type options)
The Classic 1.60 client gives every armor slot (head, shoulders, chest,
waist, legs, feet, wrists, hands) four outfit options, one per armor type:
TransmogOutfitSlotOption.db2 options 12-15 (Cloth, Leather, Mail, Plate).
The server only knew options 0-11, so it skipped those rows at startup and
then refused every outfit save that had an armor slot ("player sent invalid
slots"). Weapons worked because their options were known. That is why armor
appearances did not save, the price showed 0 and hiding a helmet failed.

- add the four armor type options to TransmogOutfitSlotOption
- an equipped armor piece now picks the option of its armor type, so the
  saved appearance is shown, charged and used on the character screen
- cosmetic and hidden (miscellaneous) appearances fit every armor type
- no illusion is assumed on armor slots
- CMSG_CLEAR_NEW_APPEARANCE is ignored quietly (the server keeps no "new"
  mark on appearances) instead of being logged as unhandled

Reported by SIN on Discord, 2026-11-09.

(cherry picked from commit 0b506dc442dfc8034f6b2ab4d8653226d3f23ba7)
2026-11-11 23:37:42 +00:00
Karrz1 31089bf999 Quest log size is a setting: Quests.LogSize (35 by default, up to 40)
(cherry picked from commit af5eadbb409e635ccdba1e2c6c0fc00076163b7e)
2026-11-11 23:37:41 +00:00
Karrz1 830e7dac9d Testing the Wells: the Well Testing Kit gives the water samples at the wells
(cherry picked from commit f307fdf55bfbcaf23d9bccd1766aff7e3f882ebd)
2026-11-11 23:37:41 +00:00
Karrz1 454c580a42 Skyborne Skysight can be cast while mounted, so its mounted speed works
(cherry picked from commit a39e082f4c96d2aae137d521e54d83c14864f10b)
2026-11-11 23:37:40 +00:00
Karrz1 1e9ee33b57 Config: document Instance.MoltenCoreRagnarosReady (Ragnaros up without Majordomo's summon, default off) 2026-11-09 18:25:10 +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
Karrz1 6ac7bece2e Classic 70790: the two new client messages are at 0x71, not 0x63 (#272)
With the insert index at 0x63, the client messages 0x65..0x70 are moved down by two as well. CREATE_CHARACTER
(0x70) then arrives as PET_BATTLE_REPLACE_FRONT_PET (0x6E) and character creation fails.

Packet logs of the new client show where the two messages were added: CREATE_CHARACTER (96 bytes, holds the name)
still comes at 0x70, and the character name check (0x71 before) comes at 0x73. So the new messages are 0x71 and
0x72, and the default (code and worldserver.conf.dist) is now 0x71 (113).
2026-11-06 17:17:19 +08:00
Advocaite 78258603b3 Classic 1.60.1.70790: SpellDuration.db2 has DurationPerLevel again
The 70790 client's SpellDuration.db2 has four fields (Duration,
DurationPerLevel, MaxDuration, DurationPerResource; layout hash 0x4FDF0951)
instead of three, so a server with data extracted from 70790 stopped with
"Incorrect layout hash in SpellDuration.db2". Checked against the records of
both builds: the old third field is the new fourth one, the new second one is
vanilla's per-level duration (200 or 10000 on durations 11-15).

Of the 13 DB2 layouts that differ from the metadata, SpellDuration is the only
one the server loads. The hotfix table gets the DurationPerLevel column.
2026-11-06 03:45:51 +08:00
Advocaite b4e7b94059 Classic 1.60.1.70790: the WoW Forever product, its message numbering and auth
From 70790 the game is its own Battle.net product "wowf" (World of
Warcraft\_forever_\Wow.exe). Official 70532 vs 70790 sniffs:
- main server group: one new message; every index from 0xED
  (ACHIEVEMENT_EARNED) is one higher, up to 0xDE (INSTANCE_INFO) unchanged
  (49 messages confirmed). Classic.MainGroupInsertIndex70790, default 0xDF.
- main client group: two new messages; every index from 0xB5
  (QUERY_REALM_NAME) is two higher, up to 0x62 (SET_ACTION_BUTTON) unchanged.
  Classic.ClientMainGroupInsertIndex70790, default 0x63; the two new ones are
  logged as unknown.
- other groups, the login handshake and the update fields are unchanged.
Both apply when realmlist.gamebuild >= 70790 (ClassicOpcodes::IsBuild70790OrLater).

Also: auth build_info 70790 with realms 70-74 moved to it, mapextractor and
vmap4extractor open product wowf by default, README describes the new client.
2026-11-05 23:37:13 +08:00
Karrz1 b9c01afdeb Classic 1.60.1.70658: auth support
Battle.net patched the WoW Forever game to 70658 (2026-10-28). Its game data and
protocol are the same as 70634; only client-side realm/region config, name filters
and some art changed. Adds the build_info row and moves realms 70-73 to 70658.

The Realm.AlsoAcceptBuilds example now lists 70634, 70630 and 70532, so older
clients can keep playing on a 70658 realm.
2026-10-28 09:58:37 +00:00
Karrz1 adce403485 Merge pull request #168 from advocaite/karrz-fix-chest-later-openers
Loot: a chest someone else opened first shows its remaining loot to the next player
2026-10-27 19:30:32 +00:00
Karrz1 3c667b0717 Merge pull request #166 from advocaite/karrz-stab-traits-two-way-edges
Traits: a pair of nodes with edges both ways keeps one direction
2026-10-27 19:30:06 +00:00
Karrz1 33f5e7b9ae Merge pull request #165 from advocaite/karrz-stab-reputation-log-spam
Achievements: a reputation criterion for a faction the client data lacks counts as 0 without an error per character
2026-10-27 19:29:54 +00:00
Karrz1 8969f48090 Merge pull request #164 from advocaite/karrz-stab-empty-conf-d
Config: an additional config file without settings is no longer an error
2026-10-27 19:29:41 +00:00
Karrz1 64a51a4098 Merge pull request #163 from advocaite/karrz-stab-hotfix-item-names
Hotfixes: item names never go out empty, and changed records reach cached clients
2026-10-27 19:29:29 +00:00
Karrz1 a3601cee3f Merge pull request #162 from advocaite/karrz-stab-db2-enus-fallback
DB2: a record only in the database shows its enUS text in every language
2026-10-27 19:29:16 +00:00
Karrz1 6426cdeadb Merge pull request #161 from advocaite/karrz-stab-account-data-1mib
Account data: store up to 1 MiB per type, warn when data is dropped
2026-10-27 19:29:03 +00:00
Karrz1 ba3e6a5bee Merge pull request #160 from advocaite/karrz-stab-ah-browse-filters
Auction house: ignore browse filters outside the filter tables
2026-10-27 19:28:50 +00:00
Karrz1 498e873c04 Merge pull request #159 from advocaite/karrz-stab-connection-limits
Network: connections per address and login timeouts
2026-10-27 19:28:38 +00:00
Karrz1 02dcffadb4 Merge pull request #158 from advocaite/karrz-stab-srp-one-login
Login: an SRP challenge answers one login, for its own account
2026-10-27 19:28:25 +00:00
Karrz1 f0cec7d789 Merge pull request #157 from advocaite/karrz-stab-packet-size-caps
Network: refuse packet sizes no real client sends, before login too
2026-10-27 19:28:13 +00:00
Karrz1 59085b34ac Merge pull request #156 from advocaite/karrz-stab-bnet-bad-header
Bnet: close the connection on an unparsable request header instead of asserting
2026-10-27 19:28:01 +00:00
Karrz1 483dc55d1a Merge pull request #155 from advocaite/karrz-stab-trash-loot-looter
Dungeon trash loot: do not assume the group looter is on the map
2026-10-27 19:27:48 +00:00
Karrz1 931914ca4e Merge pull request #154 from advocaite/karrz-stab-channel-leak
Core/Channels: Fixed a memory leak when loading a custom chat channel using AllowTwoSide.Interaction.Channel when both factions already had a channel with the same name (#32027)
2026-10-27 19:27:36 +00:00
Karrz1 e100433dcf Merge pull request #153 from advocaite/karrz-stab-spell-cancel-uaf
Core/Spells: Fix use-after-free of m_originalCaster in Spell::cancel (#32047)
2026-10-27 19:27:23 +00:00
Karrz1 79e63d41c2 Merge pull request #152 from advocaite/karrz-client-70634
Classic 1.60.1.70634: auth support, and Realm.AlsoAcceptBuilds for older clients
2026-10-27 19:27:10 +00:00
Karrz1 2c85af52d8 Merge pull request #151 from advocaite/karrz-talented-rank
Talents: the Legacy perk Talented gives its extra talent points at every rank
2026-10-27 19:26:57 +00:00
Karrz1 3eb55a1ced Merge pull request #79 from einsz/forever-mining-veins
GameObjects: mining veins can be looted several times
2026-10-27 19:25:33 +00:00
Karrz1 fc9be45040 Merge pull request #130 from MShkolenko/forever-declined-names-surname
Packets: CMSG_SET_PLAYER_DECLINED_NAMES carries the surname cases in 1.60
2026-10-27 19:25:22 +00:00
Karrz1 029399264b Merge pull request #114 from dqhoang/fix/quest-objective-preserve-quest-items
HORDE QUEST: Traditions of the Bluff
2026-10-27 19:24:48 +00:00
Karrz1 af19939731 Talents: the Legacy perk Talented gives its extra talent points at every rank
GetClassicTalentedStartLevel read the amount of the Talented aura (1225474), which stays at the rank 1 value (9). With Talented 5/5 the client offered 6 talent points at level 10 (levels 5-10), the server counted 2, and Apply Changes failed with NotEnoughTalentsInPrimaryTree and only the error sound.

The start level now comes from the Legacy trait config: every entry granting Talented is read through its TraitDefinitionEffectPoints curve at its rank (the 5 rank node gives 9 to 5, the single rank nodes a fixed 9, 8, 7, 6 or 5) and the lowest level wins. Falls back to the aura amount when no entry grants it. The three NotEnoughTalentsInPrimaryTree returns of TraitMgr::ValidateConfig log the node, parent node or currency that refused the commit.

Found and first fixed by krakenunbound in advocaite/TrinityCore #150.
2026-10-27 18:07:44 +00:00
Karrz1 717efeabe0 Loot: a chest someone else opened first shows its remaining loot to the next player
A chest's loot is filled for its first opener only. A later player was never
added as a looter, so he saw an empty window even when items, or the quest
item he needed, were still inside (ground quest objects and treasure chests
sometimes gave nothing). GameObject::Use now adds the later opener as a looter.
2026-10-27 16:27:53 +00:00
Karrz1 df12238185 Classic 1.60.1.70634: auth support, and Realm.AlsoAcceptBuilds for older clients
Battle.net patched the WoW Forever game to 70532, 70630 (2026-10-26) and 70634
(2026-10-27, UI data only). Adds their build_info rows and moves realms 70-73
to 70634.

Realm.AlsoAcceptBuilds in bnetserver.conf lets a realm also list for and accept
other client builds with the same game data and protocol, so 70630, 70532 and
70450 clients can keep playing on a 70634 realm. Default empty: only the realm's
own build.
2026-10-27 16:10:02 +00:00