Commit Graph
39 Commits
Author SHA1 Message Date
_manuel_ 1608a05ddb Fixed typo in FollowerAI.
--HG--
branch : trunk
2010-01-14 03:55:18 -03:00
Anubisss ce387859a2 Partly restore r6605.
--HG--
branch : trunk
2009-12-19 14:48:12 +01:00
Anubisss f3987b72ae Remove a hack-check. pQuest can NOT be NULL in an EscortAI.
--HG--
branch : trunk
2009-12-19 13:38:30 +01:00
Anubisss bf454b08e6 Fix a typo. This fix a crash in escortAI.
--HG--
branch : trunk
2009-12-17 22:07:10 +01:00
win32 c645c99310 Fix crash in npc_escortAI::Start
Closes #812

--HG--
branch : trunk
2009-12-16 22:03:37 +02:00
Brian 47acd2a061 * Proper output if quest ID in debug log for escort quests without waypoints
--HG--
branch : trunk
2009-12-13 05:58:24 -07:00
Brian b9935f0432 * Added better log output for escort quests with missing script_waypoint
* entries

--HG--
branch : trunk
2009-12-12 11:00:58 -07:00
Kudlaty cbbe3117c1 Clear escortAI from duplicated functionality, which also fix escorts that stucks after combat.
Big THANKS to _manuel_ for testing

--HG--
branch : trunk
2009-12-10 21:06:41 +01:00
Kudlaty 3f4bf697b8 Shuld fix quest The Light of Dawn ( #85 ), and some escort that use STATE_ESCORT_PAUSED
--HG--
branch : trunk
2009-11-28 15:19:31 +01:00
Kudlaty 717f1aefc9 *Change virtual bool IsEscorted in escort_ai.h to check if creature is escorted or not
*If creature use POINT_MOTION_TYPE, sethomeposition in combat start point

--HG--
branch : trunk
2009-10-31 03:33:04 +01:00
maximius e6e621bfad *Add virtual bool IsEscorted() to escort_ai.h
*Some minor cleanup and optimization

--HG--
branch : trunk
2009-10-30 18:54:38 -07:00
maximius 291b255fee *Minor cleanup/typo fixes for cd98f7a7b802
--HG--
branch : trunk
2009-10-27 21:39:53 -07:00
maximius a81faea969 *Even more excessive cleanup..
--HG--
branch : trunk
2009-10-27 21:28:20 -07:00
maximius 86c7bbc8bb *Cleanup..
--HG--
branch : trunk
2009-10-27 17:07:40 -07:00
maximius 3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius 50793d96f3 *Anonymous enum elimination, part 3
--HG--
branch : trunk
2009-10-17 07:42:48 -07:00
maximius 3e8b377ac4 *Some minor cleanup.
--HG--
branch : trunk
2009-10-14 15:18:02 -07:00
Kudlaty e113939587 Merge [SD2]
*Minor changes to includes for escortAI and followerAI
*Add function AssistPlayerInCombat() for escortAI and followerAI. m_creature will then assist a player being attacked by another creature, if escort/follow is active.
*Prepare escortAI for conversion to use escort states similar to followerAI. Add functions needed and also move some 'system-only' functions to private:
*Convert escortAI to use escort states instead of explicit boolean variable for each different state.
 Scripts updated accordingly and obsolete variables removed.
*Small cleanup in escortAI log messages.

--HG--
branch : trunk
2009-10-11 18:03:59 +02:00
maximius f8a6434fc0 *Replace a ton of switches with RAND(), and overload RAND() to support up to 16 parameters.
*Add a safety check to prevent knocking players off of transports, just in case they die while on one.
*Fix a couple incorrect spell defines.

--HG--
branch : trunk
2009-09-26 02:09:26 -07:00
Anubisss 43e61c2e27 *Remove some not needed casts or used correct casts.
--HG--
branch : trunk
2009-09-20 19:58:06 +02:00
maximius 1be0e825ce *Backed out changeset f2d288ace33d
--HG--
branch : trunk
2009-09-17 01:07:22 -07:00
maximius f7601aa00e *Waypoint creature fix by DearScorpion - "example: the portal dragon in Duskwood will basically return to it's spawnpoint and start over without this patch, with it however it will more or less kill you on the spot and continue its waypoint path where it left off"
--HG--
branch : trunk
2009-09-14 12:40:40 -07:00
Kudlaty 2ea8cbb4f1 Merge [SD2]
r1356 Move HasFollowState() to public and move related Add/RemoveFollowState() to private (not intended that script can alter state directly)
r1357 Add faint and revive for npc_ringo

--HG--
branch : trunk
2009-08-20 22:37:19 +02:00
Kudlaty f27fc3e939 Merge [SD2]
r1355 Implement use of bitmask states instead of boolean variables in followerAI.
      Add function SetFollowPaused to temporary disable follow, with true/false argument to toggle the state on/off.
      Scripts affected are updated accordingly with needed changes.

--HG--
branch : trunk
2009-08-20 18:50:41 +02:00
Kudlaty 33a1d8dc6c Merge [SD2]
r1346 Convert script for quest 2078 to use followerAI
r1347 Use spell to summon friends instead of manual summon in script for quest 1249.
r1348 Extend followerAI function SetFollowComplete with argument to simplify implementation of end events in scripts.
r1349 Convert script related to quest 1560 to use followerAI
r1350 Apply SD2 code style to one instance and boss script - skip
r1351 Add basic support for quest 4491.
r1352 Add basic support for quest 5321
r1353 Adjust way to complete quest, for script related to quest 938

--HG--
branch : trunk
2009-08-20 02:24:53 +02:00
Kudlaty fc3717d7e3 last fix for Deaths Challange is by Nevan.
Merge [SD2]
r1345 Check for valid quest before use in followerAI

--HG--
branch : trunk
2009-08-20 01:48:44 +02:00
Kudlaty 48e6997453 Revert last rev and fix in correct way. Also some clean up after merge
--HG--
branch : trunk
2009-08-17 01:10:34 +02:00
megamage 418b161bdc *Fix build.
--HG--
branch : trunk
2009-08-16 18:03:26 -05:00
Kudlaty cad925e31d Merge [SD2]
r1326 Correct waypoints and details for quest 863
r1327 Add function GetPlayerForEscort to escortAI (not used by escortAI yet)
r1328 Updated 0.12 patch and redesigned Karathress for better maintenance. Fixed an issue with Karathres's speech and a little casting bug. - skip
r1329 Remove use of old uint64 variable for player guid in escortAI and use function to retrieve pointer to player instead.
r1330 Restore compile and use FailQuest instead of no longer existing FailTimedQuest (ref Mangos 8355).

Move all waypoints to db

--HG--
branch : trunk
2009-08-17 00:29:53 +02:00
Kudlaty 5d2d8d8074 Merge [SD2]
r1321 Add support for quest 863.
      Some cleanup in existing script.
r1322 Correct database info for current supported Mangos revision (8273+) (Windows may use from 8190+) - skip
r1323 Make escortAI function IsPlayerOrGroupInRange and move existing code to this.
r1324 Fixed IsEncounterInProgress for Arcatraz, The Eye and Shadow Labyrinth
r1325 Renamed aunchindoun to auchindoun. Fixed comment typos.

--HG--
branch : trunk
2009-08-16 22:21:57 +02:00
Kudlaty 91f3d69edf Merge [SD2]
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-16 21:46:31 +02:00
Kudlaty 81ee07fa2a Merge [SD2]
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-16 19:38:18 +02:00
Kudlaty a4b91e2cc4 Merge [SD2]
r1311 Move SetData from Reset to JustReachedHome for channelers and boss.
r1312 Added class for FollowerAI. Note this is under development and may have issues in some situations.
      FollowerAI is generally to be used for escort quests where NPC follow leader instead of using a predefined path.

--HG--
branch : trunk
2009-08-16 18:34:45 +02:00
megamage 95a79b2815 *Restore the work of escortAI::AddWaypoint.
--HG--
branch : trunk
2009-08-15 22:58:17 -05:00
Kudlaty 93709273ec Merge [SD2]
r1294 Let EscortAI fill waypoint list at Start(). Scripts using escortAI then no longer need to call FillPointMovementListForCreature().
r1295 Move one misplaced source file.

--HG--
branch : trunk
2009-08-16 02:12:14 +02:00
Kudlaty 5b42daa7bf Merge [SD2]
r1291 Move one misplaced script in yesterday commits.
r1292 Make own folder for tool, not needed for general work of SD2. - skip
r1293 Add script loader to simplify maintenance of scripts. The scripts must now be added to system/ScriptLoader.cpp instead of old way directly in ScriptMgr.

--HG--
branch : trunk
2009-08-16 01:45:49 +02:00
Kudlaty 6337c3adfb Merge [SD2]
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-16 00:53:16 +02:00