217 Commits

Author SHA1 Message Date
Antz
4b35099b7b [Rel21] Set baseline revision 2015-03-29 21:40:26 +01:00
Foereaper
8a3750706b Update .travis.yml
Travis should now run checks for both GCC and Clang, as well as run compile tests on both Linux and OSX
2015-03-29 21:39:09 +01:00
Foereaper
83ed9c72eb Fix Out Of Tree error for Linux builds
This should also fix Travis
2015-03-29 22:06:53 +02:00
Foereaper
a46150be98 Correction to FindPlatform 2015-03-29 03:31:38 +02:00
Foereaper
057ae919a8 Merge branch 'develop21' of https://github.com/mangoszero/server into develop21 2015-03-29 01:51:50 +01:00
Foereaper
ff3f5344a9 Large rearrangement and cleanup of base cmake system
Thanks to Trinity for some conceptual inspirations!
2015-03-29 01:51:26 +01:00
Antz
7428943889 Merge pull request #2 from Evildead666/develop21
enhance readability and correct numbers
2015-03-28 16:15:20 +00:00
Evildead666
93f6f9953a enhance readability and correct numbers 2015-03-28 14:29:20 +01:00
Antz
dfe72e4234 [Clean] Some code cleanup 2015-03-26 23:29:50 +00:00
Antz
13c037972b [Core] Some minor text cleanup 2015-03-26 23:15:59 +00:00
Foereaper
28521a337b Updated Eluna hash 2015-03-26 14:48:26 +01:00
Machiavell1
0894ff4720 [Core] Fix SMSG_WHO show players matching given criteria. (c2651)
Used to be total number of players online.

Also limit shown players to 49 which is how it used to be on retail.
2015-03-26 13:43:35 +00:00
stfx
4edda934a8 [Core] Clarify weather packet (c2649)
Also clamp weather density for .wchange command instead of just return an error

Thanks to @Laizerox for info and @cala for testing
2015-03-26 13:32:25 +00:00
Rochet2
63343716b5 Eluna: Remove travis script for getting last eluna
Get the designed eluna version instead.
2015-03-26 15:31:27 +02:00
stfx
d6fc18dc37 [Core] Remove unused function parameters (c2647) 2015-03-26 13:14:51 +00:00
Flying--Dutchman
271b031265 [Core] Normalize Username so that Telnet users can use lower case usernames (c2646)
Username wasn't changed to uppercases, therefore the SHA1 hash is always wrong when users have lowercases in their username.
Result: Users cannot log in with telnet.
2015-03-26 12:40:59 +00:00
xfurry
64c781f42e [Core] Start dbscripts_on_spell for SPELL_EFFECT_TRIGGER_MISSILE with missing spell id (c2645) 2015-03-26 12:25:02 +00:00
krullgor
25cb227e14 [Core] Fix item Lifegiving Gem, in classic it was providing 15% health (c2644)
Was changed to 1500 in tbc.
2015-03-26 12:15:54 +00:00
krullgor
c68ae831b6 [Core] Fix Improved Shield Block Talent Its additional charge was removed by a Dummy Effect (ZERO Only) (c2642) 2015-03-26 12:08:48 +00:00
schmoozerd
c9d7879cd9 [DBScripts] Implement SCRIPT_COMMAND_SEND_MAIL (c2639)
Attention DB-Devs:

The fields quest_template.RewMailTemplateId and .RewMailDelaySecs are scheduled to be removed
2015-03-26 11:53:27 +00:00
virusav
5feded2664 [Core] Pool-System: Allow pooling non-lootable gameobjects (c2638) 2015-03-26 11:38:31 +00:00
cala
4a8a482151 [Core] Allow creatures to handle several EVENT_T_RECEIVE_EMOTE instead of one. (c2633)
Some NPCs can react to several emotes from player not only one.
Thanks @cyberium on nailing this.
2015-03-26 11:31:48 +00:00
kvipka
f119a6119b [Core] Fix channeling spells for unit (will not cast channeling spells when walking, attacking etc.) (c2632) 2015-03-26 11:27:36 +00:00
cyberium
606bcfc495 [Core] Fix spell 19714 is buff instead of debuff. May fix also other spells that use same aura. (c2628) 2015-03-26 11:15:10 +00:00
VelVet
c6d699e8ef xxx 2015-03-26 11:11:36 +00:00
Foereaper
5432d5e621 Merge branch 'develop21' of https://github.com/mangoszero/server into develop21 2015-03-26 11:55:35 +01:00
Foereaper
7cf82e2b2a Partial revert of PCH changes
Linux didn't like game and sd2 sharing the same pch structure
2015-03-26 11:55:14 +01:00
kvipka
4839283c1c [Core] Improved Blink (c2618,c2623)
1 - Implement generating path ( where unit can walk - there blink will available )
2 - Implement Water path (if blink starting before (or in) water - Z coord will safe, if starting IN water, and last point on a ground (if it available) - new Z will on a ground.
3 - Implement Safe blink , both parts :
  * - blink at abyss ( unit will stoped before abyss )
  * - blink in falling, where difference between unit Z and land Z < 8 yards - unit will blink on a land, if blink in falling, but difference will more then 8 yards - just blink forward

All parts of blink has check LoS (c2618)

Blink -> Check if we are near of liquid level before assigning previous Z to next Z. (c2623) @cyberium

Also when we tp to water we have to set final z a bit under the liquid level. Not at liquid level.
2015-03-26 10:33:26 +00:00
cyberium
4de5fa3543 [Core] Implement holes handling on map. Now GetHeight correctly returns no height when a hole is detected. This is very useful in vmap object because in some cases we had a bad value returned by map data wich makes it hard to choose the right height. (c2617) 2015-03-26 10:15:02 +00:00
xfurry
57f1039ece [Core] Allow GAMEOBJECT_TYPE_BUTTON and TRAP respawn using SCRIPT_COMMAND_RESPAWN_GAMEOBJECT. (c2615/2634) 2015-03-26 10:03:11 +00:00
schmoozerd
93aef79e8a [Core] Fix crash when using console commands 2015-03-26 09:57:57 +00:00
Antz
15bd01600e Implement player rank in defensive channels
Based on (c2613) by @Laizerox
2015-03-26 09:33:04 +00:00
Antz
960e2f3252 [DB] updated base world DB version 2015-03-26 01:49:16 +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
Antz
e8eb4b3b94 [Rel21] Set baseline revision 2015-03-25 12:19:44 +00:00
cyberium
fa27dff227 [Core] Add "go" and "to_me" option to ".mmap path" command. (c2611)
- Select a creature and type ".mmap path go" to move to that creature using generated path.
- Select a creature and type ".mmap path to_me" to see path from creature to your player char.
- You must be a GM to see these points.
2015-03-25 12:00:53 +00:00
cyberium
8f326bbe32 Add a debug command to show all possible random point for selected creature. (c2610)
To use it
- You must be GM
- Select a creature and type ".mmap testheight" to view point (using default respawn radius)
- If no selected creature it work around the player char itself.
- You can specify the radius '.mmap testheight 20"
2015-03-25 11:51:34 +00:00
cyberium
c6210ba12c Improve confused, random and fleeing movement generators.
Improve random movement generator. (c2607) @cyberium

Now creatures will have possibility to move up/down on swim/fly situation.
Random groundpoint  will have more accurracy and the creature have less chance to go throught object.

Note:
- Some creature may have invalid value like inhabit type and other flags in relation of movement in water. If its the case the result is not so good. DB must be corrected for these creatures.
- we have to find a way to handle correctly movement flags.

Make sure player stop moving when confused aura is removed. (c2629) @cyberium
modified version of @kvipka work

Improve confused movement generator. (c2630) @cyberium

Improve fleeing movement generator. (c2631) @cyberium
2015-03-25 11:34:46 +00:00
Foereaper
fec7b5cd5f Switch to development hashes 2015-03-25 12:01:10 +01:00
xfurry
c0b73d3fee [AI] Fix TARGET_SELF-TARGET_SCRIPT target combination (c2606)
Also introduce more symmetric behaviour for TARGET_FOCUS_OR_SCRIPTED_GO
2015-03-25 10:57:01 +00:00
Charles A Edwards
347fb87b3d Case statement not terminated properly
missing break;

It caused a start-up error, besides being totally wrong.

My bad :(
2015-03-25 10:53:01 +00:00
Antz
cebb3244a0 [Eluna] Update version 2015-03-25 10:21:10 +00:00
vladimirmangos
fb192cab4d [Core] Fix .goname command (c2605) 2015-03-24 23:35:40 +00:00
schmoozerd
edfd397ba3 [Weather] Improve and Finalize new Weather system
(c2604) @schmoozerd
* Move Weather handling from World to Map class
* Add new Map::SetWeather function to force a weather for a zone
* Allow .wchange command to also create Thunderstorm or BlackRain

(c2609) @cala
- Remove enums irrelevant for Classic
- Fixe a few errors in auto merge from previous backport
- Change packet formatting to Classic structure
Thanks @stfx for his help and reviewing this fix and @laizerox for research
2015-03-24 23:13:17 +00:00
Foereaper
867df4dd71 Revision fix
Apparently revision.h was ignored. Fixed now.
2015-03-24 23:27:34 +01:00
Foereaper
ac236d5d47 [Cleanup] Part 6
Restructured mangosd, realmd and some general cleanup

Moved docs to the correct doc folder

Moved SOAP related lib files to the correct dep location

Updated PCH naming convention for SD2 to match the rest of the source

General CMake cleanup

Possibly fixed postgre build, to be tested
2015-03-24 23:03:31 +01: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
Foereaper
beb3522e2a Merge branch 'develop21' of https://github.com/mangoszero/server into develop21 2015-03-23 23:12:05 +01:00
Foereaper
d3f068660d [Cleanup] Part 5
Cleaned up SD2 structure

Still some tweaks that could be done to the cmake file, will come back to this later
2015-03-23 23:11:43 +01:00
xfurry
0daecc2859 [Core] Implement instance data call for OnCreatureDespawn. (c2602) 2015-03-23 22:03:12 +00:00