Commit Graph

4735 Commits

Author SHA1 Message Date
天鹿
55233dd17b feat(Core/Scripts): Optimize ServerScript (#18721)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update ServerScript.h
2024-04-12 10:54:35 -03:00
天鹿
8d20a25e96 feat(Core/Scripts): Optimize UnitScript (#18722)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update UnitScript.h
2024-04-12 10:54:20 -03:00
天鹿
83c4562f3d feat(Core/Scripts): Optimize WorldObjectScript (#18723)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update WorldObjectScript.h
2024-04-12 10:53:59 -03:00
天鹿
d162817d33 feat(Core/Scripts): Optimize WorldScript (#18724)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update WorldScript.h

* Update ScriptMgr.cpp
2024-04-12 10:53:42 -03:00
天鹿
130044fb01 feat(Core/Scripts): Optimize GlobalScript (#18712)
* Add files via upload

* Update GlobalScript.h
2024-04-12 10:53:26 -03:00
天鹿
f0a21100c5 feat(Core/Scripts): Optimize FormulaScript (#18710)
* Add files via upload

* Update FormulaScript.h
2024-04-12 10:53:08 -03:00
天鹿
bf4f9774c1 feat(Core/Scripts): Optimize DatabaseScript (#18709)
Add files via upload
2024-04-12 10:52:43 -03:00
天鹿
97fc546c4b refactor(Core/Scripts): Optimize Script (#18708)
* Add files via upload

* Update PlayerScript.h
2024-04-12 10:50:44 -03:00
Anton Popovichenko
3a6231cb65 fix(Core/Scripts): Fix build and crash when calling uninitialized scripts (#18718)
fix(Core/Scripts): Fix build and crash when calling uninitialized scripts.
2024-04-12 07:13:37 -03:00
天鹿
f05200fcca feat(Core/Scripts): Optimize AuctionHouseScript need#18672 (#18698)
Add files via upload
2024-04-11 17:10:02 -03:00
天鹿
33592f93cf feat(Core/Scripts): Optimize ArenaTeamScript need#18672 (#18699)
Add files via upload
2024-04-11 17:09:47 -03:00
天鹿
e28a432fa2 feat(Core/Scripts): Optimize ArenaScript need#18672 (#18700)
Add files via upload
2024-04-11 17:09:32 -03:00
天鹿
bcf1ffa9f5 feat(Core/Scripts): Optimize MovementHandlerScript need#18672 (#18701)
* Add files via upload

* Add files via upload
2024-04-11 17:09:17 -03:00
天鹿
83c4382c70 feat(Core/Scripts): Optimize AccountScript need#18672 (#18697)
Add files via upload
2024-04-11 17:09:02 -03:00
Anton Popovichenko
f792b0d708 feat(Core/Scripts): Optimize PlayerScripts by calling only overridden/implemented functions. (#18672)
* feat(Core/Scripts): Optimize PlayerScripts by calling only overridden/implemented functions.

* Fix codestyle.

* Fix typo

* PLAYERHOOK_END is not a hook

* Address code review feedback.

Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>

* Codestyle fixes

* Fix typo



Co-authored-by: PkllonG

---------

Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2024-04-11 17:08:30 -03:00
Anton Popovichenko
fd029f81aa fix(Scripts/Karazhan): Fix crash in chess event. (#18695)
Fix crash in chess event
2024-04-10 16:21:53 -03:00
Balleny
723596c673 fix(Scripts/TheEye): Kaelthas: Roar timer (#18677)
Roar timer
2024-04-10 19:37:01 +02:00
Dan
d52010f2fc fix(Scripts/TheEye): make Al'ar not get stuck during dive bomb when no enemies in melee range (#18693)
* initial

* Update boss_alar.cpp
2024-04-10 13:51:21 -03:00
Letic92
4199cb8ce0 (Scripts/Ahnkahet): Fixed problem gathering GUIDS from bosses. (#18689) 2024-04-09 16:09:55 -03:00
Dan
39b94880db fix(Scripts/Hyjal): make sure Jaina takes no damage from Death and Decay (#18680)
init
2024-04-07 20:32:28 -03:00
Dan
dcff70c935 fix(Scripts/TheEye): increase Void Reaver boundary so he does not reset when tanked against the wall (#18683)
* Update instance_the_eye.cpp

* increase range
2024-04-07 20:29:59 -03:00
Andrew
8ef8ddad24 fix(Scripts/TheEye): Fix Alar not using abilities if no target is in … (#18678)
fix(Scripts/TheEye): Fix Alar not using abilities if no target is in range
2024-04-06 19:14:55 +02:00
Johaine
3a93ae1af1 feat(Core/Optimization): Correctly document sendBuffer size and optimize it. (#18647)
* Fix comment documenting WorldSocket

The buffer is constructed with 4096 bytes but later resized in
WorldSocketThread::SocketAdded() according to the configuration
setting Network.OutUBuff (currently 65536 bytes)

* Reuse calculated packet size

Instead of recalculating the current packet size three times at
worst, calculate it once and reuse it when required.

* Reduce reserved buffer size per WorldSocket

Don't reserve 64kB of memory for every WorldSocket's output
buffer.

Instead, start with a 4kB baseline for every WorldSocket and grow
the buffer size dynamically when we have single packets that do
not fit the current buffer.
2024-04-06 10:22:32 -03:00
Johaine
c80ad3d779 fix(Scripts/TempleOfAhnQiraj): Fix Vem enrage (#18652)
Fix Vem enrage

Vem should enrage when it is the last bug alive
(Regression from last refactor)
2024-04-06 09:19:14 -03:00
BAUXA
146f5a64ad fix(Scripts/Commands): "go xyz" command crash (#18676)
go xyz fix crash
2024-04-06 09:16:54 -03:00
Walter Pagani
21e0803508 fix(Script/BlackTemple): Add override in EnterEvadeMode (#18673)
fix(Script/illidari_council.cpp). Add override to the method EnterEvadeMode
2024-04-05 12:54:40 -03:00
Anton Popovichenko
f7f1952f4b fix(Core/Player): Fix memory leak. (#18671) 2024-04-05 07:04:55 -03:00
Anton Popovichenko
1f640c9872 feat(Core/Optimization): Optimize build of units update object by leveraging cache (#18637)
* feat(Core/Optimization): Optimize build of units update object by leveraging cache.

* Remove whitespaces.

* Add alternative hooks to handle transmog and other similar things.

* Fix build on some compilers.

* Fix codestyle

* Fix build again.

* Take into account updateType.
2024-04-05 08:03:11 +02:00
sudlud
94df67b1c2 fix(Core/Battleground): correctly limit Eye of the Storm max points to 1600 (#18669)
- before the max points could exceed 1600 on winning which e.g.
  resulted in the achievement 'The Perfect Storm' not beeing
  triggered correctly
2024-04-04 18:29:34 -03:00
Gultask
94ea109858 fix(Scripts/BlackTemple): Illidan not accessing Akama's guid (#18665)
init
2024-04-03 21:30:41 +02:00
Gultask
dc7753b2b6 fix(Scripts/BlackTemple): Rewrite Shade of Akama (#18601)
* init

* akama

only generators left

* Update boss_shade_of_akama.cpp

* Update boss_shade_of_akama.cpp

* warnign

* OMFG

* akama generators

* more for generators

* done

* codestyle

* warnings

* illidan fix

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* Update rev_1711048056647652400.sql

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* a

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* Update instance_black_temple.cpp

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* Update rev_1711048056647652400.sql

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* avoid collecting trash

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* Update boss_illidan.cpp

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* Update boss_shade_of_akama.cpp

Co-Authored-By: 天鹿 <18535853+pklloveyou@users.noreply.github.com>

* crashfix?

* takes too long to despawn

* maybe

* clear lists

---------

Co-authored-by: 天鹿 <18535853+pklloveyou@users.noreply.github.com>
2024-04-02 22:08:51 +02:00
Anton Popovichenko
28a64111fd fix(Scripts/TheEye): Fix crash in Kaelthas. (#18653)
* fix(Scripts/TheEye): Fix crash in Kaelthas.

* Remove whitespace
2024-04-02 21:00:53 +02:00
Gultask
9b6e07ec2d fix(Scripts/TheEye): Lord Sanguinar's Bellowing Roar timer (#18651)
Update boss_kaelthas.cpp
2024-04-02 12:28:07 -03:00
Dan
1e52f715d0 fix(Scripts/TheEye): fix targetting logic in Void Reaver (#18646)
* initial

this works way better

* prettier
2024-04-01 15:56:55 -03:00
Anton Popovichenko
47f9d66874 feat(Core/Optimization): Create index for sSkillLineAbilityStore to speedup search by skillLine. (#18622)
* feat(Core/Optimization): Create index for sSkillLineAbilityStore to speedup search by skillLine.

* Remove whitespace.
2024-04-01 05:50:12 -03:00
Anton Popovichenko
aee2eefb92 feat(Core/Optimization): Reduce CPU consumption by allocating sendBuffer only when it is needed. (#18628)
* feat(Core/Optimization): Reduce CPU consumption by allocating the sendBuffer only when it is needed.

* Remove whitespaces.
2024-04-01 05:49:42 -03:00
Dan
102bf7c9c5 fix(Scripts/Hyjal): Shadowy Necromancers now use Unholy Frenzy + Skeleton mage abilities (#18640)
init
2024-03-31 13:59:27 -03:00
Dan
a62eef0dcf fix(DB/TheEye): make Thaladred walk (#18629)
* init

Co-Authored-By: amed80 <8395873+amed80@users.noreply.github.com>

* remove walk from script and walkspeed

---------

Co-authored-by: amed80 <8395873+amed80@users.noreply.github.com>
2024-03-30 19:18:09 -03:00
Dan
a870173558 fix(Scripts/BossAI): add optional variable to BossAI class to make sure the boss calls for help (#18630)
init
2024-03-30 11:31:41 -03:00
Anton Popovichenko
73340b94e3 feat(Core/Compression): Move packets compression from map to network thread (#18602)
* feat(Code/Compression): Move packets compression from map to network thread.

* Code style fix

* Remove unicode letter
2024-03-28 08:57:29 -03:00
Dan
02cf369fe2 fix(Scripts/Hyjal): Archimonde refactored (#18594)
* wip

* wippers

* more wip

* wip314

* some work

* lesgo

* summonlist fixed

* I need glasses

* open from draft PR

* some fixes

* unused
2024-03-26 22:37:00 -03:00
Elmsroth
b1cf830009 chore(PlayerScript/Hook) : Add CanSetTradeItem Hook in PlayerScript (#18583)
* chore(PlayerScript/Hook) : Add CanSetTradeItem Hook in PlayerScript

* Allowing non traded slots

* Fix typo and codestyle
2024-03-26 21:28:37 -03:00
silviu20092
5b8bc792b8 feat(core): account delete hook (#18605)
Add account delete hook
2024-03-26 20:57:42 -03:00
Dan
16f220253a fix(Scripts/SSC): make adds reset when one leaves the room (#18614)
* init

* Update boss_fathomlord_karathress.cpp
2024-03-26 18:23:29 -03:00
Dan
3ea02712d4 fix(Scripts/TheEye): make Void Reaver abilities ignore LOS (#18613)
* initial

* Update SpellInfoCorrections.cpp

* Update SpellInfoCorrections.cpp

* cast on nearby target on spellcastfail
2024-03-26 18:23:02 -03:00
chaosua
4e95c9e006 (Instance/Culling of Stratholme/Trial of Crusader) removed duplicated gossip_menus, fixed hardcoded texts (#18516)
* (Instance/Culling of Stratholme) removed duplicated gossip_menus, fixed hardcoded texts

* Update culling_of_stratholme.sql

* Update culling_of_stratholme.sql

* (Instance/TrialOfTheCrusader) fixed hardcoded text from Jaraxxus text line
boss_twin_valkyr: removed unnececarry random txt line select (already exist groupid 6 id 0 and 1 in creature_text)
added ruRU locale for Acidmaw and Dreadscale GroupID 2

* move sqls

* Update culling_of_stratholme.sql

* Update data/sql/updates/pending_db_world/culling_of_stratholme.sql

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>

* Update culling_of_stratholme.sql

* update naming of variables to better understand the sequence of events

* Change locale attribute to Locale

I'm not 100% sure, but since in Linux, uppercase and lowercase letters represent different values, I think that's why it doesn't pass the tests. In Windows nothing happens, but in Linux there are 2 different attributes.

* strange MySQL in Linux

* Update trial_of_crusader.sql

* updated sequence of txt lines with cityman before Malganis appear according to @Trinitycore enum RPEventLines2
combine all SQL in 1 file

---------

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Co-authored-by: Walter Pagani <paganiwalter@gmail.com>
2024-03-24 16:47:34 +01:00
Gultask
a7761597ba fix(Scripts/HyjalSummit): Frost Wyrms casting wrong spell (#18603)
lmaaaooo

Co-authored-by: Dan <83884799+elthehablo@users.noreply.github.com>
2024-03-22 21:42:42 +01:00
Gultask
58eb83c74e fix(Scripts/HyjalSummit): Don't reset trash counter on scheduled waves (#18604)
* Update instance_hyjal.cpp

* Update instance_hyjal.cpp
2024-03-22 17:39:12 -03:00
Andrew
79df83ec0c fix(Scripts/TheEye): Alar dont take 2% damage during dive bomb (#18599) 2024-03-21 16:27:51 -03:00
Dan
482f4c94ff fix(Scripts/TheEye): make sure schedules are cancelled when advisors die in p1 (#18592)
init
2024-03-21 06:21:53 -03:00