25 Commits

Author SHA1 Message Date
Antz
bec53e14c2 [FIX] full block {} expected in the control structure. Part 2 2017-07-17 12:49:54 +01: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
59156f5ec1 Transports - phase 3
- The gnome engineers have finally repaired the computers of DeeprunTram, and now both trams travel properly between stations.
  - The pets try hard to learn the paths. For example, they will now properly follow their masters on bridges.
  - There are now 2 types of transporters: local transporters (elevators, platforms) and global transporters (ships, zeppelins).
  - Some obsolete methods have been removed.
  - Some methods have been rewritten to make room for the final phase.
2016-12-27 16:11:26 +02:00
H0zen
cdd3489f08 Various external fixes - part 9 (#168)
Ported commits from cmangos repositories
- https://github.com/cmangos/mangos-classic/commit/b09f961
- https://github.com/cmangos/mangos-classic/commit/14cb464
- https://github.com/cmangos/mangos-classic/commit/de7e4cc
- https://github.com/cmangos/mangos-classic/commit/0181ff1
- https://github.com/cmangos/mangos-classic/commit/be4f74b
- https://github.com/cmangos/mangos-classic/commit/1ede0a0
- https://github.com/cmangos/mangos-classic/commit/5cf8095
- https://github.com/cmangos/mangos-classic/commit/35e30d8
- https://github.com/cmangos/mangos-classic/commit/ff444d2
- https://github.com/cmangos/mangos-classic/commit/86568b8
- https://github.com/cmangos/mangos-classic/commit/a554fa5
- https://github.com/cmangos/mangos-classic/commit/c4606f3
- https://github.com/cmangos/mangos-classic/commit/6fcc33f
2016-09-13 15:50:30 +01:00
Oniryck
3d86eb2ae4 Fix possible problem with 'allow two side interaction' and loot. 2016-09-09 20:51:59 +01:00
H0zen
fbf53e316e Implement quest_relations table (#114) 2016-04-12 20:38:16 +01: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
Olion17
ceaf2aa1e9 cleanup inspired by GCC build 2016-03-02 23:34:54 +00:00
H0zen
42dbd2756c Refactor the areatrigger_teleport to use condition system.
- this commit is paired with a world database update.
2016-02-21 21:47:08 +02:00
Olion
93abbf4c72 Disable spawns: base checking entry, additionally - guid
Set `flags` to 1 and `data` to guid.
If flags not set, all spawns of the entry are disabled.
2016-02-20 22:26:59 +00:00
H0zen
f946e030c6 Fix server crash on CONDITION_GAMEOBJECT_IN_RANGE check.
- This fixes issue [986](https://www.getmangos.eu/issue.php?issueid=986)
2016-01-09 22:59:43 +02:00
Olion
b34cfa0a4a Added disables table
Mostly backported from TC.
Changed table format (mapID in lower 16 bit, areaID in higer 16 bit of data field).
Added CREATURE_SPAWN and GAMEOBJECT_SPAWN disable types.
2016-01-02 22:18:14 +00:00
Antz
3967eddc87 [2016] Happy New Year from the MaNGOS Team 2015-12-31 21:15:37 +00:00
Olion
ef4564adfa [Spell] Minor refactoring
Like HasSpellEffect method here, other now global-scoped methods from SpellMgr.h should be transfered into corresponding classes/structures (TODO).
2015-11-10 23:43:26 +00:00
H0zen
3d7be378f4 Fix server crash due to incorrect SQL parameter bindings.
This references issue https://www.getmangos.eu/issue.php?issueid=961
2015-11-10 15:43:59 +02:00
stormrage-project
6acf9c9d66 Honor flush and GetDateToday() method fix 2015-09-10 00:40:36 +01:00
Olion
8e6066a340 Cleanup: no more used after SD2 reactoring WorldTemplate stuff 2015-05-23 22:52:40 +03:00
evil-at-wow
6b5f0be841 [Core] Fix crash when using DB script command 34 (TERMINATE_CONDITION). (cz2656)
Using DB script command 34 (TERMINATE_CONDITION) was triggering an array out of
bounds access when debug logging was on, causing the server to crash. The array
is accessed with ConditionSource as index, but there was no corresponding string
for CONDITION_FROM_RESERVED_1. As a result, the array was missing one string and
accessing the array with the highest possible index, CONDITION_FROM_DBSCRIPTS,
accessed the array out of bounds.

Many thanks to @Schmoozerd for debugging and suggesting a fix and to @scotty0100 for patiently running many tests!
2015-04-03 22:59:35 +01:00
Antz
dfe72e4234 [Clean] Some code cleanup 2015-03-26 23:29:50 +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
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
Charles A Edwards
8f2743f880 Incorrect data structure used
Data structure that holds data from the gameobject_template table should
be used, not the creature_template table!

Oops, my fault :-)
2015-03-23 10:56:09 +00:00
Antz
386f5374ab [Release20] Initial Release 20 2015-03-22 22:10:05 +00:00