Commit Graph

72 Commits

Author SHA1 Message Date
ratkosrb 894b0fc267 Fix compilation of old builds. 2020-02-18 20:57:33 +02:00
ratkosrb a683100fcc Update gameobject template data. (#370) 2020-02-16 18:40:12 +02:00
ratkosrb 4a4f5692cc Remove MANGOS_DLL_DECL and its use.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/61837298b7ba4bd81fdfbda3d7456d10f296e7cd
2020-02-10 22:17:36 +02:00
Kittnz dbe7c59332 Core/Objects: increase sight range of all objects & correct general default visibility distance (#283)
Some info on range
https://trinitycore.atlassian.net/wiki/spaces/tc/pages/74950924/Lua+Scene+Script+Documentation#LuaSceneScriptDocumentation-ActorAOIRange

Port from: https://github.com/TrinityCore/TrinityCore/commit/83e6fde0664cf8ab0c425e574781262893e7b226

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2020-02-10 21:43:55 +02:00
ratkosrb 5b59d2f583 Implement premade character templates. (#346)
* Implement premade character templates.

* Separate gear and spec templates.

* Auto unequip previous gear.

* Add healer specs and gear.

* Add tank specs and gear.

* Add custom npc scripts.
2020-01-15 22:32:54 +02:00
ratkosrb 61a3374bfd Send hit and immunity results for damage shields and periodic auras.
Closes https://github.com/vmangos/core/issues/339

Credit to cmangos https://github.com/cmangos/mangos-classic/commit/f21797934594a4745b21730751662038fdd4c077
2020-01-08 20:14:55 +02:00
ratkosrb 3777677618 Reorder and unify the config's stat modifier handling.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/3866f932818cf99e9724f749ad2dcee6c701b71f
2019-12-30 10:17:49 +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 9cccb4fbed Correct level for guardians and increase max player level limit.
https://github.com/cmangos/mangos-classic/commit/437bc3f240849514bc3fabc86be668bf9d991dce
2019-12-17 18:57:02 +02:00
ratkosrb a5c746a5c3 Remove custom Lord Victor Nefarius entry. 2019-12-10 19:06:57 +02:00
ratkosrb a1f9716ffa Add a cheat command category. 2019-12-09 19:37:21 +02:00
ratkosrb 49720c1413 Add minimum distance for auto attack facing check. 2019-11-26 18:30:52 +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 df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb 4afe949345 Replace usage of NULL with nullptr. 2019-11-12 19:53:42 +02:00
ratkosrb 0fee5f6863 Dustwallow Marsh: Full Revamp of Zone (#293)
* Correct Dustwallow Marsh spawns.

* Implement multiple creature ids per spawn.

* Convert pools to new system.

* Add Theramore waypoints and scripts.

* Add missing gameobject spawns.

* Add command to add creature entry to spawn.

* Fix creature id sorting.
2019-11-02 22:09:58 +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 e8b2ba9037 Fix movespline structure on 1.7 client.
Thanks to namreeb for helping confirm this.
2019-07-30 23:48:46 +03:00
ratkosrb 88d2fe4099 Initial support for 1.7.1 client. 2019-07-15 18:13:45 +03:00
ratkosrb b6f4a2574b Implement movement counters (#197)
* Implement movement counters.

* Fix 1.8.4 build.

* Remove redundant check

* Minor changes.

* Fix problem with fear while mind controlling rooted unit.

* Fix wrong guid being sent in speed change.

* Move some functions around.

* Differentiate between possess and charm.

* Hack fix for mind control bug in 1.8.4.

* Fix bug with Mind Vision.

* Use namespace instead of class.
2019-06-12 18:29:21 +03:00
ratkosrb 4c4475bbf4 Rename find nearby object functions. 2019-04-28 21:09:27 +03:00
ratkosrb f2f3a170e5 Fix mind control on old clients. 2019-03-23 23:33:50 +02:00
ratkosrb dd8f591dd9 Change default command ranks. 2019-02-23 14:08:50 +02:00
ratkosrb f7cd03b5d9 Initial support for 1.8.4 client. 2019-02-11 20:40:19 +02:00
ratkosrb cf6e4f1292 Use percent hp and mana in creature spawns table. 2019-01-24 08:46:01 +02:00
ratkosrb 59f151f0f1 Use static cast in IsPet and ToPet. 2019-01-12 03:03:58 +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 395d47d15f Organize code in Player.h 2018-12-02 19:19:04 +02:00
ratkosrb 8688d60bd5 Add const to text or packet sending functions.
Based on https://github.com/cmangos/mangos-classic/commit/287f76d315f40d639985332113675d37631dbef8
2018-11-25 10:55:08 +02:00
ratkosrb d47c7094c1 Fix use of different range checks for some spells. 2018-10-26 03:56:49 +03:00
ratkosrb 3c23f9a21b Make creatures face their cast target. 2018-10-06 14:37:56 +03:00
attackpure100 9c4567d4b5 Feature: Select to show hp values or percentages in config (#210)
* Show healths option in mangosd.conf.dist.in

I added the show health option here. For this to work the world.cpp/world.h/object.cpp need changing which i have done but have to put here on github (its on my local machine).

* Update mangosd.conf.dist.in

* health values change in world.cpp

* health value change for world.h

* Changes required in object.cpp for ShowHealth.Values
2018-08-27 02:02:19 +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 adaf27ba68 Support for client build 1.11.2 (#112)
* Add support for the 1.11.2 client.

* Fix some startup errors.

* Fix all startup errors with 1.11 dbcs.

* Fix SpellCastResult enum values.

* Implement old spell haste handling.

* Fix spell haste logic for 1.12.

* Lethargy Root is grey in 1.12.
2018-06-01 04:34:00 +03:00
sipertruk 8953934843 Flight transitions and related fixes (#4)
* Flight transitions and related fixes

* Fix compile error on Debian.
2018-05-05 19:57:59 +03:00
sipertruk d185315d27 Fix path on target close to map roof. (#51) 2018-04-15 13:20:20 +10:00
ratkosrb d283ce7de7 Add back accidentaly reverted commit. 2018-03-12 21:02:35 +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
bladez c1205c8049 Merge branch 'development' of git@gitlab.com:lights-hope/server.git into development 2018-03-07 19:54:16 +11:00
brotalnia b455fc2c6a Merge open source repo. 2018-03-02 16:00:16 +02:00
bladez 22af318d0e Always network both parts of 64bit unpacked values when changing them 2018-02-28 19:27:05 +11:00
sipertruk 21440525d0 Giant type walk underwater (#1297) 2018-01-25 22:46:13 +02:00
Prithu Parker 92c3613056 Reverted a previous change to IsWithinLootXPDist - must check IsInMap before GetMap() 2017-11-24 17:11:45 +11:00
bladez 4c40408ed9 Allow creatures to modify their summon limits, and alert GMs when a creature is at the limit (#744)
Allow objects to modify their summon limits, and alert GMs when an object is at the limit
2017-11-22 18:02:36 +11:00
bladez 1c4af71bca Set a configurable cap on the number of creatures a single object can have spawned (#199)
* Set a configurable cap (default 100) on the number of creatures a single object can have spawned at once (dead or alive)

* Add checks to unchecked creature summons

* Add default config option and docs
2017-11-20 04:01:58 +11:00
bladez 8b242a1da7 Now delay far teleports until the map update is complete (#666)
* Add locks for getting/setting object map
Prevent updating quest fail status for players in another map

* Now use FindMap() in IsInMap rather than GetMap(), so we can continue if the map is NULL

* Prevent UpdateForQuestWorldObjects() call with serialized map check as well as IsInWorld()

* Implemented support for delaying far teleports until after map updates have completed. Resolves issues with thread-safety when checking player map and world across threads
NOTE: ADDING players to maps on a teleport is already thread safe (performed synchronously in the world update, before map updates)

* Removed current map guards, world and map status are now always thread safe

* Add support for cancelling and executing a specific player's teleports
Now set the player teleport semaphore on schedule to preserve existing implementations that check if a teleport is scheduled

* Now synchronously force player teleports on login and logout

* Re-add instance check in TeleportTo before teleport schedule
Add cleanup on player delete

* Ensure we always return something in ExecuteTeleportFar

* Now set a pending teleport rather than a far teleport sempahore, so port acks cannot be exploited while waiting for the teleport to be processed
2017-11-17 18:48:03 +11: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
GuybrushGit 7093510629 Fix to Silithus Wind Stone mobs (#25) 2017-11-04 15:10:20 +11:00