Commit Graph
8311 Commits
Author SHA1 Message Date
Karrz1 b28fcd5709 Spells: classic Backstab, Ambush, Garrote, Shred, Ravage and Pounce need you behind the target
The client tooltips say "Must be behind the target", but the server was never
told, so a druid could Shred (and a rogue Backstab) from the front. The trainer
ranks of Backstab, Ambush, Shred, Ravage and Pounce get the behind-target custom
attribute. Garrote gets a cast check instead, because Dirty Deeds removes its
positional requirement.
2026-11-14 12:51:08 +00:00
Karrz1 91fb7c8f74 Spells: Forever.VanillaAoE puts Consecration and Improved Blizzard back to vanilla
WoW Forever reworked both spells. Consecration ticks a small hit on every
enemy plus a bigger hit the text gives only to the first 4 (rank 1: 2 + 4 a
second, vanilla 8). Improved Blizzard chills 15 / 25 / 40% where vanilla
chilled 30 / 50 / 65%.

New worldserver.conf switch Forever.VanillaAoE, default 0 (the Forever
spells, nothing changes). With 1:
- Consecration: each tick hits every enemy in it for the vanilla tick
  (8 / 15 / 24 / 35 / 48, so 64 to 384 over 8 sec) with the same 0.042
  spell power a tick (about 33% over the 8 ticks). Mana is vanilla already.
- Improved Blizzard: the Chill takes the vanilla amount of the same rank.
- At startup the client gets the matching rows (tick values, the five
  Consecration mana rows, curve 83071), so tooltips show the vanilla numbers
  and a client with Blizzard's live cache stops showing 73 mana. The server's
  own spells are built before this and are not touched.

The numbers live in the pure header ClassicVanillaAoe.h, checked by
tests/game/ClassicVanillaAoe.cpp ([ClassicVanillaAoe]).
2026-11-14 09:36:59 +00:00
Karrz1 a688e13678 Wailing Caverns: the unfinished Naralex ritual can be started again after the Disciple respawns
After a wipe the respawned Disciple of Naralex had no gossip, so the ritual
could not be retried. His Reset now re-arms an unfinished ritual through the
instance's four fang bosses check. An escort in progress and a finished
Mutanus are left alone.

From buildthehomelab/wow-trinitycore-everlake, commit cf94ab010, by Bob (GPL-2.0). Thank you!
2026-11-14 09:36:57 +00:00
Karrz1 e5f91bdcbc Blackfathom Deeps: the shrine event stays open until the queued waves have spawned and died
The instance checked the event's end before it sent the queued waves, so a
long server tick could open the door while waves still had to spawn. The
end check now waits for every wave timer to run out.

From buildthehomelab/wow-trinitycore-everlake, commit 3ebaf3571, by Bob (GPL-2.0). Thank you!
2026-11-14 09:36:57 +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 5e8652bda3 Items: an item leaves its owner's save list for real, so a save never reads a deleted item
An item waiting for the next inventory save is kept in a list on its owner. When the item was marked unchanged, only its place was forgotten and the pointer stayed in the list; if the item was then changed again it was added a second time, and if it was deleted in between, the next save read a deleted item (a crash or a dropped player). The item now remembers whose list holds it, takes itself out of that list when it is marked unchanged or deleted, the save takes every item out before saving it, and a player clears the list before going away. The place is a uint32 instead of an int16.

Idea from SIN's fix pack for 0.1.36 (reported as players dropped during a quest turn-in); written again here. No case of ours is reproduced yet.
2026-11-14 08:10:10 +00:00
Karrz1 6428ea4255 Deadmines: the cannon starts the Iron Clad Door event again if it did not run
The cannon marked the door event as started even when the instance did not know the Iron Clad Door yet. Then no timer ran, Mr. Smite never called the alarm and the cannon could not start it again (Discord "bugs 4", 2026-11-13). Now the event only counts as started once the door is there, it is reset when Mr. Smite is missing, and it is marked done after the second alarm.

Idea from SIN's fix pack for 0.1.36; written again here.
2026-11-14 08:10:10 +00:00
Karrz1 a66d9a0424 Core and scripts: include what each file uses, so they build without precompiled headers
With USE_COREPCH/USE_SCRIPTPCH off, these files did not compile because the
precompiled header supplied Log.h, Util.h, Optional.h, Packet.h, Map.h,
Player.h, ObjectAccessor.h, WorldSession.h or SpellInfo.h for them. Include
lines only, no code change.
2026-11-13 23:30:40 +00:00
Karrz1 617264a89f Razorfen Downs: the gong unlocks again after each wave
The Tomb Fiends and Tomb Reavers used to count their own deaths into the gong
counter through their stock scripts. Those scripts became plain SmartAI
(world 2026_10_16_10), so after the first strike the counter never moved and
the gong stayed locked: no second wave, no Tuten'kash.

The instance script now keeps the creatures of each strike (8 Tomb Fiends,
4 Tomb Reavers, Tuten'kash, same spots as before) and unlocks the gong when the
last of them dies. A creature that leaves alive voids the wave, which can then
be struck again. Tuten'kash's death completes the event and is saved.

Reported with a fix by SIN, thanks.
2026-11-13 18:35:18 +00:00
Karrz1 7ee2ce5b61 Hoof-Shaped Foot Pedal: centaur model, Desolace-only speed and combat rule
Spell 1286814 (item 269902) has misc value 0 on its transform, so the
model never changed, and its 30% speed and combat interrupt applied in
every zone. The aura script now sets a Kolkar centaur model (also after
a mount or shapeshift ends), zeroes the speed outside Desolace and
recalculates it on zone change, and ends the form on entering combat
only outside Desolace. The EnteringCombat interrupt is taken off the
spell in LoadSpellInfoCorrections.

(cherry picked from commit 19025d91d76e23832baaa371372c3e6b1058f6f5)
2026-11-13 02:28:08 +00:00
Karrz1 f592b933da ZG Thekal: the trio logs an evade and a fall that waits on a standing partner
In zg_thekal 0136-1 the three fell within 3 s and Thekal never rose as
the tiger, and the worldserver log said nothing about it. Two new lines
in the scripts.classic log give the state of all three (alive, health,
lying or standing, in combat, threat list size, victim):
- when one of them evades, with the reason and phase;
- every 10 s while a fallen one still finds a partner standing.
2026-11-12 09:28:53 +00:00
Karrz1 bf00bce3a5 Talent procs: nine talent spells and buffs get their proc rows
Improved Hamstring, Improved Shield Bash, Improved Wing Clip and Improved
Concussive Shot fired on every hit at 100%, since the client data has no
class mask; they are bound to their one ability now and roll the talent
chance. Nature's Grace procs on non-periodic spell crits, Improved Enrage
on Enrage, and the shaman's Clearcasting and the Missile Barrage buff are
used up by the next spell they change. Rows written from the client spell
data.

(cherry picked from commit 29236f25a968cd47e303826bbd247c8733640f83)
2026-11-12 09:24:53 +00:00
Karrz1 6c21cf5491 Mage Arcane Blast stacks its buff again
Discord 2026-11-12, pennywhi: Arcane Blast does not stack, so Missile
Barrage never seems to proc.

The 70707 client Arcane Blast (400574 and ranks 1239696-1239700) has
only its damage effect. Its tooltip promises the stacking buff 400573
("% of Intellect as Spell Damage, Arcane Blast cost +100%, up to 4
stacks, lasts 18 s from time of initial application"), but nothing in
the core or the database cast it, so the buff never appeared.

A spell script now casts 400573 on the mage after each Arcane Blast,
and puts back the time left of the first stack, as the tooltip says.

Missile Barrage (400588) rolls on the Arcane Blast hit itself and did
not need the stacks; its proc is unchanged. Whether it procs in game is
not seen in a test yet (PC step 50).

(cherry picked from commit 3b76d898f48dbfa760e61fe6b4b4b15f5363e732)
2026-11-12 05:51:03 +00:00
MAXIMUS 51a8b165f3 Classic: Windfury Weapon procs, and 19 talent procs that fired on every hit
From PR #325 by MShkolenko. Windfury Weapon (439431) casts its rank spell for the enchant on the swinging weapon, and talents whose proc chance is an effect value scaled by rank roll that chance instead of the 100% of their aura options. The spells this core already scripts its own way keep those scripts.
2026-11-12 00:53:30 +00:00
Karrz1 9147d52adc Plagued Lands (2118): show the bear trap and credit the trap's owner
The trap from Tharnariun's Hope (object 109515) used model 1287, which the 1.60 client draws as an invisible trap, so
nothing showed on the ground. It now uses the red light 1308 the quest text speaks of.

A bear that walked into the trap was hit by the trap's own spell cast, so the bear script saw a GameObject caster, found
no player and stopped: no capture, no credit. It now takes the trap's owner, as VMaNGOS does, and ignores a bear that is
already caught.
2026-11-12 00:49:48 +00:00
Karrz1 447306c2e1 Camping: sit objective of The Great Outdoors, campfire search
The sit objective of The Great Outdoors counts the hidden quest 98289 or
the sit emote while resting. Sitting with the sit key or on a bench sent
neither, so it never counted. Complete 98289 for the criteria when the rest
starts, and start the rest when sitting on a bench by the fire.

The rest and its buffs looked at the nearest spell focus of any kind and
missed the campfire when a forge or anvil stood closer. Search for a
campfire focus the way a spell's focus requirement does.

(cherry picked from commit dda478bf626390eb8718f291613ab1848b6ddc9b)
2026-11-12 00:46:39 +00:00
Karrz1 17ccbf32d9 BWL Nefarian: the rogue call puts the rogues by Nefarian
Nefarian's class call has every rogue cast 23414 on itself, so the spell
script's caster was the rogue, not Nefarian: each rogue was teleported 5
yards from where it stood, facing a set direction, and so was every raider
the spell hit around it.

Only the rogue itself is moved now, to a random point 5 yards from
Nefarian, facing him, as the call is meant to work.

(cherry picked from commit ec094cc444abece6d9728032ed67752057e2b618)
2026-11-11 23:38:04 +00:00
Karrz1 f98e809c2c BWL Nefarian: the warlock call summons two infernals per warlock
Nefarian's class call has every warlock cast 23427 on itself, and the spell
hits everyone around its caster. The spell script summoned two Corrupted
Infernals for every unit it hit, so each raider standing beside a warlock
added two more: 25 infernals at the call in 1111b, 254 and 215 in 1111d.
Both 1111d wipes came at the warlock call (Nefarian at 81% and 92%), with
47 deaths to the infernals; the run without a warlock call killed him.

Only the warlock the call is cast on summons now, two per warlock.

(cherry picked from commit 9ceb63f507d3adaef2cbee4f4b6826c04cf87f65)
2026-11-11 23:38:04 +00:00
Karrz1 dfb2c8bce2 BWL Nefarian: players can attack him once he has landed
The classic script (a VMaNGOS port) never touches his unit flags: the VMaNGOS
template has none. A 12.x world DB row can carry an event summon's immune to
players / not attackable / not interactible flags, and nothing took them off.

bwl_nefarian 1111a: phase one was won in all three runs (Victor's drakonids
killed, no deaths in two runs). Then the order onto Nefarian was refused as an
invalid target (start_attack result 3), no raider ever had him as an enemy, the
raid did 0 damage to him, and he killed it with Shadow Flame, Cleave and his
swings (one run went on for 29 minutes).

When the landing ends, the flags are cleared (logged under scripts.classic
when any was set) and he fights as in VMaNGOS.

(cherry picked from commit 45a7a317bdb4fd6af71820ecf5fc6ebd5d67c0a7)
2026-11-11 23:38:04 +00:00
Karrz1 fe60c5db60 Drowned City and Krol'dok Stronghold playable; Excavation and Dalaran bosses from live data
The Drowned City (map 2970): instance, way in from Sunken Hollow and out, 137 spawns along the
walking route (on the navmesh), six boss fights, boss loot, quest drops, trash abilities.
Krol'dok Stronghold (map 3039): instance, way in from the Riverglades cave, the five bosses plus
Bossman Toof, placeholder trash (no live trash ids known yet), boss loot.
Excavation Site: Saltspine, Shadetooth and Relic Guardian cast their live spells.
City of Dalaran: live spell ids for the bosses, Shade of the Archmage model and health, Lyn's
health and level, Arcanic Enigma's level.

No sniffs exist for these: guessed values are marked INFERRED or PLACEHOLDER so sniff data can
replace them. Live spell and boss data from Efficient Games (https://efficient.games), licensed
under CC BY 4.0.

(cherry picked from commit afc79fdd4ade48ded456670f8720787ab1685131)
2026-11-11 23:38:03 +00:00
Karrz1 d84487bbba Commands: .aura self and .unaura self work on yourself whatever is targeted
In a macro the target no longer has to be cleared first, which stopped
the auto attack swing.

(cherry picked from commit 04d3873927c79cc64fadeab2abc8c9665860a313)
2026-11-11 23:37:58 +00:00
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 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 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 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
Karrz1 d276e6b43b Lazy Peons (quest 5441): credit the peon objective for the Classic quest (#53)
* Lazy Peons (5441): credit the peon objective for the Classic
quest

Reason: using the Foreman's Blackjack on a sleeping Lazy Peon does not add +1 to quest 5441 (Lazy Peons).

Why: the credit is given by npc_lazy_peon, which had two gaps for the Classic data. The Lazy Peon (10556) has no ScriptName, so the script never runs, and the script only gives credit while the retail quest 37446 is incomplete, not the Classic quest 5441.

Fix: bind npc_lazy_peon to creature 10556 and accept either quest being incomplete.

* Lazy Peons (5441): add the ScriptName SQL missing from the previous commit

The previous commit only carried the C++ change. This adds the update that binds npc_lazy_peon to creature 10556.
2026-10-14 22:03:54 +08:00
Advocaite 33d31c8ff9 Classic 1.60.1.70374: class changes of the new client data
Aura types 674 (armor buffs and debuffs: Mark of the Wild, Devotion Aura, Sunder Armor, Faerie Fire, Expose Armor, Curse of Recklessness) and 673 (Thick Hide, armor from items %) are handled as Mod Resistance / Mod Base Resistance %.
New and reworked talents: Lingering Rage (rage decay delayed 2-10 sec after combat), Gore Drinker (Enrage, Berserker Rage, Bloodrage, Death Wish and Bloodthirst make the next 4 melee attacks heal 0.5/1% of max health), Dual Wield Specialization (off-hand attacks generate 10-50% more rage), Furor (Cat Form restores saved energy plus energy per second outside Cat Form; bear forms forfeit it).
Fishing: removed a no-op line (C4551).
2026-10-14 16:05:29 +08:00
Advocaite f5ea2bef8d Classic 1.60: Tauren racial Cultivation
Cultivation (20552) starts Cultivate (1312643) on the nearest herb within 5 yd; it grows a duplicate herb on the same spot for the caster (same model and loot, lock 4522 = key spell 1312650, gathered without Herbalism skill), as in the official sniffs. Duplicates for all 47 spawned herb types (official twins 657382 / 657454, the others copied). A herb can be cultivated again after 15 minutes; the duplicate lasts 5 minutes.
2026-10-14 12:47:45 +08:00
AdvocaiteandKarrz1 669c8de4ec Core: stale trades, BG port ticket slot, vanilla mount rules and other fixes (#49)
- Trade: a trade request while a stale trade is still held cancels the old
  one instead of being ignored (no more "busy" until relog); Player::Update
  cancels a trade whose partner left the world, left the trade or went out
  of trade range
- Battlegrounds: an accept with a wrong ticket slot is pointed at the queue
  the player was really invited from; a leave with an unknown slot removes
  the player from all of his queues
- Battlegrounds: the invited counter never wraps below zero
- Vanilla mount rules (Classic.MountIndoorsRules, default 1): no mounting
  indoors, none in the Warsong Gulch start rooms while the doors are closed,
  walking indoors dismounts; battlegrounds use the client's WMO group test
- Group: initialize the ping restriction
- WorldSession: with Load.Locales = 0 the session DB locale is enUS
- Player: stored aura teleport locations are marked unchanged after save
- Player: no empty battleground data row is written (REPLACE when there is
  data, DELETE otherwise) and empty PvP talent rows are skipped
- Channel: invite and broadcasts skip the ignore check for a player
  without a social list (mid logout)
- Control zones: no uint32 underflow in the capture time slope, superiority
  above maxSuperiority is capped
- .revive: a dead GM with a living target selected revives himself
- Terrain: mmap tiles that failed to load are not retried, a broken vmap
  tile is reported once
- MSVC: /FS with /MP against C1041 parallel PDB errors

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 19:38:26 +08:00
AdvocaiteandKarrz1 cc6fa1d162 Instances: bind assert, group ownership, raid info refresh, boss adds respawn with the boss (#47)
- InstanceLockMgr: a player without a lock confirming a pending bind before the
  instance's shared data has an id (e.g. a GM entered first) no longer asserts;
  the first saved lock names the instance
- MapManager: a group entering an instance map with no owning group becomes its
  owner, so a re-formed raid is not ported out by CheckInstanceValidity
- Map: send raid info after a boss kill / new lock so the Classic raid panel
  refreshes
- Scripts: boss adds killed during a failed attempt respawn when the boss resets
  (Molten Core packs, Faerlina, Sartura)

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 19:05:04 +08:00
AdvocaiteandKarrz1 12231aa7e7 Battlegrounds: classic AB/WSG/AV gates, banners and flag stands stay removed (#45)
- The classic battleground groups that start spawned (WSG flag stands and
  ghost gates, AB neutral banners and ghost gates, the AV event groups of
  the initial state) were non-manual spawn groups without conditions: after
  SpawnGroupDespawn or SetSpawnGroupInactive, Map::UpdateSpawnGroupConditions
  switched them on again at the next respawn check, so ghost gates, the
  neutral AB banner, the carried flag's stand and replaced AV states came
  back mid-match.
- These groups are manual spawn groups now (2026_10_13_10); the classic
  scripts spawn them in OnInit (AV: the event state set up in the
  constructor).
- The AB/WSG start doors are despawned 3 s after opening, so a player who
  joins a running match does not get a closed gate.

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 18:59:10 +08:00
AdvocaiteandKarrz1 44bfd27131 AuctionHouseBot: buyer rules, vanilla item filter, .ahbot commands, stack price fix (#41)
- Buyer rules (AuctionHouseBotBuyerPolicy), all off by default: buy stackable
  listings whole (Buyer.Stacks), price cap (Buyer.MaxPriceMultiplier), per-listing
  buy delay (Buyer.MinDelay/MaxDelay), daily gold budget and hourly buy limit,
  fair-price roll (Buyer.FairPricing, Buyer.FairMinChance)
- Vanilla item filter for the seller (AuctionHouseBot.Vanilla.Only, MaxReqLevel,
  MaxItemLevel), off by default
- Optional named seller characters on the ahbot account (AuctionHouseBot.Sellers.Count),
  off by default
- Seller: a stackable listing stores its price per item, not the whole stack's price
- Buyer: a bought stack pays the total of the listing
- Buying a stackable listing by auction id buys the whole listing at its total price
  instead of answering item not found
- New commands: .ahbot refresh, .ahbot add [n], .ahbot stats

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 18:13:47 +08:00
AdvocaiteandKarrz1 1f58fe794d Battlegrounds: queue time, join errors, match state on leave, WSG carrier icon (#36)
- Queued status: the wait time is computed from the player's join time in unix seconds
  (the ticket time); it was read as a millisecond tick and the client showed a wrapped
  'Time In Queue'. Every queued status sends the player's ticket time.
- Join: a missing battleground template or level bracket, and a rejected group queue, say
  why in chat instead of the window closing silently.
- Leaving a battleground sends PVPMatchSetState Inactive, so the client leaves its PvP
  match state (chat box and addon environment stayed broken).
- A failed exit teleport is logged; leaving a queue whose instance is gone no longer
  dereferences a null battleground in the log line.
- Classic WSG registers the flag carrier for the map icon (the classic carrier spells have
  no position aura in this client's data); one position entry per player, sent at once.

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 17:35:13 +08:00
AdvocaiteandKarrz1 27169126f8 Scripts: no double effects with the Classic instance ports, and null checks in proc scripts (#32)
- Razorgore egg spell, Four Horsemen mark and Gluth Decimate are bound to the
  TrinityCore scripts and also handled by the Classic port of their instance
  (classic_instance_*); the TrinityCore script now stays out of a Classic
  port instance, so the effect is applied once.
- Null checks for missing DamageInfo / HealInfo / caster / unit in Vampiric
  Embrace, Holy 10.1 4pc, Soulmonger, Alchemist Stone and Binding Shot (each
  crashed the server when the event had no such data).
- Player: the stored aura location DELETE now binds the spell id (the
  statement is WHERE Guid = ? AND Spell = ?), so removed locations are deleted
  and the save no longer hits duplicate keys.

Co-authored-by: Karrz1 <[email protected]>
2026-10-13 17:34:05 +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 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 440d365e79 Classic 1.60: vanilla audit fixes, talents, dungeon encounters, Seal of Fury, stealth fix
Combat and levelling (vanilla 1.12 unless the 1.60 client changed it)
- Level cap 60, vanilla XP (gray level, zero difference, base gain, elite x2 / x2.5 in dungeons),
  Forever +20% dungeon kill XP, group XP per player, vanilla quest XP reduction and quest money
- Vanilla creature stats (creature_classic_classlevelstats / creature_classic_stats), pet stats
- Spell hit table, binary spell resists, heal crit 150%, armor cap 75%, no innate hit, no GCD haste,
  spell level penalty on coefficients, classic diminishing returns groups (15 s reset)
- Ammo DPS, ranged procs, enchant damage, vanilla gathering and fishing skill-ups, fishing catch
- Auction deposit per house, mail delay with items, pet happiness and attack times

Client data
- UnitData VisFlags / AnimTier order swapped for Classic (fixes stealth checks: Ravage, Pounce)
- Combo target update field

Talents and spells
- 61 talents from the 1.60 trait trees (warrior, rogue, hunter, mage, shaman, priest, paladin,
  warlock, druid), Forever changes from tooltips
- Consecration ticks like the official sniff, Seal of Fury + Light of Fury absorb + Judgement of
  Fury taunt/threat, Tiger's Fury +15% physical, Vampiric Embrace

Dungeons and battlegrounds
- Encounter tracker for the vanilla 5-player dungeons, Ragefire Chasm, Stockade and Ruins of
  Lordaeron instance scripts
- SMSG_ENCOUNTER_START / SMSG_ENCOUNTER_END sent (layout from the official sniff)
- Classic WSG / AB, marks of honor, battleground end script runs once per battle (AV honor)

World data (sql/custom 2026_10_11_07..43): graveyard factions, event pools, proc rates, kill
reputation, formations, exploration, loot / vendor conditions, guard POIs, mail loot, quest items,
summoned creature AI, demon spells, talent and spell script bindings
2026-10-11 20:24:44 +08:00
Advocaite f8712a6ad2 Classic 1.60: Ruins of Lordaeron dungeon, Legacy perks, dwarf start, 70338 game rules
- Ruins of Lordaeron (map 2999): instance, portal area triggers, graveyard, sniffed spawns with patrols,
  statue waves / The Abandoned, Rath'mael's rising ghouls, door banshee, gargoyle wake, boss lines,
  Wowhead loot pools for 28 creatures, quest fixes (shared quests, quest start drops, chest loot)
- Legacy perks (trees 1187-1189): Thrill of Adventure, Bartering, Frequent Flier, Well Rested,
  Working Overtime, Master Chef, Talented, Reagent Economy, The Quick and the Dead, Gourmand, Permanence,
  Luremaster, Bountiful Harvest, Performance Bonus, For Great Honor, Field Medicine, Dedicated Study,
  High Alert (not in battlegrounds); Reinforce durability loss fixed
- Dwarf shaman start: Call of Earth chain shaman only, pendant drop, Earth Sapta; Coldridge mortar team
- Item effects from tooltips (Gnarled Necromancer's Staff), zone-limited equip spells re-applied
- Game rules 251-253 of the 70338 client (group finder assert / crash)
- Sniff imports regenerated (Coldridge Valley and Ruins of Lordaeron sniffs)
2026-10-11 06:10:22 +08:00
Advocaite fb04ef10ab Use the extracted DBC locale when DBC.Locale was not extracted (non-English clients); armory export uses the server DBC locale 2026-10-10 20:51:55 +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
Mizuka c0f272439b Merge branch 'forever' of https://github.com/julienguillot77/TrinityCore into forever 2026-10-09 10:28:27 +09:00
Advocaite 1a0a7de1ee Classic 1.60.1.70291 client support, launcher auto-login endpoints
Client 1.60.1.70291 (official beta sniffs + client RE, 2026-10-09):
- Opcodes: a message group was inserted before the connection groups. Server
  groups are one higher, client messages only moved the connection group
  (0x45 -> 0x46), and the main server group got one more message between
  70245 index 0x93 and 0xAD (Classic.MainGroupInsertIndex, default 0x93).
  Classic.OpcodeGroupShift picks the numbering from the realm build.
- Update fields: UnitData has a new owner-only list after the float before
  CurrentAreaID (create: uint32 count; update: changes-mask bit 140, every
  later bit one higher, plus one flag bit after the mask blocks);
  DiscordPlayerInfo has a packed guid before the access token.
- The bnet account object (type 18, retail housing storage) is no longer sent:
  70291 dropped its reader and the object misaligned the login update.
- "No state animation" id is 1880 for 70291 (14 new animations; 1866 made the
  client assert in AnimKit.cpp).
- Character create: the client asks for the last played character with content
  set filter -1 and waits for a realm entry; answer with this realm.
- auth: build_info and realmlist gamebuild for 70291.
- world: quest 99144 Seeking Refuge POI from the official 70291 beta.

Also:
- WorldSocket: wait Network.EnterEncryptedModeDelay (1500 ms) before
  ENTER_ENCRYPTED_MODE so the launcher can patch the key store first.
- bnetserver: /bnetserver/launcher/remember|login|forget for launcher
  auto-login (auth table battlenet_launcher_tokens).
- chat_log: the Discord channel is logged as a system channel.
- worldserver.conf.dist: DBErrors.log is truncated at startup (w).
2026-10-09 08:46:14 +08:00
Mizuka df4f0bd5e4 .reload command for locales was not working properly, data was still the same because the cache were not reloaded entierly. 2026-10-09 09:08:06 +09:00
Advocaite 1b46f1e8dc Classic 1.60: Read Ley Line at a ley line, undead quest Discipline
Read Ley Line near a Ley Line (spell focus 2246) also gives the 15 min Energized, as on the official server; Motivated on a Tirisfal Deathguard credits Discipline (99134).
2026-10-08 18:14:02 +08:00