17 Commits

Author SHA1 Message Date
Elmsroth
b4e54bc4de
Multiple fixes (#116)
* Fix usage of Gnomish Universal Remote (ItemID: 7506)

https://classic.wowhead.com/item=7506/gnomish-universal-remote
Will now apply correct random spells :
Spells :  8345 - Control the machine | 8346 = Malfunction the machine (root) | 8347 = Taunt/enrage the machine

* Fix Spells "Hate to Zero" 


https://classic.wowhead.com/spell=9204/hate-to-zero#see-also-other
SpellIDs : 9204 | 20538  | 26569 | 26637

* Upgrade Unit::RemoveAllAurasOnEvade method

As specific list of spell used when evading to remove all auras except some special auras

* Fix npc_escortAI - Properly despawn pets that act as escorts

Thanks to caa548ca7d

* Fix autoshot not reinstating 0.5 sec cooldown on stopping (adapt Unit::IsNonMeleeSpellCasted method)

Source : 20602b3ead
This fix needed to rewrite and add more stuff to be fully ported from CMangos.

* Fix build compile

Implement "IsClientControlled()" missing
Rename some defines to match CMangos ones which are more relevant and would facilitate backports.
2020-11-02 21:44:10 +00:00
Antz
22b5a3461d
Style cleanup from the Mangos Futures Team 2020-02-25 21:05:13 +00:00
Antz
343193ef2d
Apply style fix pt3 2020-01-12 21:17:49 +00:00
Antz
ec54642cdf
Apply style fix 2020-01-10 16:15:51 +00:00
Antz
87b8e0ad13
Project tidy up and sync 2020-01-09 12:44:07 +00:00
Antz
d34051d719
Minor typo tidy up 2020-01-07 22:35:20 +00:00
Antz
57464c1f32
Happy New Year 2020 from everyone at getMangos.eu 🎉 2020-01-06 21:21:08 +00:00
Antz
6b0e4a7228
Happy New Year 2019 from everyone at getMangos.eu 🎉 2019-01-02 23:27:16 +00:00
Antz
52454825c7 Happy new year from getmangos 🎉 2018-01-14 10:24:47 +00:00
Antz
756c8ff797 Remove unused include directives
Based on the work of @stfx in commit:
https://github.com/cmangos/mangos-classic/commit/48a84fb
2017-01-20 23:20:46 +00:00
Antz
cb2d60ba17 🎉 Happy 2017 from everyone at getmangos.eu 2017-01-01 14:19:24 +00:00
H0zen
0650132741 Refactoring db_scripts
The unity!
2016-03-25 02:13:06 +02:00
Antz
c453b05106 Corrected website URL 2016-03-20 22:09:21 +00:00
Antz
3967eddc87 [2016] Happy New Year from the MaNGOS Team 2015-12-31 21:15:37 +00:00
schmoozerd
95073a4d1c [Waypoints] Complete redesign of waypoint system
Rewrite Waypoint related commands (c2612)
Toggle the commands .wp add .wp modify and .wp show to be able to work with waypoints from creature_movement_template

Technical changes:
* Move Path Selection to WaypointManager
* Set visual waypoints to be summoned npcs

Remove .npc addmove command to add a waypoint. (c2619)
For this .wp add command is expected to be used

Remove unneeded functions from WaypointManager (c2620)

Waypoint Commands: Improve export command, remove import command (c2621)
* Also finally drop the wpguid columns from creature_movement[_template]
* Also remove all static spawns of id=1 (they are usually waypoints from the old system)
* Fix a minor bug in WaypointManager than can result in a crash if bad params are passed

Waypoint-Commands: Prefer current path's movement for handling (c2626)

WaypointMovement: Allow External sources to load waypoints (with different path ids) (c2627)

* Add SetExternalWaypointTable(..) function to ScriptMgr.h scope to be able to define from which table external waypoints are loaded
* Add AddWaypointFromExternal(..) function to ScriptMgr.h scope to load points into WaypointManager
* Expand MotionMaster::MoveWaypoint function to use source and pathId for specifying which path to load
* Expand MotionMaster::MoveWaypoint function to use some overwrite information for "entry".
  This will be helpfull to have one path for mobs with different entry (ie ally/horde npcs with same behaviour)
* For externally loaded waypoints let CreatureAI::MovementInform have EXTERNAL_WAYPOINT_MOVE(256) + pathId as type.
  This will allow an external user to know which of "his" paths is used
* Adapt the related commands a little bit such that parts of the commands will also be usable for external paths
  At the moment .wp show and .wp export work with external paths.

WaypointMovement: Add support to set the next waypoint (c2635)
* Also add support to initialize a path with waittime before starting movement
* Add additional types for external use of MovementInform such that MovementInform is called when a waypoint is started, or when the last waypoint is handled
* Improve some minor technical issues

Let .wp add command start with 1 as first waypoint (c2640)
2015-03-26 01:21:44 +00:00
schmoozerd
4819ec8ebc [Scripts] DBScripts-Engine: Implement new commands
* Add SCRIPT_COMMAND_MOVE_DYNAMIC to move to a random point or towards another unit

* Toggle GetRandomPoint function to be able to return a random point with min-distance or a given direction.
* Toggle MovementGenerator::GetResetPosition to be able to return a reasonable orientation for reset.

Ideas and requirement research by virusav!
Thanks to virusav and Grz3s for test-feedback! (c2603)
2015-03-23 22:52:40 +00:00
Antz
386f5374ab [Release20] Initial Release 20 2015-03-22 22:10:05 +00:00