Commit Graph

873 Commits

Author SHA1 Message Date
QAston
490494ab07 *Update proc entry for Elemental Focus - by Bengan.
*Update proc entry for Chill of the Grave, Wandering Plague, Endless Winter, Glyph of Chains of Ice - by Destalker
*Add missing script call for EffectDummyCreature_npc_nestlewood_owlkin.

--HG--
branch : trunk
2009-07-09 19:48:39 +02:00
QAston
5206cd8a4e *Fix snake trap.
--HG--
branch : trunk
2009-07-09 17:02:29 +02:00
Kudlaty
0687722812 Better function to despawn creature with script in azuremyst_isle
--HG--
branch : trunk
2009-07-09 11:43:57 +02:00
megamage
9a2588a454 *Fix a crash caused by archaedas script.
--HG--
branch : trunk
2009-07-01 18:14:46 -05:00
Kudlaty
0df76804c4 Merge [SD2]
r1086 Add long time needed grid search functions for closest creature and gameobject - skip, we have better function in core
r1087 Remove no longer needed grid search code and use functions instead.

--HG--
branch : trunk
2009-06-29 06:31:05 +02:00
Kudlaty
6c1b64c45d Merge [SD2]
r1081 Fix spell/timers for dathrohan/balnazzar
r1082 Correct summon timer for jan'alai hatcher and summon different as spells suggest.
      Redesign waypoint for hatchers and set expected run movement.
      Adjust distance check function. - skip
r1083 Correct order of events for jan'alai 'bombing phase'. Remove not needed summons and summon only expected amount.
      Replace teleport code with spells - skip
r1084 Correct spell/timers for two SM bosses.
r1085 Provide updated .patch file (made for Mangos 7842+) - skip

--HG--
branch : trunk
2009-06-28 00:16:04 +02:00
megamage
c688528f72 *Remove some useless contents in sln files.
--HG--
branch : trunk
2009-06-27 16:24:44 -05:00
QAston
da3569402d *Merge tc1 1591 - 1599, skip 1596
--HG--
branch : trunk
2009-06-27 15:51:36 +02:00
QAston
a74ae18739 *Merge tc1 commits 1582-1590
--HG--
branch : trunk
2009-06-27 15:29:06 +02:00
BroodWyrm
23a47bee35 * Use int32 not int (i think it makes no different)
--HG--
branch : trunk
2009-06-26 20:39:05 +02:00
BroodWyrm
62dc6eb7bb * Add textids to unworthy_initiate script - thx to crackm of SD2
* Fix a bug that unworthy_initiate is attackable after reset - thx to seirge

--HG--
branch : trunk
2009-06-26 20:35:15 +02:00
Rat
0319f6a269 - properly reset Shada of Akama after wipe
- despawn summons if Shade is killed, so Akama can complete the event

--HG--
branch : trunk
2009-06-24 09:33:20 +02:00
Machiavelli
662ef92caa *Clean up scripts, remove all per script declared functions to toggle gameobject state and use InstanceData::HandleGameObject instead.
--HG--
branch : trunk
2009-06-22 14:31:39 +02:00
Muhaha
b3711b9581 * Akama is summoned after the illidari council has been defeated. (remove your akama spawn from creature db)
--HG--
branch : trunk
2009-06-20 03:42:02 +02:00
Muhaha
eab85d9d6e * Added LowerPlayerDamageReq function from TC2
* Akama is summoned after the illidari council has been deafeated. (remove your akama spawn from creature db)
* Dampen Magic timer
* Merging mother from TC2

--HG--
branch : trunk
2009-06-20 02:54:03 +02:00
Kudlaty
88137c07b9 Merge [SD2]
r1080 Update code with new and faster functions for distance checks.

--HG--
branch : trunk
2009-06-19 16:42:48 +02:00
Anubisss
b28a7eb406 *Backport TrinityCore2 r4137.
--HG--
branch : trunk
2009-06-19 11:13:50 +02:00
Kudlaty
827d296372 Merge [SD2]
r1066 Added a few more encounters to SetData ZA instance - Skip
r1067 Added end boss' in ZA adds with random selection and their abilities. - Skip
r1068 Added support for quest 10994 (basic parts)
r1069 Added instance script for BFD
r1070 Remove enum type not related to boss/encounter.
r1071 Fix misunderstanding committed in 1067. Spawn 1 of 2 possible adds, each from 4 different groups instead of 4 random of 8 possible. - Skip
r1072 Save instance data for TYPE_EVENT_RUN in ZA when expected and not allow it to reset on Load(). Remove useless code for goFlags. - Skip
r1073 Added struct and enum for misc npc/go entries used in naxx instance - Skip
r1074 Restore Windows build after changes in Mangos rev 7810 - Skip
r1075 Added 6 new taxi paths (wyrmrest temple) - Skip, already implemented
r1076 Correcting berserk spell for najentus, also make sure spell are actually casted.
r1077 Update sources and use enum GossipOptionIcon instead of magic number.
r1078 Provide new .diff file to use with Mangos 7812+ - Skip
r1079 Update one old boss script, clean code.

--HG--
branch : trunk
2009-06-19 05:17:25 +02:00
megamage
9008c0a838 *Merge.
--HG--
branch : trunk
2009-06-18 20:28:16 -05:00
megamage
e0553121f2 *Merge
--HG--
branch : trunk
2009-06-18 20:26:49 -05:00
Kudlaty
2ac0089d16 Merge [SD2]
r1056 Added some texts for future use + added one additional waypoint for npc 24358
r1057 Add spell and correct gossip text for npc 24358. Move open door code to instance script
r1058 Simplify scripts using manual call ActivateTaxiPathTo().
      Added ScriptName for npc 22112, also cleanup code.
r1059 Remove redundant call to activateTaxiPathTo(), taxi already implemented for related spell. Some code cleanup
r1060 Update scripts with SD2 code style for a few commonly used pointers passed in functions (Player* pPlayer, Creature* pCreature, etc)
      Remove some useless whitespace - Skip
r1061 Trim trailing whitespace in source files. - Skip
r1062 Added script to control misc alarm/rooftop bots, summoning guards when hostile players comes in range and trigger AttackStart based on aura.
r1063 Fixed missing call to AI constructor for npc 18585. Code cleanup.
r1064 Correcting a few wrong gossip icons. Code cleanup.
r1065 Fixed two more lost calls to ai constructors.
      Add one missing scriptname to *full.sql added in rev 982

--HG--
branch : trunk
2009-06-19 00:22:19 +02:00
BroodWyrm
a2a56b21f1 *Merge.
--HG--
branch : trunk
2009-06-18 21:52:29 +02:00
BroodWyrm
bcc2148e2c *Fix "Endless Hunger" Script ... npc should not move into wall
--HG--
branch : trunk
2009-06-18 21:51:12 +02:00
Machiavelli
3c3a4a303d * More updating of iterator data types in loops, and fix a crash (sorry)
--HG--
branch : trunk
2009-06-18 21:16:25 +02:00
Kudlaty
38261d1967 Add despawning adds for pathelon script
--HG--
branch : trunk
2009-06-18 19:16:15 +02:00
Kudlaty
c41e432834 Merge [SD2]
r1051 Fixed loot state for delrissa. Move open door to instance script and remove redundant lackey killed code. Correcting set enounter state == DONE. Some code cleanup/rename to clarify intent of use.
r1052 Respawn delrissa in case dead but party wipe after this point.
      Correcting a few Aggro() -calls/events and also use similar code for lackeys as in boss to put all in combat.
      Avoid initialize lackeys in case boss already dead.
r1053 Cleanup and apply sd2 code style in some parts of delrissa. Also remove most old commented code.
r1054 Simplify health check code for vexallus and move open door code to instance script.
r1055 Reactivate commented code about taxi path, related to quest 10870

--HG--
branch : trunk
2009-06-18 17:46:32 +02:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
Machiavelli
85e59ecd57 * Remove some unneeded typecasting to same class.
--HG--
branch : trunk
2009-06-18 16:28:25 +02:00
Kudlaty
5910425dd5 Merge [SD2]
r1046 Fixed misc bugs in various scripts:
      Initialize variables, correct indexes too big/small, correct local declaration of pointers already declared in outer scopes.
r1047 Fixed a few more, continued from previous commit.
r1048 Initialize variables for 4 more scripts.
r1049 Fixing more uninitialized variables in misc scripts.
r1050 Fixed memory leaks in delrissa script and few other possible crashes.

--HG--
branch : trunk
2009-06-18 16:12:09 +02:00
Kudlaty
8662fbb007 Merge [SD2]
r1041 Add support to respawn GO 164869. In addition, add placeholders to respawn 169243, 185168, 185169, 179703, 181366 and 193426
r1042 Remove limited/obsolete grid search for ancient gem in hyjal, replace with instance wide respawn of go (stored in instance script list)
r1043 Code cleanup in instance script for Kara
r1044 Added placeholder scripts for boss nazan/vazruden - Skip, we already have scripted that boss
r1045 Initialize variables in boss omrogg. Use different summon type for heads and fix possible crash. Some code cleanup and sd2 style applied.

--HG--
branch : trunk
2009-06-18 14:04:36 +02:00
Kudlaty
dd7dc8b869 Merge [SD2]
r1038 Cleanup instance script for SSC, rename/reorganize for consistency and readability. - Skip
r1039 Added support for quest 1950 - rewrite script
r1040 Added ScriptedInstance function to respawn GameObject (go's with expected negative  in db-table) - Skip, already implemented

--HG--
branch : trunk
2009-06-18 12:49:18 +02:00
Kudlaty
ee2945aac3 Take back changes in SSC.
Merge [SD2]
r1037 Correcting some details for shaffar and simplify code. Let movement expire when using blink ability. Fix some possible issues with summoned beacons.

--HG--
branch : trunk
2009-06-18 12:31:54 +02:00
Kudlaty
6f151ca4ea Merge [SD2]
r1036 Code cleanup for boss karathress and a few additional in vashj.

--HG--
branch : trunk
2009-06-18 11:01:38 +02:00
Kudlaty
ce4a4c740a Merge [SD2]
r1031 Removed empty Aggro function from most scripts. - Skip(already deleted)
r1032 Correct spell id's for Leotheras, added enrage and some missing definitions for future dev.
Change movement generator when changing forms and reset threat.
Updated texts and summon correct npc. SD2 code style applied.
r1033 Added: Heroic support for all bosses in Dark Portal / Black Morras event.
Fixed: Timers and spells in Dark Portal / Black Morras bosses and other.
r1034 Correct spellIds for boss Vashj. Remove code from UpdateAI where better used in other functions (eg JustSummoned). Prevent channel generators from cast before boss actually reach destination in phase 2. SD2 code style applied.
r1035 Simplify SpawnAdds function in boss hydross

--HG--
branch : trunk
2009-06-18 10:47:39 +02:00
megamage
3fab9ff35e *More fixes of scripts.
--HG--
branch : trunk
2009-06-17 19:23:17 -05:00
megamage
816247bfd3 *Fix some merged SD2 scripts.
--HG--
branch : trunk
2009-06-17 19:18:30 -05:00
megamage
9676c5eddf *Fix a crash caused by boss_fathomguard script.
--HG--
branch : trunk
2009-06-17 15:44:18 -05:00
megamage
2d569883e6 *Add config option CheckDB to check if the contents in FULL folder are applied.
--HG--
branch : trunk
2009-06-17 14:09:17 -05:00
Machiavelli
e4e3cb8661 * Fix cooldown of Draw Whadows in Grandmaster Vorpil script, spotted by toward and Visagalis
--HG--
branch : trunk
2009-06-17 17:31:51 +02:00
Machiavelli
d9057a8189 *Merge
--HG--
branch : trunk
2009-06-17 17:14:25 +02:00
Machiavelli
87790145c5 *Fix bug that Illidari Council is unlootable after succesfuly completing the encounter.
--HG--
branch : trunk
2009-06-17 17:13:30 +02:00
Kudlaty
0085745c42 Merge [SD2]
r1026 Added save/load to blood furnace instance script.
r1027 Remove manual summons and teleport for boss morogrim, replace with proper spells. Apply sd2 code style.
r1028 Replace SetUInt32Value for display id with function SetDisplayId.
r1029 Simplify spawn of adds for hydross and use combatStartPosition instead of hard coded values for radius check. SD2 code style applied.
r1030 Remove call Aggro in AttackStart and start use EnterCombat AI function.
Note Aggro will still be called like normal, but no longer required defined in scripts.

--HG--
branch : trunk
2009-06-17 09:39:50 +02:00
megamage
fb26b41e33 *remove outdated eventai in script. they are in core now.
--HG--
branch : trunk
2009-06-17 01:03:21 -05:00
megamage
c6765f9365 *Allow to force to respawn creatures.
*Save creature data for vehicles.
*Change some visibility update sequence of respawned creatures.
*Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase

--HG--
branch : trunk
2009-06-17 01:01:39 -05:00
Kudlaty
e62c77fb1d Merge [SD2]
r1021 Remove ScriptedAI boolean InCombat and use real combat state instead where check is needed.
r1022 Added new ScriptedInstance function, DoUseDoorOrButton() for future use in instance scripts.
r1023 Updated instance function DoUseDoorOrButton with additional variables. Remove some older code and replace to use new function.
r1024 Fix typo in previous commit. - Skip
r1025 Added instance script for blood furnace and make bosses set instance data. Some code cleanup - only some code cleanup

--HG--
branch : trunk
2009-06-17 07:16:40 +02:00
Kudlaty
3c502513b0 Merge [SD2]
r1017 Remove no longer needed functions used in instance scripts. Some additional code cleanup.
r1018 Remove redundant calls to InterruptNonMeeleSpells() and use true in CombatStop() calls instead where needed.
r1019 Fixed: use correct isInFlight check for item 34475 - Skipp already implemented
r1020 Restore work of three scripts after recent changes in AI about AttackedBy(), also some additional code cleanup.

--HG--
branch : trunk
2009-06-17 03:35:23 +02:00
Anubisss
5547366ce3 *Allow horde characters do quest Cluck! by Thraxx.
--HG--
branch : trunk
2009-06-17 03:05:40 +02:00
Anubisss
79dd0f345d *Fix quest Custodian of Time's script by Azrael.
*and use Player(with GetPlayer()) pointer instead of Unit in the script.

--HG--
branch : trunk
2009-06-17 02:19:23 +02:00
Kudlaty
eba1debc3e Merge [SD2]
r1016 Restore build and simplify code.

--HG--
branch : trunk
2009-06-17 02:02:38 +02:00
Machiavelli
38f7be6093 Backed out changeset 49921bfa49f0 (1574) - Will have to modify the script later with a little more care.
--HG--
branch : trunk
2009-06-16 21:58:05 +02:00