Commit graph

571 commits

Author SHA1 Message Date
Yaki Khadafi
257afbf540 [12211] Fix taxies
Original author: @Shauren

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:42:29 +00:00
Schmoozerd
9690f8d80d [12210] Improve ObjectMgr::GetGoBackTrigger to get back to a trigger that actually ports into the map that could not be entered 2020-02-16 20:42:28 +00:00
Schmoozerd
824aa5429e [12206] Let GetMapEntranceTrigger and GetGoBackTrigger work in a better defined order
Actually as this is still no total order (and it is basicly impossible to define a reasonable total order for areatrigger_teleport) it is not well defined, but probably good enough for all cases
2020-02-16 20:42:23 +00:00
Yaki Khadafi
8e84b0ff71 [12198] - Remove weapon skillgains, defense skill, thanks @FailzorD for original patch.
- Update dodge, parry, block to cata.
- Some mastery fixes and stylefixes.
- Remove some no longer used functions.

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:42:16 +00:00
cyberium
9022705faf [12195] Improve AreaTrigger teleport requirement checks
Implement AreaLockStatus concept by rsa

Also drop basicly unneeded `areatrigger_teleport`.required_failed_text field.
This concept is still in testing phase, please feedback results of some glitches that might exist!

TODO: Use Player::GetAreaLockStatus or GetAreaTriggerLockStatus for other "CanEnter" checks as well.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 20:42:13 +00:00
Yaki Khadafi
8726754f7a [12190] Remove no more existant lockpicking skill.
Implement archaeology lock

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:42:08 +00:00
zerg
b8b907c138 [12169] Fix some problems detected by static code analysis 2020-02-16 20:41:47 +00:00
Salja
6004b9f8b7 [12166] skip expansion races if not playing with expansion
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:41:44 +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
Yaki Khadafi
faec714783 [12136] Fix typos
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 20:41:14 +00:00
Shyax
61c7249770 [12132] Remove useless casting and use SIZEFMTD instead in strings. Close #6 2020-02-16 20:41:10 +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
Yaki Khadafi
6dd0ba1d14 [0169] Implemented vendors selling currencies.
Also fix crash from recent master merge.

Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 20:33:11 +00:00
Yaki Khadafi
3ceed0edfb [0159] Update quest system.
TODO:
- implement currency requirements/rewards
- skill rewards
- skill learned requirements.
- not show quests with RewSkill to players which do not have that skill

Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 20:16:01 +00:00
Yaki Khadafi
3153bd2129 [0146] Cleanup deprecated item mods and combat ratings
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 19:51:43 +00:00
Salja
d7b5567041 [0121] Some Typos
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 16:19:50 +00:00
Salja
73ec9c2ce4 [0114] Updated "item_template" Thanks Fabi Fix some DBC problems, some clean.
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 16:19:43 +00:00
Salja
e82f08f6f2 [0081] Implement server side spells
Add exemplarily support for spells 21387(used with Ragnaros) and 62388(related to Demonic Circle)
Further table columns can be added as required.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2020-02-16 11:54:54 +00:00
Yaki Khadafi
0b24dd2912 [0074] Fix spawnmask errors
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
2020-02-16 08:59:13 +00:00
LordPsyan
81787fa460 [0069] Better fix for spawnMask 1 in map 0 error. Thanks VladimirMangos for explaining how to specify map 0. 2020-02-16 08:29:46 +00:00
Surion
cc46cae74a [0056] Fix for creature spawnmask 1 warning in map 0. Map 0 was removed from DBC 2020-02-16 08:28:35 +00:00
Yaki Khadafi
00488d845c [0031] Improvements and typofixes
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 07:37:31 +00:00
Fabian
3b8fb556a7 [0028] Implented new phase/map/terrain swap system for cata. 2020-02-16 07:37:26 +00:00
Salja
0d7006dd23 [0023] Use DBC data to set the correct amount of hp and mana based on player level and class. Patch by Subv
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:54:23 +00:00
Salja
d8a2700179 Fix typo/crash on server startup Thanks Zakamurite
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:53:50 +00:00
Salja
5424aed420 Added Support for DB2 Reader. Thanks to all Authors
NOTE: extractor need fix/update.
      support for VC80/VC90
      cmake need update

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:25:24 +00:00
Salja
22bfaa12b0 Mage 400 INTO master/434
Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 01:59:51 +00:00
Schmoozerd
835d1c7479 [12069] Cleanup comment style 2012-07-22 14:39:31 +02:00
stfx
3707b04330 [12066] Optimize some parts for ++C 2012-07-21 17:15:11 +02:00
Schmoozerd
84080ee5d3 [12065] Fix various warnings 2012-07-20 21:17:04 +02:00
Schmoozerd
e32b9953a1 Cleanup Operator padding 2012-07-20 17:38:23 +02:00
Lillecarl
9141299127 [12063] Fix Typo in SpellTemplate storage checks 2012-07-19 23:04:33 +02:00
Schmoozerd
94795f2bff Various Cleanups (game N-O) 2012-07-19 21:51:08 +02:00
Xfurry
2a4b8f2cb0 [12061] Assert correct loading of GO_TYPE_CAPTURE_POINT
This will assert controlled behaviour when loading a `gameobject_template` entry of type Capture Point with bad data
Patch improved by stfx

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-19 21:37:31 +02:00
Schmoozerd
f24fa870c5 [12057] Add some static wrappers for Lookup access to SQLStorages 2012-07-19 01:14:02 +02:00
Schmoozerd
1c7e46a4a8 [12055] Add some defines for hard-coded field-indexes that need special convertion on SQL-Storage loading - Idea by Vladimir 2012-07-18 13:50:54 +02:00
stfx
754634fe42 [12054] Add grayard linking/ unlinking support 2012-07-18 01:32:23 +02:00
codels
a3faf136bc [12044] Add CONDITION_NOT (-3) to conditions system
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-15 16:56:16 +02:00
NeatElves
ffd060d400 [12007] Add new CONDITION_REPUTATION_RANK_MAX (30)
Rename old CONDITION_REPUTATION_RANK to CONDITION_REPUTATION_RANK_MIN

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-13 22:35:01 +02:00
Kid10
acc27152eb [12000] Implement server side spells
Add exemplarily support for spells 21387(used with Ragnaros) and 62388(related to Demonic Circle)
Further table columns can be added as required.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-12 23:16:56 +02:00
virusav
ab9b37bf3b [11982] Fix DB_STRICTED_CHECK output for gossip
This fixes to integrity check to report unused gossip_menu entries. Before only menus used by creatures with gossip_menu_items were reported

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-04 16:42:16 +02:00
stfx
f3f3349661 [11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Schmoozerd
7fd1f64319 [11971] Add wrapper HasAttribute to check if a spell has an attribute
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-21 02:02:34 +02:00
Schmoozerd
8c29893310 [11964] Implement new conditions system
Tree-like design idea by Faramir118, thanks for that!

* Add `conditions` table to store conditions.
* REPLACE current handling of conditions for the *_loot_template tables
  Convert the old conditions in *_loot_template to the new system by SQL-Queries
* ADD support for new conditions to gossip_menu and gossip_menu_option.
  If for these tables no condition_id (new system) is provided, the old conditions will still be used
* Add a small helper python script to contrib/convertConditions, see README there for details
* Add new command to reload the `conditions` table (.reload conditions)
* Add two Meta-Condition types CONDITION_AND (-1) and CONDITION_OR (-2) which are used as:
  value1 (as condition_entry) AND / OR value2 (as condition_entry)

  With these meta-conditions it is possible to create tree like and very complicated combined conditions (like HasAura && (HasItem || HasQuest))

NOTE about conversion:
For easier convertion all the old table data is still preserved, but will be removed eventually (within a circle of the moon approximately)
The python script will not create an optimal initial fill of the `conditions` table. You might want to tweak it manually or suggest some optimized algorithm :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-15 23:06:00 +02:00
Schmoozerd
8e0edc0383 [11940] Rewrite and cleanup DB Script Engine
* Moved actual script processing code to ScriptMgr
* Unifed and improved log output. Now table-name is passed to each script execution
* Added the "buddy concept" to all commands (except the outdated direct field change commands):
Now all commands support to search a creature (or go for some commands) in a radius, with which to do some stuff.
See doc/script_commands.txt for more details and information

Attention DB Devs:
Current DB-Scripts are converted automatically as far as possible, but some old target selecting mechanics were not reasonable to do automated.
For such cases the command is marked with data_flags & 0x10 (==16), which will throw DB-Errors to track them down faster

Thanks to NeatElves and especially Grz3s for testing!

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-06 22:04:30 +02:00
zergtmn
c6a751134c [11928] Some warning fixes 2012-02-16 20:32:17 +06:00
Schmoozerd
6aab5c1022 [11892] Really fix [11890]. This basicly reverts commit 11890
Remove the actually not required faction check in Player::GetNPCIfCanInteractWith - this is done by IsHostileTo a line before
Improve the Player-login AtWar selection to also consider forced reactions

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-31 00:16:21 +01:00
Schmoozerd
3e552fc739 [11890] Fix Player::GetNPCIfCanInteractWith to consider forced reactions
This will fix ie quest 9410 A Spirit Guide

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-27 00:20:14 +01:00
virusav
16b244373a [11877] Remove check for quest_template if QuestSort and SkillId match
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-01-16 18:27:01 +01:00