Commit Graph

56 Commits

Author SHA1 Message Date
ratkosrb 57b3a46c2c Add better descriptions of condition types. 2019-12-08 17:00:03 +02:00
ratkosrb 66659fe13f Cleanup and reorganization of Unit and SpellEntry headers. (#312)
* Move some unit and spell defines to dedicated header.

* Reorder functions in unit header.

* Clean up until spell category.

* Finish cleaning up spell functions.

* Cleanup combat system methods.

* Done cleaning up unit header.

* Reduce not needed includes.
2019-11-24 22:20:44 +02:00
ratkosrb 315fce1774 Fix faction of theramore dueling guards before 1.10. 2019-11-03 02:27:39 +02:00
ratkosrb 428aa18976 Implement gameobject spell casting (#271)
* Some initial work.

* More work.

* Just a few more errors fixed.

* More progress.

* Fixed all errors in main spell code.

* It compiles!

* Change order of function declarations.

* Fix healing effects.

* Remove empty lines.

* Try to fix travis build.

* Fix old version of Slice and Dice.

* Headers cleanup.

* Move gameobjects list back to unit class.
2019-09-18 23:40:41 +03:00
ratkosrb 1585f7901a Move scripts for Onyxia and Nefarian heads to database.
Also corrected data for related gameobjects based on cmangos.

https://github.com/cmangos/tbc-db/commit/a175805654a347c0a554910ca9c1485568c57b11

https://github.com/cmangos/tbc-db/commit/e9a75b4b82aa317a61afdd4bf17de1809802d824
2019-08-24 23:37:06 +03:00
ratkosrb 05b0500da1 Add waypoints for Justin, Brandon & Roman.
They are also supposed to be holding fishing poles, but their models don't seem to support it in 1.12?
2019-08-17 00:08:25 +03:00
ratkosrb 65a91b677d Fix startup errors with 1.7.1 client. 2019-07-21 12:16:27 +03:00
ratkosrb e009d0adf9 Assign minimum patch to remaining creatures. 2019-06-12 00:19:54 +03:00
ratkosrb 539bae6c9c Make SpellEntry related functions into class members. 2019-05-05 16:02:36 +03:00
ratkosrb 4c4475bbf4 Rename find nearby object functions. 2019-04-28 21:09:27 +03:00
ratkosrb 5d7467f79b Implement area guards system.
Done without using the guard post gameobjects, since spawning them crashes the 1.12 client.
2019-03-06 19:48:01 +02:00
ratkosrb ed383e83fc Fix set flag script command on old builds. 2019-02-21 00:58:11 +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 d2c7a65f21 Chat system refactoring.
Based on https://github.com/cmangos/mangos-classic/commit/1e20ad209d5dfff78b7f31baf2ed987dcc570079
2018-12-26 13:17:35 +02:00
ratkosrb 5db6217157 Add DisableCondition function. 2018-12-24 09:06:52 +02:00
ratkosrb a07d9092fb Assing minimum patch to all items. 2018-12-17 01:18:19 +02:00
ratkosrb ba3268a699 Fix Challenge to Urok. 2018-11-07 16:37:10 +02:00
ratkosrb ea1c65fe32 Standardize item_template column names. 2018-10-31 10:06:11 +02:00
ratkosrb 7e03a2f8a3 Add distancing motion type. 2018-10-10 00:53:18 +03:00
ratkosrb 101b449d47 Save guids in scripted events instead of pointers. 2018-10-03 16:34:01 +03:00
ratkosrb 716da74d7d Support for client build 1.10.2 (#213)
After this commit you have to move your DBCs inside a folder with the build number. So for example if they were in "data\dbc\" before, now they should be in "data\5875\dbc\" for 1.12.
2018-08-26 08:51:57 +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 96ec451406 In Dreams: Full Quest Implementation (#121)
Scripted entirely in the database now.
2018-06-08 06:12:09 +03:00
ratkosrb 0f7fb9b8e2 Use event scripts table for map events. 2018-06-01 04:20:56 +03:00
ratkosrb ac1b00a9d8 Command to run script on nearby objects. 2018-06-01 04:00:00 +03:00
ratkosrb f668c2948a Waypoints script for specific Ancient Core Hound in MC (#109)
* Add script command to set default movement.

* Add home reset method to creature class.

* Add Is Alive condition.

* Add method to set default motion type.

* Add migration.

* Add parameter to clear movement generator.
2018-05-27 17:02:25 +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
ratkosrb 9cacea871f Improvements to waypoint system. (#77)
* Redesign of waypoint system.

* More fixes.

* Fix table name in startup error.

* Add point Id to move command.

* Fix startup error.
2018-05-12 16:25:55 +03:00
ratkosrb 331d0faa55 Add script commands to set spell cooldowns. 2018-04-25 19:19:57 +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 b3f001c465 Add script command to unsummon guardians. 2018-03-26 16:07:52 +03: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 8b4117ec37 Add script command to change spells template. 2018-03-13 22:09:17 +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 b29a5a0730 Unify Flag related commands. (#1290) 2018-01-23 01:12:21 +02:00
brotalnia 3eb35d7a5b Remove depracated table gossip_texts. 2018-01-20 17:58:48 +02:00
brotalnia e55b6c4074 New database release. (#1246)
* Refactored spell data loading.

* New database release.
2018-01-15 20:49:18 +02:00
brotalnia d025b44a64 Add script commands to set instance data. 2018-01-09 17:49:57 +02:00
brotalnia 0787b1e911 Reworked database scripts implementation. (#1195)
* Add buddy columns to scripting tables.

* Update up to MoveTo command.

* Flag set and remove commands.

* Rework MOVE_TO targets selection.

* Updated teleport command to accept creature.

* Open and Close door commands.

* Smart target selection for Activate Object command.

* Standardize targets selection.

* Update targeting for Despawn command.

* Add command to set equipment.

* Update movement and active object commands.

* Update Mount and Morph commands.

* Update targets for Attack Start command.

* Fixed targeting for all commands.

* Move script commands to separate functions.
2018-01-09 16:19:54 +02:00
brotalnia 36e37f205b Rework some SFK scripts. 2018-01-02 23:22:12 +02:00
brotalnia 377b2cb246 Moved Azuregos script to database.
-Added scripts to creature spells

Removed manual loot distance adjustment from scripts.

Set loot and xp credit distance of bosses to 150 yards by default.
2017-12-28 21:56:50 +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
brotalnia 583b07d7b9 Implement Meeting Stone functionality. (#798)
* Initial core implementation.

* Add script command to join queue.

* Add gossip option to innkeepers.

* Add patch support to gameobject spawns.
2017-11-29 03:52:03 +02:00
brotalnia a03dc83d66 Add loading checks for ACTION_T_EVENT_SCRIPT. 2017-11-10 15:05:19 +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
bladez 4932256e35 Resolve a crash in channeled spell update when multiple holders are removed during iteration (#368)
* Added a simple unit AI script for testing casting on multiple units that despawn during the spell update

* Now step the aura update iter on holder removal

* Prevent array overrun

* Now initialize m_channelUpdateIterator, refactored and slightly optimised channel holder removal

* Allow unused custom script warnings to be suppressed
2017-10-29 14:14:09 +11:00
brotalnia 7bbf047e5a New Progression System (#2954)
* Implement new progression system. (#2118)

* Implement new progression system.

* Add progression support to battleground_template table.

* Assign patch to areatriggers.

* Print current patch on startup.

* BG player requirements are per team.

* Revert last change. Thanks WobLight.

* Fix .npc add command.

* Now actually fix .npc add.

* Assign patches to game events.

* Items can be forbidden both after and before a patch.

* Extend quest tables support.

* Rename migration so its last.

* Merge changes into 1 migration.

* Add old BG rewards.

* Battlemasters, Equipment Errors, Item Conditions.

* Warbringers and Brigadier Generals added in 1.8.
2017-10-02 20:34:08 +03:00
brotalnia 5e9321c671 Error Wars 3 - Revenge of the Fix (#1867)
* Take database spell data into account when checking if event script is used

* Use spell to start event for quest Decoy! to avoid startup error

* Update STV fishing tournament script to use script_texts.

* Update alliance script when turning in Nefarian's head to use script_texts.

* Update horde script when turning in Nefarian's head to use script_texts.

* Update warchief blessing event script to use script_texts.

* Update alliance script when turning in Onyxia's head to use script_texts.

* Update horde script when turnin in Onyxia's head to use script_texts.

* Update Alterac Valley scripts to use script_texts.

* Update Stratholme scripts to use script_texts.

* Add missing text to Captain Tuubid.

* Update Eastern Plaguelands scripts to use script_texts.

* Improve script for event after completion of Battle for Darrowshire

* Have Pamela face her father.

* Update Timmy the Cruel's script to use script_texts

* Add missing texts to Postmaster Malown.

* Update texts for Zul'Farrak.

* Add missing texts for Blackhand Summoner when casting summoning spells.

* Update Tendris Warpood's script to use script_texts.

* Don't report about unused generic scripts.

* Fix for all database errors.
2017-08-11 02:39:07 +03:00
brotalnia 4ddab9d888 Added several commands to ScriptMgr (#1030)
* Added SCRIPT_COMMAND_SEND_TAXI_PATH (30), SCRIPT_COMMAND_TERMINATE_SCRIPT (31), SCRIPT_COMMAND_ENTER_EVADE_MODE (33), SCRIPT_COMMAND_TERMINATE_COND (34), and SCRIPT_COMMAND_TURN_TO (35)

* Changed  SCRIPT_COMMAND_DESPAWN_SELF to SCRIPT_COMMAND_DESPAWN_CREATURE
2017-06-11 11:55:24 -07:00