aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/include
AgeCommit message (Collapse)Author
2010-01-19*Integrate Script system to CoreRat
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-12Fix normal10/normal25 raid detection in scripts.Trazom62
Replace HEROIC(n,h) macro by DUNGEON_MODE(n,h), RAID_MODE(n10,n25) and RAID_MODE(n10,n25,h10,h25) functions Cleanup all HeroicMode like flags in ScriptedAI sub-class Fix some missing virtual destructors --HG-- branch : trunk
2009-11-22*Cleanup, fix a few warnings, and make the SD2 grid searchers just pass ↵maximius
through to the standard Trinity grid searchers, as they have identical functionality. Thanks thmarth. Closes #387, #388 --HG-- branch : trunk
2009-11-21*Copy and paste woes D:maximius
--HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-10-29Force SaveToDB() on BossAI::_JustDied(). These way raids should remember ↵tartalo
instance state if server crashes. --HG-- branch : trunk
2009-10-27*Fix buildmaximius
--HG-- branch : trunk
2009-10-27*Hallow's End Innkeeper, by WarHeadmaximius
*Some Confused Movement Generator fixes, thanks Proofzor --HG-- branch : trunk
2009-10-27*Minor cleanup/typo fixes for cd98f7a7b802maximius
--HG-- branch : trunk
2009-10-27*Even more excessive cleanup..maximius
--HG-- branch : trunk
2009-10-27*Cleanup..maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-10-17Fix compile on *NIX. Original Author: Tartalo.Muhaha
--HG-- branch : trunk
2009-10-17*Anonymous enum elimination, part 3maximius
--HG-- branch : trunk
2009-09-23*add 11 new event hooks to the OnEvents system, by Hawthornemaximius
--HG-- branch : trunk
2009-09-23*quest 12231 - The Bear God's Offspring, by Destalkermaximius
*SD2 enum escort faction, patch by manuel *Extend the Chathandler to TrinityScript, by Hawthorne --HG-- branch : trunk
2009-08-28*Update flame levi script. Allow player to shoot down pyrite container and ↵megamage
refill the demolishers. *Other script-related fixes. --HG-- branch : trunk
2009-08-24*Fix some summon vehicle spells.megamage
--HG-- branch : trunk
2009-08-23*Update vehicle system. Make vehicle a seperate class from creature.megamage
--HG-- branch : trunk
2009-08-23*Rename some ai functions.megamage
--HG-- branch : trunk
2009-08-16Merge [SD2]Kudlaty
r1314 Correct some spellId's and apply SD2 code style r1315 Correct more spells and apply SD2 code style r1316 Replace magic number with enum type name UNIT_DYNFLAG_DEAD r1317 Add support for quest 1249. Patch by jotapdiez r1318 Move AI's implementation from headers. Original patch/idea by DasBlub r1319 Convert script related to quest 938 to use followerAI r1320 Add new virtual function WaypointStart() to escortAI. --HG-- branch : trunk
2009-08-16Merge [SD2]Kudlaty
r1313 Implement new class SystemMgr for storage and management of script data. Move database load to new class and instead use functions in class to retrieve data from storage. --HG-- branch : trunk
2009-08-16Merge [SD2]Kudlaty
r1288 Update include guards with better naming. r1289 Fix typo in makefile.am - skip r1290 Move AI remaining in misc folders to own folder base. Rename file to same as others for consistency and update includes accordingly. --HG-- branch : trunk
2009-08-14Merge [SD2]Kudlaty
r1268 Check if faction pointer are valid before use. Patch by balrok r1269 Clean up one source file and apply code style. Patch by jotapdiez r1270 Fix code causing crash after log in, part revert rev 1267 r1271 Revert previous commit, and instead fix typo :) Patch by Apoc --HG-- branch : trunk
2009-08-14Merge [SD2]Kudlaty
r1266 Added support for quest 4966 r1267 Remove obsolete ScriptedAI functions, no longer used. Clean up code. Patch by DasBlub --HG-- branch : trunk
2009-08-13*Cleanupmaximius
--HG-- branch : trunk
2009-08-13Merge [SD2]Kudlaty
r1211 Correct tempsummon type for adds and add spellId for future use. Patch by Abim - skip r1212 Added support for quest 6523. Patch by Meldanor - skip (already have that, just move waypoints to db) r1213 Add a few missing address-of operators and some general cleanup. r1214 Adjusting how pet are summoned and check when new pet can be summoned for sharkkis. - skip r1215 Added support for event related to quest 12727. Original patch by ckegg r1216 Some adjustments to function for controlling combat movement (MoveChase()) r1217 Use SetCombatMovement() for more scripts where expected and remove one useless function from Scripted_NoMovementAI (this may be fully removed) r1218 Correct script_texts, adding variable %s where missing (...and where expected. Note that not all creature emote texts contain name of sender). - skip r1219 Reset DATA_OPERA_OZ_DEATHCOUNT to 0 at start, in case event was previously run and incremented counter. r1220 Correct lost-in-process FillPointMovementListForCreature() for quest 12727 (copy/paste == bad) --HG-- branch : trunk
2009-08-12Merge [SD2]Kudlaty
r1192 Adding and correct spell used for hard enrage after 15 minutes, and also correct initial ability if any of dragons are alive at initial aggro. Added placeholder for soft enrage at 10%HP left. r1193 Fixed typo in EnterEvadeIfOutOfCombatArea() r1194 Implement basic parts of tomb of seven event in BRD. - skip (already scripted) r1195 Some cleanup to parts of the seven event script. r1196 Reset event for triage-quests in better way and also clear lists. r1197 Clean up and add long time incomplete script for first boss in SWP. - skip r1198 Correct typo in filename in previous commit, sorry :) - skip r1199 Added script for areatrigger 4853, to be used to start pre-event, second boss in SWP. - skip r2000 Check alive-state before hatching all eggs. Patch by kolomati2 Correct typo in variable. - skip r2001 Correct one spellId and remove non-existing. By Tassader. - skip r2002 Added support for quest 12739(and 12742 to 12750). Patch by ckegg - skip (already scripted) r2003 Corrected copyright notices in misc makefile.am - skip r2004 Added: Missing heroic spells for Vexallus. Heroic version is complete now. Added: Missing heroic spells for Murmur. Heroic version is also complete. Fixed: As always some timers. --HG-- branch : trunk
2009-08-11*Cleanups and obsolete spell handlers remove.QAston
--HG-- branch : trunk
2009-08-10*Cleanup about deleting player.megamage
--HG-- branch : trunk
2009-08-09*Some scripts of ulduar boss (far from finished)megamage
--HG-- branch : trunk
2009-08-08Merge [SD2]Kudlaty
r1151 Remove old workaround and instead use spell to summon dragonhawk from eggs in ZA. Correct eggs hatched count. - skip r1152 Remove obsolete script function DoZoneInCombat() and replace in code with SetInCombatWithZone(). Requires Mangos 8057+ - skip r1153 Respawn eggs for boss in ZA in case evade. Remove old workaround and summon dragonhawks by spell from all remaining eggs at 35% hp. - skip r1154 Added main spells for first boss in ZA - skip r1155 Added ZA boss' spirit lynx script - skip r1156 Correct typos and errors in misc .txt files - skip r1157 Added abilities and phases for halazzi - skip r1158 Add two lost variables in previous commit, used for reset phase - skip r1159 Use expected movement flag for escortAI (source need more detailed cleanup) - skip r1160 More corrections of movementflags + minor cleanup code. - skip r1161 Correcting boss astromancer and adds' spells. Some minor code cleanup. r1162 Fix typo related to ReceiveEmote() and update code for once script, using spell instead of emote. r1163 Added spells for Unworthy Initiate. - skip r1164 Added ScriptedAI function EnterEvadeIfOutOfCombatArea() used for location check of creatures that are expected to evade when out of certain area. Location coordinates are hard coded for each creature entry. r1165 Replace/use EnterEvadeIfOutOfCombatArea for three bosses, with locations added in previous commit. r1166 Add one more boss to EnterEvadeIfOutOfCombatArea() list and also use boolean for function (to be used if special case evade events are expected). r1167 Remove some old (and wrong/not needed) movementflags, correct remaining to use MONSTER_* - skip r1168 Fixed spellId typo - skip r1169 Added basic support for quest 12733 (change our script to this) r1170 Remove meele attack for mini-boss and add some distance for MoveChase() --HG-- branch : trunk
2009-08-06Merge [SD2]Kudlaty
r1120 Add CallForHelp at aggro for two instance bosses. Requires Mangos 7951+ r1121 Added basic parts of boss spell definitions and texts for Nexus instance - skip (already have better) r1122 Correct one spellId, add more spell definitions for boss noth - skip r1123 Remove wrong spell for gluth and add missing emote text. Summon only expected amount of adds. Some additional cleanup in anubrekhan and check heroic for a few spell cast. - skip r1124 Use normal health check calculation for easier backport (to older client) r1125 Fixed typo in previous commit r1126 Add spell cast to dragon in scrying orb event and add workaround for kill credit. r1127 Convert gossip related define to enum and remove one useless (redefinition) r1128 Remove no longer needed item scripts that can be controlled with database table item_required_target (Mangos 7980+) r1129 Remove one more obsolete item script (use spell_area DB table for area limited spell). Cleanup other and provide spell error message. Requires Mangos 7983+ --HG-- branch : trunk
2009-08-06Merge [SD2]Kudlaty
r1114 Added two new struct ObjectDistanceOrder/ObjectDistanceOrderReversed for generic use sorting objects by GetDistanceOrder() r1115 Remove obsolete code in misc scripts and use struct ObjectDistanceOrder/Reversed instead r1116 Added script for mob 24079 + related instance script - skip (already have it better) r1117 Update DoPlaySoundToSet function and allow WorldObject as source for sound. r1118 Correcting end bosses scripts in SM cathedral r1119 Added basic scripts w/texts for bosses in utgarde keep --HG-- branch : trunk
2009-07-25Merge [SD2]Kudlaty
r1106 Prevent abuse of item 44222. Apply some SD2 code style r1107 Add health modification for phase and correct phase value for kael(TK) r1108 Remove scripted function SetSheathState() and use mangos function instead. Fix one typo and apply sd2 code style for one script. r1109 Remove old makefile* files not needed. r1110 Some minor adjustments to sharkkis, add one spell and also add distance to MoveChase. Not kill boss' advisors on Reset when not needed. r1111 Check pointers and avoid possible crash r1112 Added script for friendly Kael in MgT (movement to orb-platform, transform and gossip) r1113 Correct misunderstanding added in 1112, and use timer for transformation instead (creature are expected to spawn/fly down once player use orb). --HG-- branch : trunk
2009-07-24Merge [SD2]Kudlaty
r1088 Add grid searcher class PlayerAtMinimumRangeAway and create ScriptedAI function GetPlayerAtMinimumRange that return player in grid with at least the defined range away from m_creature. r1089 Remove no longer needed grid search code and use function instead. - skip r1090 Rename and clarify function variables - skip r1091 Add two new grid search functions to return list of creature and gameobject. Remove unused class. r1092 Remove more grid search code in scripts and use functions instead. r1093 Remove obsolete grid search class and rename new to a more consistent name. r1094 Speed up functions GetCreature/GameObjectListWithEntryInGrid a bit --HG-- branch : trunk
2009-07-12*Merge SD2.Anubisss
*r1202: Added support for quest 12739(and 12742 to 12750). Patch by ckegg *And merge a grid searcher from SD2. --HG-- branch : trunk
2009-06-19Merge [SD2]Kudlaty
r1080 Update code with new and faster functions for distance checks. --HG-- branch : trunk
2009-06-16*Cleanup of scripts.megamage
--HG-- branch : trunk
2009-06-14*Some work on vehicle.megamage
--HG-- branch : trunk
2009-06-13*Fix the bug that door state of naxx is not loaded.megamage
--HG-- branch : trunk
2009-06-04*More cleanup of scripts.megamage
--HG-- branch : trunk
2009-06-04*More cleanup of scripts.megamage
--HG-- branch : trunk
2009-06-04*Remove useless class ScriptedInstance.megamage
--HG-- branch : trunk
2009-06-04*Use dynamic cast for ai cast.megamage
--HG-- branch : trunk
2009-06-04*Use dynamic cast for script cast.megamage
--HG-- branch : trunk
2009-05-29*Add function FindNearestCreature and FindNearestGameObject to replace old ↵megamage
FindCreature and FindGameObject --HG-- branch : trunk