Commit graph

5352 commits

Author SHA1 Message Date
Reamer
55a96d18f2 [12003] Implement script-effect for spells 47703, 47724 and 50252
Thanks to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-13 00:30:35 +02:00
Reamer
9a41fe05cd [12002] Implement spell 59789
Thanks to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-13 00:23:14 +02:00
Xfurry
77c5ae1684 [12001] Implement target limiting for spell 47669
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-12 23:54:20 +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
rsa
1c1bc5c659 [11999] Implement spell 45204
Original author Wowka321, thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-11 15:17:11 +02:00
boxa
f13213018c [11998] Implement fail chance for spell 54732
Ths to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-11 14:31:04 +02:00
fallenangelX
007420b615 [11997] Add spell support for 54092
Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-11 14:30:55 +02:00
Schmoozerd
ef079ac0be [11996] Fix targeting for spells like 53022
Thanks to Inquisitor for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-09 14:49:47 +02:00
Schmoozerd
41072c5455 [11995] Fix following for guid linked npcs on evade
Thanks to grz3s for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-09 14:46:55 +02:00
Schmoozerd
d41974b38b [11994] Implement creature_linking by guid 2012-05-10 22:34:23 +02:00
Schmoozerd
74e3e55668 [11993] Fix some spell targeting
* Implement Target Type 51 as TARGET_AREAEFFECT_GO_AROUND_SOURCE
* Support spells that fill AoE targets based on source location
Thanks to Reamer for discussing these changes

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-10 19:18:37 +02:00
Xfurry
5dbef19097 [11992] Implement spells 69140, 69147 and 72705
Original author Michalpolko and others

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:50:47 +02:00
Schmoozerd
3c3db7311c [11991] Use unMaxTargets for GO-target fills
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:09:13 +02:00
Schmoozerd
414d432d24 [11990] More db-script command changes
* Allow SCRIPT_COMMAND_KILL_CREDIT to give the kill of an involved npc.
  This is marked by datalong (creature-entry) == 0
* Remove immediate execution of commands. This will prevent infinite loops when db-scripts trigger db-scripts which are executed immediately
* Add check for SCRIPT_COMMAND_PLAY_SOUND
* Add check to catch an invalid command

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-09 23:09:12 +02:00
Schmoozerd
83d7d86255 [11989] Add support to call spell_scripts in more cases
* Support to script Dummy spells with spell_scripts
* Support to script TriggerSpell spells which have no existing triggered spell
Note that the order which spell-effect actually triggers the DB script is well-defined (SCRIPT_EFFECT before DUMMY before other)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-08 17:31:09 +02:00
Schmoozerd
dd1d913ff2 [11988] Fix a bug in SCRIPT_COMMAND_TEMP_SUMMON_CREATURE
Now despawn-time will be treated as TEMPSUMMON_DEAD_DESPAWN as expected. Thanks to Xfurry for pointing.
Also make the DB-scripts work only with players on the map. This might affect a few rare scripts, especially related to far-teleport

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-08 17:07:09 +02:00
Schmoozerd
0645d10286 [11987] Fix possible memory leak in .gameobject add command
Thanks to Kid10 for pointing

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-05 14:59:57 +02:00
Schmoozerd
744995d27c [11986] Improve targeting for spells with TARGET_TOTEM_* targets 2012-05-05 01:36:20 +02:00
Schmoozerd
010d29d1ed [11985] Implement support for go_template_scripts
Add a new table `gameobject_template_scripts` to start scripts for any type gameobject.
Scripts in this table are triggered for all gameobjects on GameObject::Use

Note: The table `gameobject_scripts` is expected to not be required very much longer, and will most likely be removed someday
2012-05-04 20:39:48 +02:00
Schmoozerd
4e6fbf5e9e [11984] Add new SCRIPT_COMMAND_SEND_TAXI_PATH to trigger a taxi path
Idea for this patch by Klark20 (maybe he also was the author of this patch as well, I cannot check in this moment)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-04 17:47:12 +02:00
Schmoozerd
99986d7881 [11983] Fix log output for loaded achievement_criterias
Thanks to TuX for spotting this error

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-05-04 16:42:24 +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
Den
67fe27774c [11981] Fix targeting of most pet spells. They expect to target alive pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-26 18:08:55 +02:00
Schmoozerd
d08edbd93c [11980] Improve support for wild summoned GOs
* Support GetGameObject for wild summoned GOs
* Proper delete WildSummoned GOs after they are used
2012-04-26 18:08:35 +02:00
virusav
c17fdc3093 [11979] Remove ReqSourceItems when rewarding or abandoning a quest
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-25 14:44:23 +02:00
Den
24574b000e [11978] Remove outdated comment
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-24 22:15:39 +02:00
Schmoozerd
e29e640341 [11977] More uses of wrappers introduced in 11971
Also fix a typo that caused problems with Stances

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-23 22:49:16 +02:00
Schmoozerd
8433b67599 [11976] Fix some spell visuals (for spells like 39179) 2012-04-23 12:49:48 +02:00
Schmoozerd
1f24d991e3 [11975] Use a few more enums instead of magic numbers 2012-04-22 23:45:06 +02:00
Reamer
5d445d5da9 [11974] Fix spell targeting for some spells like 20243
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 22:08:17 +02:00
stfx
f3f3349661 [11973] Various Cleanups
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-22 19:48:05 +02:00
Xfurry
c243c42c3c [11972] Remove partial DummyEffect implementation of spells 8593, 31225
Both belong to Paladin Resurrection quests. And they are expected to be handled by SD2

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-21 11:53:57 +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
Xfurry
85c694b53e [11970] Implement aura 24210 (overwrite for removed spell 24311
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-20 15:23:57 +02:00
Schmoozerd
91cec087c9 [11969] Fix compile from last commit for some compilers. Thanks to LordJz for pointing 2012-04-20 12:02:02 +02:00
Schmoozerd
a5a081c2ec [11968] Add support for range dependend slave/master
Add new column `search_radius` to `creature_linking_template`.
If this column is used (value > 0), master and slave are linked together if and only if they have their respawn coordinates within this range (point-to-point distance calculation)
Note that linked spawning is slower this way and should only be used if required

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-19 23:41:14 +02:00
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