Commit graph

6492 commits

Author SHA1 Message Date
Schmoozerd
516283e28c [11967] Fix mangos.sql. Thanks to NicolasQuasar for pointing. Fix issue #45 2012-04-18 17:34:02 +02:00
Schmoozerd
675c8c41cf [11966] Replace an ASSERT to prevent unnecessairy crashes
GetAngle can be called for self from very many places, not only DB-errors, hence adding the assert is too strong in the moment

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-16 20:41:49 +02:00
Schmoozerd
f817a939e2 [11965] Tweak comment about default config values 2012-04-15 23:35:58 +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
f3b5e1e4bc [11963] Add additional check for game_events, invalid occurence
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-15 11:55:28 +02:00
Schmoozerd
110c16de13 [11962] Add support for Creature List of Entry in Range grid searcher
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-15 02:18:38 +02:00
Schmoozerd
254a35d6a1 [11961] Fix logic bug in 11954. Should fix most spells of issue #44 2012-04-14 11:56:38 +02:00
PSZ
ff6bec96ae [11960] Implement custom overwrite for range of some spell effects
Original idea and improved design for this by PSZ, who also implemented spells 66881 (with diffmodes)
Original patch for spells 28241, 54363 by Azerus
Also fix spell 24811

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-14 00:50:21 +02:00
stfx
067942a978 [11959] Implement spell effect 131 - SPELL_EFFECT_PLAY_SOUND
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-13 18:43:40 +02:00
stfx
9fd41d0508 [11958] Add support for no-fly-zone text message
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-13 18:16:31 +02:00
Schmoozerd
f48a6778ce [11957] Aura 10848 should not cause UNIT_AURAFLAG_ALIVE_INVISIBLE
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-13 17:31:11 +02:00
przemratajczak
bf7e46a7f8 [11956] Implement spells 28374, 54426 and 71123 (Decimate)
Thanks to piroy1337 for version of ICC Decimate,
thanks to ZuSe for bumping the issue of missing implementation

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-13 01:00:38 +02:00
machiavelli
af6b589041 [11955] Remove .hover command
You can use .cast 11010 and .unaura 11010 instead

Thanks to stfx for improving patch and porting it for us :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 23:10:43 +02:00
Reamer
b6f6c670ac [11954] Do not calculate targets for different effects with same targeting multiple times
Some effects or target-combinations might need exception from the generic rule that calculated targets from one effect are used by other effects with same targets.
This will fix bugs that different random targets for different effects are selected, even when they should be the same.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 22:54:53 +02:00
Schmoozerd
1ab35e53d9 [11953] Add missing nightelf player-create spell 21009 for druid and DK
Thanks to crackm for providing data

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 22:20:07 +02:00
stfx
a66a40dc99 [11952] Add support to send the anim for SMSG_TAMEOBJECT_CUSTOM_ANIM
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 21:53:24 +02:00
stfx
f153193a02 [11951] Unify loot related code and fix engrish.
Also readd the m_groupLootId check in case the StopGroupLoot will be called from other places

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 17:16:37 +02:00
michalpolko
1c5f99f4b8 [11950] Implement spell 27819, thanks to stfx for research
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-12 16:26:57 +02:00
stfx
e79b80727d [11949] Check group id of group loot timer when timer is started. Close pull request #39
Also fix a small possible bug with loot shared to players at similar position on a different map

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-11 22:58:51 +02:00
Schmoozerd
31e46daaf8 [11948] Check achievement related dbc data
This will fixed a few crashs for criterias without referred achievements

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-11 21:55:42 +02:00
Xfurry
ea08f7c5d7 [11947] Improve SCRIPT_COMMAND_MOVE_TO
This changes the handling of SCRIPT_COMMAND_MOVE_TO, to not expect some travel-time, but directly provide the speed for the movement (*100).

Attention to DB-Devs, please check your MOVE_TO scripts.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-10 23:44:17 +02:00
Schmoozerd
78b0ffe4eb [11946] Add commits for death in statistics, fix some engrish
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-10 20:08:08 +02:00
Schmoozerd
43dd16ff60 [11945] Fix a bunch of counter achievements. Some still require more work
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-10 19:55:02 +02:00
stfx
f09fa8d245 [11944] Some whitespace cleanup in SpellAuras (around Shape-Shifting)
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-09 13:39:25 +02:00
Schmoozerd
b828d003bc [11943] Fix non-pch compile, thanks to NeatElves for pointing 2012-04-07 12:27:03 +02:00
Schmoozerd
a42a55da84 [11942] Add option to NearestCreatureEntryWithLiveState.. GridSearcher to be able to also search for both alive and corpse creatures 2012-04-07 00:00:21 +02:00
Xfurry
fcbde94267 [11941] Implement effects for spells 27687, 27695
also fix another type in extractor-binary script (thanks again nighoo)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-06 23:51:21 +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
Schmoozerd
fe3f4a43ee [11939] Make binary_extracting scripts compatible to bourne shell. Thanks to nighoo for pointing
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-06 19:36:41 +02:00
Schmoozerd
95ce0c927c [11938] Replace use of HashMapFolder.Find<Player> with ObjectAccessor::FindPlayer wrapper 2012-04-02 14:32:29 +02:00
Schmoozerd
feb139de71 [11937] Add a bunch of unMaxTargets spell target limits from R2-fork.
Authors for these fixes: mns, michalpolko, PSZ, fallenangelX, rsa, mosst, przemratajczak, reamer
And hopefully no forgotten!

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-02 14:30:47 +02:00
Nighoo
c0eca52371 [11936] Add git_id (*nix version) to .gitignore
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-31 03:38:53 +02:00
MacWarriors
05c774a0ad [11935] Check display Id for .modify morph command
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 22:50:04 +02:00
Xfurry
3798f549e6 [11934] Implement spell 37125 periodic trigger code.
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 21:58:45 +02:00
Reamer
fdfc6dece6 [11933] Show Combat log entries for heals from NPCs
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 21:45:50 +02:00
Klark20
a2b6888d84 [11932] Fix spell of Orb of Translocation, spells 25140 29128
Signed-off-by: Klark20 <klark20@online.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 21:30:08 +02:00
Den
212cbe5177 [11931] Remove some obsolete defines
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-29 20:50:04 +02:00
Schmoozerd
af47f39a4e [11930] Fix Pet behaviour for environmental damage
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-03-28 22:16:47 +02:00
faramir118
a8c5ba581c [11929] Fix build on VC90, 64bit 2012-03-28 18:18:07 +02:00
zergtmn
c6a751134c [11928] Some warning fixes 2012-02-16 20:32:17 +06:00
Sergey
7c827733f5 Update src/game/vmap/MapTree.cpp 2012-02-15 12:30:41 +06:00
Sergey
ec4c59ef78 Update src/game/QuestHandler.cpp 2012-02-10 11:58:40 +06:00
Sergey
340aed4829 Update src/game/WorldSession.h 2012-02-10 11:57:58 +06:00
Schmoozerd
443050ffa1 [11927] Fix typo, also use shiny wrapper for ObjectGuid.GetString. Thanks to tyrnon for pointing 2012-02-09 00:40:34 +01:00
Schmoozerd
e9140ec82b [11926] Let Waypoints fly. Thanks to qsa for the idea
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-02-09 00:12:44 +01:00
Schmoozerd
b899f97e33 [11925] Improve interaction checks related to quests
'I see dead people, they are everywhere' - and now you can interact with them for quests.
Also fix aura 10848

Please report any missing issues (could not test all cases)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-02-08 23:14:42 +01:00
SilverIce
8c912d0ab3 [11924] fix MoveMapGen vc90 build problems (add missing project dependencies) thx Thermaltake 2012-02-07 23:59:59 +02:00
SilverIce
02b89c794c [11923] simplify HandleMmapTestArea code a bit 2012-02-07 22:50:52 +02:00
Schmoozerd
49bd484a41 [11922] Add ASSERT helper function to print entry and guid info
Use this in first cases: GetAngle and in PathFinder::BuildPolyPath

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-02-07 17:25:46 +01:00
Schmoozerd
b03443c425 [11921] Improve MoveMapGen script to create mmaps directory if not exists - thanks to Bobi for pointing 2012-02-07 15:20:46 +01:00