Commit Graph

24 Commits

Author SHA1 Message Date
ratkosrb a718115fd2 Update a few npc commands. 2019-02-03 16:22:17 +02:00
ratkosrb a7905795ac Update creature_template column names.
Changed to all lower case with underscores.
2019-01-23 08:29:34 +02:00
ratkosrb 6708c8284b Use modern for loop in EventAI code. 2018-11-25 08:46:41 +02:00
ratkosrb 7e03a2f8a3 Add distancing motion type. 2018-10-10 00:53:18 +03:00
ratkosrb 7adaecea38 EventAI: Add PlayerOnly parameter to EVENT_T_KILL. 2018-10-09 18:01:58 +03:00
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
ratkosrb 700d272741 Shadowfang Keep: Move hardcoded scripts to DB (#132)
* Core changes.

* Replace hardcoded SFK scripts.
2018-06-15 12:26:24 +03:00
ratkosrb 265420f1e2 Add system for scripted map events (#89)
* It compiles.

* Add conditions.

* Script command definitions.

* Add script commands.

* Add migration.

* Rename variable.

* Fix iterator.

* Rename field.
2018-05-25 18:49:10 +03:00
GuybrushGit 4fe1350159 Fix to Anubisath Defenders phase setting (#97)
* Move Spawn event processing out of AI creation

* Set AI before processing spawn events
2018-05-23 20:02:46 +10:00
ratkosrb ea66fc38fe Implement EventAI for Pets (#66)
* Added an AI class for Pets that inherits EventAI.

* Added conditions to check target's HP and Mana percents.

* Fixed mistake in Unit::IsImmuneToDamage.

* Made DoSelectLowestHpFriendly work with Players.

* Added a script command to set a creature's react state.

* Moved Timbermaw Ancestor's script to EventAI.
2018-04-28 23:54:45 +03:00
ratkosrb 71e02b2fe8 Move caster mobs to Creature Spells and fix any script issues. (#21)
Move close to 600 ranged mobs to creature_spells system.
2018-04-16 15:35:51 +03:00
ratkosrb c6683f1344 Add a few new conditions. 2018-03-16 00:49:14 +02:00
ratkosrb a62768524f Reset Creature Spells template on respawn.
And fix Set Spells Template script command.
2018-03-15 18:20:20 +02:00
ratkosrb 734a0d5085 New DB release and EventAI changes.
https://github.com/brotalnia/database/blob/master/world_full_12_march_2018.7z
2018-03-12 20:19:57 +02:00
brotalnia b455fc2c6a Merge open source repo. 2018-03-02 16:00:16 +02:00
brotalnia dacba5f6ac Remove unused AI function CanCast. 2017-12-29 20:13:57 +02: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
GuybrushGit dbaccee43e Fix to creature flee effect (#548)
* Fix to creature flee effect

* Change flee text to broadcast text.
2017-11-29 04:49:20 +02:00
brotalnia 77a78e4a15 Implement Broadcast Texts and add new DB release.
* Core: Implement broadcast texts.

* Core: Get rid of db_script_strings table.

* Core: Fix MaleText locales and db scripting improvements.

* DB: Add broadcast texts and fix quest 2608.

* Fixed FemaleText locales!

* Move chat functions back to worldobject.

* Replace all db_script_string ids.

* Drop table db_script_string.

* New database release.
2017-11-09 16:01:53 +02:00
Prithu 54608c23e9 Misc memory leaks and pointer safety (#2363)
* Invalid Creature AI event spell handling

* Ensure saved variable updating is done in a transaction

* Ensure _pveHeartBeatData is deleted before creating a new one

* Channels with passwords are now only joinable with the correct password

* Fixed a potential invalid dereference of iter

* Potential invalid script targets

* Ensure iter doesn't go out of bounds

* Prevent crash if owner is invalid

* Prevent crash on threat transfer if unit has no AI

* Prevent invalid pointer access if the player sends an invalid lock ID

* Resolve a memory leak in AH list handling

* Ensure pPlayer is initialized

* Check caster and target pointer validity in duels

* Only perform BG lock check on the BG flag capture spell ID

* Only check source and target pointer validity if we have a creatureEntry to terminate on
2017-09-03 04:48:11 +10:00
brotalnia af4eb17938 Fixes to NPC reactions to emotes (#1079)
* Fixes to npc reactions to emotes

* Remove wrong requirement for Hallow's End quests

* Charge misbehaving player and force attack instead of changing faction.
2017-06-25 17:05:58 +01:00
sipertruk 21559a5d61 broadcast zone yell sound to whole zone (#352) 2017-04-10 16:45:16 +01:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00