Commit Graph

8 Commits

Author SHA1 Message Date
ratkosrb 14eba4a2ca Implement GuardEventAI and add scripts for guards. (#196)
* Add command to apply aura.

* Add condition for no path to victim.

* Add Is Player condition.

* Database scripts and fixes.

* Improve GuardAI.

* Implement GuardEventAI.

* Mark faction as At War in client on aggro.

* Fix instance reset message.

* Reimplement invisability for Shade of Jindo.

* Cleanup ancient methods.

* Sync At War flag.

* Fix aura for Drunken Bruiser.

* Add LoS check.
2018-08-05 13:58:32 +03:00
bladez d9df6df714 Dynamic respawn improvements (#143)
* Improve creature dynamic respawn
- Now check indoors
- Now allow on elites
- Properly use minimums
- Prevent dynamic respawns near players on an escort quest

* Additional escort status cleanup

* Properly cap reduction rate
Only adjust elite min if it is less than the default minimum. Indoor still takes prio

* Remove unneeded comments

* Properly go to 0 delay if appropriate
2018-06-27 20:12:03 +10:00
sipertruk 345d89604e EscortAI proper motion resume after combat. (#45) 2018-04-21 16:41:32 +10:00
brotalnia 11ab55a2c8 Implement Creature Spells system. (#1057)
* Implement creature spells system.

* Tabs to spaces.

* Use creature spells for Varimathas and Defias Pillager.

* Try to fix linux compile.

* Some refactoring.

* Add EventAI command to set creature_spells template.

* Correct undercity.cpp comments.

* Add command to reload table.

* GetPatchName should not be static.

* Add missing const.
2017-12-26 19:43:11 +02:00
kampeador 6330854d32 Missing Diplomat: Enhanced Edition. (#2715)
* Missing Diplomat: Enhanced Edition.

Missing Diplomat id: 1447:
Complete event rework featuring:
 - A new mechanics for thugs.
   * Their spawn positions have been corrected.
   * Implemented a cutscene when Dashel has been defeated and thugs stayed alive.
   * "Ok Boss!" placeholder was replaced with 2 blizzlike texts.
   * Fixed a bug with an incorrect despawn.
   * Thugs will now focus player who started a quest event and will not put other players nearby into a combat mode.
   * Thugs will now use a correct "attack" animation instead of switching to "stand" after each hit.
 - Fixed some spelling errors in existing texts.
 - Fixed a bug when Dashel sometimes get stuck in combat mode.

Missing Diplomat id: 1324:
 - A new text quote for Hendel's friends.
 - Fixed some spelling errors in existing texts.
 - Added a visual effect for the Teleport spell used by Tervosh on Private Hendel.
 - Fixed an inconsistent behavior, when a Private Hendel has been defeated, allies have not yet arrived and a random creature started to attack him.

Missing Diplomat id: 1265:
Full quest event implementation.
 - A new quest area-trigger. 1667 instead of 330.
 - Tervosh will now appear, once player enters a Sentry Point tower. All guards inside will salute him.
 - Tervosh will will buff players with Proudmoore's Defense on quest complete.
 - Many rare cases for high population has been resolved(i.e many players are doing this quest at the same time).

Missing Diplomat id:1249:
Complete event rework featuring:
 - Detail emotes for quest text.
 - Tapoke "Slim" Jahn now uses a correct stealth spell with 8 sec duration.
 - A waypoint path for Tapoke "Slim" Jahn has been reworked completely.
 - Tapoke "Slim" Jahn has learned a new ability: Pummel.
 - Implemented a Mikhail's gossip script. His gossip behavior is very different from other NPCs in a game and consists of 3 states, but only 1 is active at a time, depending on a player's quest status.
   * Gossip: A special gossip text for players trying to start a quest event if Tapoke Slim Jahn is unavailable(event was started, he is dead or pulled away from the inn).
   * Quest: Other Missing diplomat quests or event q:1249 is ready to start.
   * Nothing: No quests, no gossip.
 - Implemented a Slim's friend behavior. He will continue to help Tapoke "Slim" Jahn after enemy Vanish, Feign Death, etc.
 - Fixed a critical issue with respawn timer. It was 2 seconds after the first player completed this event.
 - Quest will also fail if Tapoke "Slim" Jahn ran away from player/group range.
 - Fixed an inconsistent behavior when Tapoke "Slim" Jahn was attacked by player from the opposite faction, during the event.

Misc:
 - Fixed an issue when: if (uiDamage > m_creature->GetHealth() || m_creature->GetHealthPercent() < 20.0f) fails and NPC dies if multiple harmful spells land on the target at the same time.

npc_escortAI API:
 - Added a method to turn on/off pathfinding between waypoints.
 - Added a method to control a delay before the first waypoint. Hardcoded value (2500ms) is too high for some quests.

* Added some missing data.

* Added some missing data. Part 2.
2017-10-09 02:59:39 +03:00
brotalnia 11ce626904 Make hostile mobs attack nearby passive escort npcs (#952) 2017-06-29 08:27:23 +01:00
Prithu 8d40459c90 Refactored BRD escorts success and failure notifications, implemented Player::GroupEventFailHappens (#1008)
* Implemented Player::GroupEventFailHappens for when a group event (such as an escort) fails

* ScriptedEscortAI now makes use of Player::GroupEventFailHappens rather than re-implementing it

* Refactored BRD escorts to use Player::GroupEvent methods to inform success and failure. Commander Gor'shak now correctly rewards the whole group
2017-06-07 11:13:45 +01:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00