Commit Graph

79 Commits

Author SHA1 Message Date
ratkosrb 0347766a19 Reimplement item template loading.
Now bots will not equip items that come from quests which are too high level for them.
2022-09-23 21:57:08 +03:00
ratkosrb a6a18863f7 Prevent deleting spawns that are referenced in scripts. 2022-08-21 17:10:39 +03:00
ratkosrb 19bc922ec4 New script for Avatar of Hakkar. 2022-07-27 06:16:49 +03:00
ratkosrb ef23aa62ec Cleanup some things from last commit. 2022-01-16 20:04:44 +02:00
ratkosrb ef6ebef005 Fix Lady Blaumeux's texts not showing up in chat. 2022-01-16 19:33:25 +02:00
ratkosrb d1ce4ecad4 Check for scripts with target assigned and target self flag. 2022-01-08 03:48:02 +02:00
ratkosrb 06da92b541 Add script flag to skip missing targets. 2022-01-07 04:55:43 +02:00
ratkosrb 2dd80d8179 Add priority field to db scripts. 2022-01-03 02:39:51 +02:00
ratkosrb 0bada1e297 Add random gameobject target type. 2021-06-20 13:06:02 +03:00
ratkosrb 290980c8e5 Update all character database tables to use lowercase column names.
Now there is a consistent naming style. Previously some tables were mixing up to 3 different styles. Also cleaned up unused tables and fields.
2021-06-09 07:33:19 +03:00
ratkosrb 8d806cf7bd New script for Princess Theradras.
Closes https://github.com/vmangos/core/pull/978
2021-01-24 04:58:32 +02:00
ratkosrb 1b7ecdd3b8 New script for Darkmaster Gandling. 2021-01-15 22:51:08 +02:00
ratkosrb 179f2bdb11 Update many queries incore to escape table and field names. 2021-01-05 14:40:54 +02:00
ratkosrb ec8abeb9bb Split event_scripts table. 2020-09-01 08:32:41 +03:00
ratkosrb a17700bebc Move random emotes to datalong fields. 2020-07-16 07:36:43 +03:00
ratkosrb f6d3b0de7a Add ability to switch gossip menu of npcs.
The reveler npcs use a different gossip menu id depending on which event spawned them.
2020-06-27 18:51:02 +03:00
ratkosrb 618ecbd1d3 Remove obsolete defines. 2020-04-30 19:35:39 +03:00
ratkosrb a683100fcc Update gameobject template data. (#370) 2020-02-16 18:40:12 +02:00
ratkosrb 8051447555 Change naming style of broadcast_text fields. 2020-02-02 16:30:27 +02:00
ratkosrb 61d85024ad Remove obsolete waypoint behaviour fields. 2020-01-26 14:11:25 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb 49b9a82244 Switch to east const style. 2019-12-21 00:45:35 +02:00
ratkosrb 221145d46e Misc code style cleanup. 2019-12-20 07:18:54 +02:00
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