Commit graph

5334 commits

Author SHA1 Message Date
Xfurry
0cce85e46e [12034] Implement a bunch of spells
* Target Limitations for: 70450 70837 71445 71471 71837 71861
* DummyEffects for: 71445 71471, 71718, 72040, 71837, 71861, 72261
* ScriptEffect for: 71806
2012-07-13 00:43:42 +02:00
Reamer
c46fade9f0 [12033] Implement spell radius for 56438, target limitation for 56140 2012-07-12 22:30:11 +02:00
Schmoozerd
84527cfcc3 [12032] Fix a bug to not display usability for weapons correctly 2012-07-12 22:06:37 +02:00
Schmoozerd
208e9acbff [12031] Change way location targeting is handled 2012-07-12 21:57:45 +02:00
Reamer
6b6b2379a3 [12030] Support Random Movement around a point
* Remove unused MoveRandom function
* Add MotionMaster::MoveRandomAroundPoint function
* Toggle DB-command COMMAND_MOVEMENT to be able to move around current position or respawn position (depending on data_flags)
2012-07-12 19:15:14 +02:00
Xfurry
12fa17dba5 [12029] Implement spell 35865 2012-07-09 19:21:37 +02:00
Schmoozerd
065bcc6b5c Revert "[12028] Implement spell 70842"
Reason: This spell is implemented within SD2 for proper phase handling of the boss

This reverts commit bf940b370c11920fc395412bc059adc0431f92ca.
2012-07-05 21:15:15 +02:00
Azelen
99b14e9882 [12028] Implement spell 70842 2012-07-05 20:08:20 +02:00
Reamer
ea30899db4 [12027] Add some VMap LoS checking functions to Map scope 2012-07-05 19:37:35 +02:00
Schmoozerd
0e0a765312 [12026] Replace std containers of ObjectGuids with some predefined types
Based on patch by stfx

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-07-03 18:47:05 +02:00
Schmoozerd
b607d6a3fd [12025] Fix a stupid mistake from 12017 2012-07-03 17:14:42 +02:00
Schmoozerd
00f4b2e6f2 [12024] Fix Targetpair (87, 8) to use TARGET_FLAG_DEST_LOCATION
Note: It seems that atm a bunch of spells are broken, that had seem to work before.
There will follow up a few more changes to spell targeting, so please report issues you find.
2012-06-29 13:24:23 +02:00
Schmoozerd
314c448a3d [12023] Enable SQL-Storage to work with entries of value zero 2012-06-25 21:12:44 +02:00
stfx
a309de2e6d [12022] Some more warning fixes 2012-06-25 15:56:53 +02:00
darkstalker
f777665d48 [12021] Fix some warnings
Thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-25 15:40:27 +02:00
Reamer
e533ff54d5 [12020] Implement targeting for spell 30843
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-25 15:03:59 +02:00
Schmoozerd
01b6c6b8f4 [12019] Various changes
* Add some const correctness
* Remove unused Unit::isHover() function
* Help compiler optimize code from last commit (thx to vladimir)
2012-06-25 14:54:00 +02:00
virusav
6d49f2bbee [12018] Implement spell 51519 2012-06-24 19:40:48 +02:00
Schmoozerd
fb3a990b13 [12017] Add support for getRace() of creatures. Thanks to vladimir for input 2012-06-24 19:40:36 +02:00
Schmoozerd
dfa35dafab [12016] Implement some Cleansing Flames spells
Implementation based on original work by fallenangelX, thx to stfx for bumping the topic

Implements spells:
* 28859 (used for normal summer festival flames)
* 29126, 29135-29139, 46671, 46672 (used for city summer festival flames)

Also reorder a few dummy effects.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-23 14:29:09 +02:00
Reamer
fa6233609b [12015] Add pullrequest #47 for improvements with mmap generator debug output
Don't override obj-files, which are created with "movemapgen -debugOutput true"

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-22 19:16:05 +02:00
stfx
3d3529dc07 [12014] Do some smaller cleanups
* Cleanup mangos.sql file
* Remove not really required BattleGroundWinner

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-22 18:31:49 +02:00
stfx
17b10b5e75 [12013] Implement SpellEffect 150 as SPELL_EFFECT_QUEST_OFFER
The implementation is a bit vague as there are only two spells atm with this effect.

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-22 13:12:36 +02:00
Xfurry
956e307ba1 [12012] Add to vanilla spells as server-side spells (23263, 25192) 2012-06-22 00:00:50 +02:00
Xfurry
cd2b07e50a [12011] Implement spell 33326
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-19 20:13:04 +02:00
michalpolko
731a26b1f6 [12010] Implement spells 28832 28833 28834 28835 (Naxxramas Four Horsemen Marks)
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-19 20:12:26 +02:00
Xfurry
7af8f7fde7 [12009] Fix wrong implementation of spell 48590 from [12005]
Thanks to rsa for pointing to the problems
Original author of now similar patch unknown

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-14 23:47:52 +02:00
Feanordev
e7114b4b3c [12008] Fix BoA items conversion
Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-14 04:17:40 +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
partizanes
05a33ee04e [12006] Implement Aura 304 as SPELL_AURA_FAKE_INEBRIATE
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-06-13 19:48:32 +02:00
Xfurry
a71dfd84a7 [12005] Implement spell 48590 2012-06-13 15:35:09 +02:00
Xfurry
f7afe66db5 [12004] Fix spell 48385 2012-06-13 15:34:01 +02:00
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