Commit graph

5550 commits

Author SHA1 Message Date
stfx
328a349a23 [12157] Merge Player::CanUseOutdoorCapturePoint into Player::CanUseCapturePoint 2020-02-16 20:41:35 +00:00
stfx
97f6703301 [12156] Improve BG - Eye of the Storm
* Use generic capture point code
* Fix sending netherstorm flag carrier state
* Update score only on resource tick
* Fix world state dummies
* Rather big cleanup
2020-02-16 20:41:33 +00:00
stfx
012c2ef51b [12155] Prevent saving/loading/init capture points in instances
Reason for this are:
1) We don't want them saved/loaded between bg games
2) Saving cp slider is done by go id and would not work for instances
3) There are visual-only capture points in bg (eots)
4) It would be possible to only enable the capture points on bg start

TODO: Move this to OutdoorPvP base class
2020-02-16 20:41:33 +00:00
stfx
522ccf02ae [12154] Add HandleEvent and HandleGameObjectCreate to battleground class 2020-02-16 20:41:32 +00:00
stfx
c8814791e1 [12153] Remove unneeded InBattleGround() as it is already checked by GetBattleGround()
Also call OutdoorPvP handlers before instance script ones
2020-02-16 20:41:31 +00:00
stfx
a53ac2aca7 [12152] Remove unused argument from OutdoorPvP::HandlePlayerKillInsideArea 2020-02-16 20:41:30 +00:00
Yaki Khadafi
f2cf0bcd19 [12151] Init currency week limits on new currency recieved
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:29 +00:00
Yaki Khadafi
8e5d609e1e [12150] Drop arena point distribution, implement currency week count reset.
- Fix missing currency load.
- Some cleanup.

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:28 +00:00
Schmoozerd
7177f4cc07 [12149] Add some placeholders for missing target types 2020-02-16 20:41:26 +00:00
stfx
e0043ecc56 [12148] Improve BattleGroundAB::IsAllNodesControlledByTeam 2020-02-16 20:41:26 +00:00
stfx
caa36a0219 [12147] Fix a bg achievement due to a missing change of [12067]
Note: This is what override correctness is used for :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:25 +00:00
Schmoozerd
705f716cb1 [12146] Implement spell 30769 2020-02-16 20:41:24 +00:00
Schmoozerd
c8ebd1678e [12145] Add new condition CONDITION_COMPLETED_ENCOUNTER
This condition returns true if a DungeonEncounter is done in this map.

value1, value2 are expected to be the IDs from DungeonEncounter(dbc)
value2 is optional, if both values are given, the condition will be true if one of the two DungeonEncounters are done.

Thanks to crackm for testing
2020-02-16 20:41:23 +00:00
Schmoozerd
d387c20dad [12144] Change behaviour of text selection for gossip menus
This way the behaviour will be well defined in case multiple conditions match.
Now the text with the highest condition-id will be taken.
2020-02-16 20:41:22 +00:00
Yaki Khadafi
796068fc13 [12143] Fix extendedCost
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:21 +00:00
Salja
0c8d8c67d8 [12142] Fix Typo
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:41:20 +00:00
Yaki Khadafi
b4d7780f46 [12140] Basic curency support. Based on @Supabad, @Shocker, @Shauren work.
TODO: reward/take currencies from quests, take currencies with extended cost, reset currencies week count.

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:19 +00:00
Salja
d8eb7327a1 [12140] Added NumTalentsAtLevel and TalentTreePrimarySpells DBCLoad Support. Thanks Trinity
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:41:18 +00:00
Yaki Khadafi
fe066cf94a [12139] Fix char save
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:17 +00:00
Yaki Khadafi
d1afa9743e [12138] Remove unused currencytoken and keyring player slots, remove support for no longer existant player currency and honor fields
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:16 +00:00
Yaki Khadafi
e5c63db259 [12137] Fix VC11 project
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:14 +00:00
Yaki Khadafi
faec714783 [12136] Fix typos
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:14 +00:00
Salja
05b6f3072b [12135] Fix SQL Problems
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:41:13 +00:00
Salja
dc47c070b3 [12134] Fix Build from Backport.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:41:11 +00:00
Reamer
95b908d820 [12133] Add a missing break 2020-02-16 20:41:11 +00:00
Shyax
61c7249770 [12132] Remove useless casting and use SIZEFMTD instead in strings. Close #6 2020-02-16 20:41:10 +00:00
Schmoozerd
ecdb00bd0d [12131] Improve support for game/ subdirectories
* Add game directory to AdditionalIncludes (VC90)
* Add game directory to AdditionalIncludes (VC100)
* Simplify #include macros for subdirectories

Thanks to Shyax, LordJZ and Zergtmn for testing cmake
2020-02-16 20:41:09 +00:00
Shyax
5d2dda2e2c [12130] Fix more warnings. close #5
* Remove warning: format '<format>' expects type '<type1>', but argument has type 'size_t'
* Remove warning: statement has no effect

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:07 +00:00
Schmoozerd
23c0c6ab3a [12129] Improve a little thing from last commit. Thanks to Reamer for pointing 2020-02-16 20:41:06 +00:00
Shyax
6e76dbae3f [12128] Fix more warnings - close #4
* Remove warning: enumeration value '<value>' not handled in switch
* Remove warning: enumeral and non-enumeral type in conditional expression
* Remove warning: too many arguments for format

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:05 +00:00
Schmoozerd
1707edbcfd [12127] Add wrapper to access spell locations
* Add SpellCastTargets::getSource to get the source position (for TARGET_FLAG_SOURCE_LOCATION)
* Add SpellCastTargets::getDestination to get the destination position (for TARGET_FLAG_DEST_LOCATION)
2020-02-16 20:41:04 +00:00
Reamer
147a1b04fe [12126] Implement SPELL_EFFECT_KNOCKBACK_FROM_POSITION (144)
Also fix a missing break in db-script engine

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:03 +00:00
evil-at-wow
6fa6eb24a5 [12125] Fix some warnings
* Fix compiler warnings "warning: no newline at end of file" (Linux/GCC).
* Fix compiler warnings "warning: '<class>::<member>' will be initialized after <class>::<member>" (Linux/GCC).
* Fix compiler warnings "warning: unused parameter '<param>'" (Linux/GCC).
* Fix a signed/unsigned warning

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:41:02 +00:00
Schmoozerd
02ce53b7dd [12124] Improve error output for Pets without proper faction
Also fix typo in EventAi doc, thanks to stfx for pointing
2020-02-16 20:41:00 +00:00
rsa
de95d1d480 [12123] Move BattleGround code to separate BattleGround directory. Also some corrects to unload BG's 2020-02-16 20:40:57 +00:00
X-Savior
19cae15ea0 [12122] Improve EventAI documentation file 2020-02-16 20:40:54 +00:00
cyberium
5214147ace [12121] Implement some server side summons spells
Add spells: 34810, 34817, 34818, 34819, 35153, 35904, 35905, 35906

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:40:53 +00:00
cyberium
2b1842dfb0 [12120] Add support for server-side npc summon spells
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:40:52 +00:00
Salja
393a735d6d [12119] Fix Typo in mangos.sql
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:40:51 +00:00
Salja
4867ff720e [12118] 1 Opcode Thanks FailZorD
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:40:51 +00:00
Salja
93e2fab022 [12117] Revert "[12115] One OPCode"
This reverts commit b83c6b32f970022c30f1175ffe2244f11cf94571.
2020-02-16 20:40:50 +00:00
Salja
edcf053556 [12116] Revert "[12115] One OPCode"
This reverts commit 8d7e9ed4ece06f39db6b6fdc18cda9486191c09b.
2020-02-16 20:40:49 +00:00
FailZorD
864f1421b8 [12115] One OPCode 2020-02-16 20:40:48 +00:00
Salja
a23fc9d75e [12114] Some Opcodes.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:40:46 +00:00
Salja
0f9fb8d40e [12113] Update git_id.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:40:45 +00:00
Salja
b60bc4a34b [12112] MaNGOS switch Support to Patch 4.3.4 Build 15595
NOTE:
 *Still under Developement
 *Need new Config Files
 *Reextract "dbcs, maps, vmaps, mmaps"

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:39:20 +00:00
Yaki Khadafi
2f0f10a764 [0187] Add sample instancelock link
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 20:37:01 +00:00
Yaki Khadafi
535f86e71f [0186] Update group opcodes
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 20:37:00 +00:00
Salja
e27d8ce9ae [0185] Fix Typo/Crash Thanks Sar777 for fixing.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:36:59 +00:00
Salja
320e38b25b [0184] Fix ScriptDev2 Build under Windows.
NOTE:
 *ByteBuffer.cpp/.h need Sync with mangos/master and Update some for 4.3.4

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:36:05 +00:00