Commit graph

6367 commits

Author SHA1 Message Date
mityada
de951b99da Fix typo in VMap BIH generation
Due to this typo some objects could be left out during BIH generation and thus never checked for intersection.
This breaks height and LoS calculations in some areas.

This occurrence of this bug can be seen in "Md_Mushroomcave.wmo". It can be found in several locations,
for example (-6140, -2960, 400), map 0.
In some parts of the cave mobs will either fall through the ground or fly up into the sky when chasing the player.
LoS is not obstructed there as well.

P.S. This typo presents in all MaNGOS cores.
2020-02-17 12:10:52 +00:00
Antz
f7418a4323 Fixed vs2012 build 2020-02-17 12:10:50 +00:00
H0zen
9f04a3b38f Fix Eluna crash. 2020-02-17 12:10:47 +00:00
Antz
2d960a4b1c Fixed some additional found nullptrs 2020-02-17 12:10:44 +00:00
Charles A Edwards
c7c407d8ce Incorrect cast fixed (#120)
uint32 should have been int32
2020-02-17 12:10:41 +00:00
Charles A Edwards
0303b1672d Updated to use the latest version of ScriptDev3
Updated to use the latest version of ScriptDev3
2020-02-17 12:10:38 +00:00
Charles A Edwards
299d895407 Displaying of the portait window fixed
Plus code tidied up, including the removal of unneccessary casts to
uint32.

Note: auto quest accept does not work.
2020-02-17 12:10:37 +00:00
Charles A Edwards
cea1a8172e quest_template columns now read and stored in the correct order
Columns now read and stored in the correct order for the quest_template
table.

New to m3 columns had been placed at the end of the SELECT statement,
and resulted in being stored in the wrong location.
2020-02-17 12:10:36 +00:00
Antz
00983174a5 Fix some code porting discrepancies 2020-02-17 12:10:35 +00:00
H0zen
f0febf526b Fix crash in BIH module due to uninitialized member variable. (#172)
* Fix crash in BIH module due to uninitialized member variable.

Should be ported to the other cores ASAP!

* Corrected typo.

Also applied VMAP fixes from Zero
2020-02-17 12:10:34 +00:00
Antz
f4f288f1cb AHBot rollup from previous cores
* Including H0zen's and Bdebaere's recent fixes
2020-02-17 12:10:33 +00:00
Charles A Edwards
600205641d Cmangos Cata commits applied
I thankee, cmangos :-)

Commits:

13271d6 Commit Ported  Core Pet DB cleanup and simplification
60d6e29 Commit Imported  Core Utilize flags in PetAI (And uniform extra
flags with the other cores)
06d30ce Commit Ported  Core Make pet assist owner on summon if not a
passive
2821da8 Commit Ported  Core Fix Guardian reactions
4f88a9e Commit Ported  Core Pet AI Fixup
67e0558 Commit Imported  Core Fix pet unsummon on mount
f50041f Commit Imported  Core Fix player rooted after possesing an unit.
df59a93 Commit Imported  Core Syncing up pet work
056f4f5 Commit Imported  Core Fix a couple of invalid name for spell
attributes
6a58f1f Commit Imported  Core only save correct auras on
pet::SavePetToDB
34ab59b Commit Imported  Core Hunter summon pet (call pet) checkcast
fixup
dfbb69c Commit Imported  Core Handle owner entering combat properly
4b10eb4 Commit Imported  Core Pet Aggro
1bdb7e3 Commit Ported  Core Clean up pet stay functionality
1bdb7e3 Commit Ported  Core Clean up pet stay functionality
9b7b50e Commit Imported  Core UNIT_BYTE2_FLAG work
0777235 Commit Imported  Core Implement displaying group leader
indicators on players
5efab47 Commit Imported  Core Health funnel fixes
60e6a84 Commit Ported  Core Fix SMSG_QUESTGIVER_STATUS_MULTIPLE and
GetDialogStatus
60e6a84 Commit Ported  Core Fix SMSG_QUESTGIVER_STATUS_MULTIPLE and

GetDialogStatus
f8d3cbd Commit Imported  Core Fix talent spell cannot stack
32ba32e Commit Imported  Core Fix channeled spell distance check
interval
47ec2fa Commit Imported  Core Adding state to aura holder Now proc
cannot remove an aura not finalized
34588dc Commit Ported  Core Unbreak creature pets
bd079a1 Commit Imported  Core The (not so)Great Pet Rework
2020-02-17 12:10:31 +00:00
Charles A Edwards
068c67b932 Cmangos commits applied
Cmangos commits applied
2020-02-17 12:10:29 +00:00
Charles A Edwards
df3ab5df8e 13 cmangos commits implemented
commits:

432bd63 Commit Ported  Core Implement TakePossessOf to generalize the
code.
0b663eb Commit Ported  Core Implement a possibility to summon manualy a

temporary creature.
b6a9ead Commit Imported  Core Little rewrite of resurect code to prepare
ability
ro resurrect a player to a ghoul form.
e98b42c Commit Imported  Core Implement TemporarySummon Linked aura to
owner.
ab139ff Commit Imported  Core Do not force the creature to attack
summoner in all
case
555f055 Commit Imported  Core Avoid possibility to charm more than one
new
creature for an unit.
fd78c4a Commit Imported  Core Fix problem that occur when the charm unit
field is
updated after the possess bar.
e9821e2 Commit Imported  Core fix lightwell gameobject not appearing
after spell
is cast
17d0e93 Commit Imported  Core Implement logic for Target 95 as
TARGET_VEHICLE_DRIVER
42b3545 Commit Imported  Core Now npc/gameobject interaction will remove

unauthorized aura
1195398 Commit Imported  Core Improve functionality for eventAI action
26 -
ACTION_T_QUEST_EVENT_ALL
72b7a48 Commit Ported  Core fix pet stay
245f068 Commit Imported  Warlock [Charm] prevent charming multiple
demons also remove
pet temporarily when casting specific channels that summon other charmed
creatures
2020-02-17 12:10:28 +00:00
Charles A Edwards
18dd18780d Lots of cmangos commirs applied 2020-02-17 12:10:26 +00:00
Charles A Edwards
8431568536 Many cmangos commits applied
Many cmangos commits applied
2020-02-17 12:10:24 +00:00
cyberium
cba86c231e Format specifiers was not correct in lootmgr 2020-02-17 12:10:23 +00:00
Charles A Edwards
d19646ddf1 Fix applied for Quest Log, Bags, and money issues
Quests were not going into the Quest Log.
Could not move items around in bags.
Total money could not be viewed (always 0).

Plus additional unrelated fix - incorrect parameter definition of
function.
2020-02-17 12:10:19 +00:00
cyberium
de32715f9c Add possibility to write cmangos command via a whisp.
(a gm can now revive himself via /w xx .revive)
2020-02-17 12:09:55 +00:00
Oniryck
81fdf3f77c Fix possible problem with 'allow two side interaction' and loot. 2020-02-17 12:09:55 +00:00
Charles A Edwards
f88345c314 Fix for Powers defaults always being 0
Fix for Powers defaults always being 0

The setting of the Warden defaults resulted in this issue!
Warden in general in broken on m3
2020-02-17 12:09:48 +00:00
Charles A Edwards
5a1f96eef5 Player health regen fixed - temporary fix
The regen wroks, but only due to assigning the default regen value as a
constant, instead of loading it from the mangosd.conf file.

The reading of the value from the mangosd.conf file still needs to be
fixed.
2020-02-17 12:09:47 +00:00
Charles A Edwards
0569fdf697 Crash on exit to login screen resolved
Had to comment out warden related code, as this caused a server crash
when a player exited to the login screen.

Note: Warden had to be disabled elsewhere due to crashing on entering
the game world.
2020-02-17 12:09:46 +00:00
Charles A Edwards
95cee3b86c Checking of TrainerTemplateId fixed
The check for when the TrainerTemplateId is zero was missing.

Also, the world database revision has been updated in the revsion.h
file.
2020-02-17 12:09:46 +00:00
Charles A Edwards
83a2c9a1a8 Correction made to DBC file format strings
SpellPower
SpellItemEnchantment
SpellRadius
SpellRadius
2020-02-17 12:09:45 +00:00
Charles A Edwards
ada080f9c0 Correction made to file name
Correction made to file name
2020-02-17 12:09:41 +00:00
Charles A Edwards
ef99e52743 Cata areas added to SD3
Maelstrom
Hyjal
Vashjir
Twighlight Highlands
Uldum
2020-02-17 12:09:39 +00:00
Charles A Edwards
fa0711b3be Check player exiting waiting area while starting battleground
Cmangos commit:
5078176 Check player exiting waiting area while starting battleground
2020-02-17 12:09:37 +00:00
Charles A Edwards
c78d8199df Unused code removed
Code related to the non-existent table, character_battleground_random
removed.
2020-02-17 12:09:35 +00:00
Zilvereyes
d88e38e549 Synchronized Conf files for easier comparison (#96) 2020-02-17 12:09:34 +00:00
Charles A Edwards
6ac38a0d65 Update Waypoint System and Commands
Update Waypoint System and Commands
2020-02-17 12:09:33 +00:00
Charles A Edwards
8cac2f42db Mant more cmangos Cata commits applied
Commit:
2020-02-17 12:09:30 +00:00
Charles A Edwards
6db0ba8ae9 Weather system fixed
Fixed by implementing the cmangos Cata commit
[c13018] Improve Weather handling
and comparing their code with the current system.

Thanks,. cmangos :-)
2020-02-17 12:09:27 +00:00
Charles A Edwards
a800f3b1ad Many, many cmangos Cata commits applied
The following commits were either applied or found not to be applicable:
2020-02-17 12:09:25 +00:00
Charles A Edwards
6d38ec7ffa Server start up error fixes
Server start up error fixes

Misnaming of the creature_template table's column.
Change to how the check is made on the creature_template table's
UnitClass column.
2020-02-17 12:09:20 +00:00
Charles A Edwards
cb8c076be9 Many fixes made to get the server to run again
Many, many fixes had to be made due to server failing to start up after
last major implementation of cmangos comits.
2020-02-17 12:09:19 +00:00
Charles A Edwards
b75ccd56a9 SpellEffect.dbc - correction to format string
Correction made to the format string of SpellEffect.dbc
2020-02-17 12:09:18 +00:00
Charles A Edwards
eef77eadb9 Over 100 camangos Cata commits applied (to c12950)
Over 100 camangos Cata commits applied. up to and inclusing c12950.
2020-02-17 12:09:16 +00:00
Charles A Edwards
b4ec0440aa creature_template table's format string corrected
Correct format string now in place for the creatur_template table
2020-02-17 12:09:12 +00:00
Charles A Edwards
574dd3d075 Correction made to BuildChatPacket(( ) declaration
Correction made to BuildChatPacket(( ) declaration
2020-02-17 12:09:11 +00:00
Charles A Edwards
e4d1bdfc74 50 plus cmangos updates implemented (to c12832)
Implemented over 50 updates from the cmangos Cata repo, up to and
including c12832 Improve random movement

The core will now work with the creature_template update that was
applied to the database yesterday.
2020-02-17 12:09:10 +00:00
Charles A Edwards
12f8fbf37d Weather issue - disabled to prevent crash
Code commented out to prevent crash on entering game world

This will be addressed as soon as possible.
2020-02-17 12:09:08 +00:00
Charles A Edwards
3a3d19fb18 Warden issue - disabled to prevent crash
Code commented out to prevent crash on login.

This will be addressed as soon as possible.
2020-02-17 12:09:07 +00:00
Charles A Edwards
f0d405bad1 Missing code related to Warden added
Missing code related to Warden added
2020-02-17 12:09:06 +00:00
Charles A Edwards
323ad9b251 LoadCreatureClassLvlStats() fixed
LoadCreatureClassLvlStats() taken from Two due to Three's own
implementation of the function not working.
The table creature_template_classlevelstats has now been added to Three,
therefore this function needed to be working.

World database revision updated.
2020-02-17 12:09:04 +00:00
Charles A Edwards
a2537e7954 Script refactoring done as per previous cores
Script name now no longer exists in creature_template, item_template,
instance_template, and gameobject_template.

They are now held in the script_binding table.
2020-02-17 12:09:03 +00:00
Charles A Edwards
8580efa00f Added missing call to LoadDB2Stores( )
The core was not loading the DB2 files.
2020-02-17 12:09:02 +00:00
Charles A Edwards
1bf9a70cbd Description of the meaning of the format strings added
Description of the meaning of the format strings added to
SQLStorages.cpp
2020-02-17 12:09:02 +00:00
Charles A Edwards
95f9c41ab0 Code change for the acquisition of the locale
The original code was making use of a structure that is used for races
(Human, Orc, etc), which was rather an odd thing to do.

Seeing as the code would not work in this core, I took the opportunity
to rewrite it so that it checked that actual local file instead.
2020-02-17 12:08:59 +00:00
Charles A Edwards
3a9b00aafd ChatChannels fix - test PR
DO NOT MERGE

This is a test to see if it gets tripped up by Travis during the Linux
build.

If all okay, then this can be merged.
2020-02-17 12:08:58 +00:00