Commit graph

892 commits

Author SHA1 Message Date
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
DasBlub
ebb063beb9 [9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output
* on most *NIX systems, I64FMT is "%016lX" and not "%016llX"
* also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData

Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit.
Also, a few warnings from MaNGOS are left, they'll be fixed later.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-01-03 15:30:22 +01:00
NoFantasy
80b9e58106 [9105] Add missing argument in error message, _LoadSkills()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-02 19:10:33 +01:00
VladimirMangos
305b54d242 [9087] Fixes in pet unsummons
* Not unsummon warlock pets at logout.
* Prevent overwrite current saved pet at save secondary pet (with temporary unsummoned first).
  This possible at arena for example.
* Not fixed: in char list at login pet don't must be show with character if character saved at mount in game.
  Not critical and maybe not need fix as feature ;)
2009-12-30 21:56:20 +03:00
tomrus88
33cd1a0aca Merge remote branch 'origin/master' into 330 2009-12-30 01:16:15 +03:00
Lightguard
9c98bd92e2 [9077] Fixes for pet work in case mounted owner.
* No unsummon temporary pet at non-fly mounting.
* Implement client side disable pet's action bar for mountted owner time

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

* implement server side action disabled case (action bar modify, aggro reaction and autocast)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-28 16:00:55 +03:00
tomrus88
d98300b500 Merge remote branch 'origin/master' into 330 2009-12-24 15:52:11 +03:00
VladimirMangos
391133cb8f [9052] Fixed possible crash at fake items swap packet. 2009-12-24 01:24:30 +03:00
tomrus88
af9318ffa1 Fixed/updated some enums/packets. 2009-12-22 05:12:40 +03:00
tomrus88
d69abfcae1 Merge remote branch 'origin/master' into 330 2009-12-21 17:06:32 +03:00
VladimirMangos
15de428242 [9037] Cleanups in spellmode apply code.
* Add constructores for spellmode creating instead explcit fields init
* Use uint32 for family mask 2 instead unneded uint64

Also drop one from manual applies for uno-existed now spell.
2009-12-20 19:47:14 +03:00
tomrus88
370c6bbd4b Fixed some structs. 2009-12-20 06:11:51 +03:00
tomrus88
7d285c5ed4 Removed useless code. Mail loading triggered at login by client anyway. 2009-12-18 00:10:48 +03:00
tomrus88
57126880cf Guild bank hopefully fixed. 2009-12-17 18:57:35 +03:00
tomrus88
eba214eb8a Merge remote branch 'origin/master' into 330 2009-12-17 16:13:37 +03:00
balrok
0502de55af [9013] shapeshift spells
some shapeshift forms will give the player spells
so we need to tell the server that the player has those new
spells else he can't cast them since the server is thinking the player is
cheating

ps forms with spells:
FORM_GHOUL
FORM_THARONJA_SKELETON
FORM_TEST_OF_STRENGTH
FORM_BLB_PLAYER
FORM_TEST
FORM_ZOMBIE

--
so this mostly won't affect any ingame experience.. but good to have this
feature anyway.. :)

also changed errormessage if player has no reagents for spell..
thx to nofantasy
2009-12-17 14:02:59 +01:00
tomrus88
c745c5072f Merge remote branch 'origin/master' into 330 2009-12-16 02:45:05 +03:00
NoFantasy
98dd3296e8 [8990] Correctly return DEFAULT_GOSSIP_MESSAGE and never 0 as gossipTextId
Fixes problem with summoned and gossip and where no textId is defined in database

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-14 10:45:54 +01:00
VladimirMangos
b109d0886a [8979] Remove unexpected added lines in prev. commit. 2009-12-12 22:28:32 +03:00
VladimirMangos
1d608c482f [8978] Fix wrongly apply weapon damage mods to broken weapon. 2009-12-12 21:12:43 +03:00
NoFantasy
f47492ad24 [8977] Not send npcflag stablemaster to non-hunter player
Also check for player class vs stablemaster flag in GetNPCIfCanInteractWith()

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-12 18:38:27 +01:00
tomrus88
7c6cae1af7 Merge remote branch 'origin/master' into 330
Conflicts:
	src/game/ObjectMgr.h
2009-12-11 21:50:24 +03:00
NoFantasy
f0e7f01a7b [8968] Implement gossip menu options for GameObject
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-11 11:08:27 +01:00
VladimirMangos
ed7d561597 [8963] Make bindpoint field private and add required functions for use. 2009-12-10 12:22:17 +03:00
NoFantasy
4a2dc2438c [8962] Check player class instead of just active pet for gossip stable option
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-10 01:53:59 +01:00
NoFantasy
4ca8b0defc [8952] Use default gossip menu options if no options exist for "top level" menu.
Also not close gossip menu in cases where no action_menu_id is set.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-08 21:52:05 +01:00
VladimirMangos
1f7163f449 [8940] Make players and totems always immune to taunt. 2009-12-07 17:26:13 +03:00
NoFantasy
5d2189b7b7 [8929] Implement gossip scripts to be used with gossip_menu_option.action_script_id
Note that script is implemented for GOSSIP_OPTION_GOSSIP only (as not expected needed for other gossip options).
Also add a few more startup checks for LoadGossipMenuItems with check for basic errors in fields
2009-12-06 19:46:39 +01:00
NoFantasy
ec0043ac64 [8928] Rename internal names for gossipLocale and also correct reload gossip tables
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-06 11:55:53 +01:00
balrok
1de6692e04 [8926] BattleGround: call correct function at playerleave
it will now correctly drop the flag and correctly remove the player from
eye of the storm objectives

+ also avoid the spamming of all "Player not found!" messages in battlegrounds

    maybe all existing "player not found!" places should now get an assert(false)
    since this shouldn't happen anymore

+ also better error output in GetBattleGroundQueueIdFromLevel
2009-12-06 09:50:35 +01:00
NoFantasy
090c8b8854 [8923] Restructure gossip menus and make it possible to build selections by database
As result, gossip for GO is now possible. Moved related data structures and remove useless from code.
Please note that after some time, table npc_gossip will be fully removed (use menuId in _template in relation to gossip_menu as replacement).
Special thanks to GriffonHeart for help with research, discussions and ideas of code and thanks to Vladimir for helpful input.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-06 02:27:26 +01:00
tomrus88
922544739b Merge remote branch 'origin/master' into 330 2009-12-03 18:10:28 +03:00
VladimirMangos
d5d3f6d26a [8902] Do can store check at loading item to bag in same way as for other cases 2009-12-02 12:45:52 +03:00
NoFantasy
a8bd659872 [8900] Move most gossip related functions from Creature to Player class
Adjust arguments passed in functions accordingly, for easier implementation of gossip for Gameobjects in future.
Some additional code cleanup in affected functions.
2009-12-01 14:19:57 +01:00
VladimirMangos
5186046c5e [8897] More stricted checks for store operations.
* Use stricted definition valid pos for expected explicit pos cases
* Prevent attempts add bag to self at autostore.
2009-11-30 16:55:49 +03:00
VladimirMangos
d48ce8b717 [8896] Include character_skills table in pdump and drop at character delete. 2009-11-30 15:09:23 +03:00
tomrus88
90ee507cf7 Merge remote branch 'origin/master' into 330 2009-11-30 01:29:59 +03:00
VladimirMangos
ce104f6281 [8887] Fixed lost auras at login from spells learned at skill load.
This is mostly buffs form profession skill levels.
2009-11-29 13:40:22 +03:00
hunuza
4a6da1ad32 [8874] Extract player skills from data blob.
Thanks to vladimir for the update query.

Please make sure to make BACKUPs before you update your database.

The update might take a while depending on the size of your database.

Signed-off-by: hunuza <hunuza@gmail.com>
2009-11-25 18:22:22 +01:00
VladimirMangos
663038c7c7 [8870] Fix problem with max pet distance from owner.
* Avoid use hardcoded and different max distance from owner for pet (more at contienets and less in instances)
  Use instaed max visibility for map as expected.
* Explicitly pet remove at move pet to non-visible distance for player owner.

Original patch provided by Lightguard.
2009-11-24 19:10:38 +03:00
balrok
a1dc4d3263 [8862] Revert "[8859] fixed bug which allowed to loot items multiple times"
This reverts commit 47c743890e671d8f29a8a71e7a08e5d523f1c070.

bug wasn't fixed through this commit.. also those checks were wrong

in future it should work totaly different:
when lootwindow is opened the items must already be destroyed
moving items on the stack should be allowed
thx to seizerkiller for testing..

in this commit i just check if the item which should get moved
is getting looted
in Item::swap and guildbank this is already checked..
only the check at moving to own bank was missing
2009-11-22 23:57:56 +01:00
balrok
d63ea646a0 [8859] fixed bug which allowed to loot items multiple times
thx to burned for reporting
2009-11-22 16:41:17 +01:00
tomrus88
72b9dc318e Merge remote branch 'origin/master' into 330 2009-11-19 16:22:58 +03:00
VladimirMangos
754c1fed45 [8837] Fixed client side visual bug with login in "combat" mode. 2009-11-19 13:23:50 +03:00
VladimirMangos
fe1fae46ee [8830] Restore build at *nix. Make MAKE_PAIR* users includes explicit.
Comment for recently added field also.
2009-11-18 23:57:20 +03:00
balrok
7a2764e0fe [8829] some more places where we call redundant SaveToDB
i also added now my assert with which i've found them..
maybe someone want's to look at other cases too :)
2009-11-18 19:13:03 +01:00
tomrus88
fe55f76a26 Merge remote branch 'origin/master' into 330 2009-11-16 02:01:51 +03:00
tomrus88
93332fb1a0 - Fixed SMSG_GROUP_LIST opcode once again (I hope so).
- Fixed typos in SQL update.
- Added some nice comments.
2009-11-16 02:01:09 +03:00
balrok
31a2996374 [8822] one big insert for character_aura and _SaveSpellCooldowns
this is much faster than many multiple inserts..

code is partly stolen from AchievementMgr inserts (:
2009-11-15 20:36:05 +01:00
balrok
c3c7ab2f63 [8816] call uncharm for all units at delete
currently it was only done for players - but units
also can have charms which must be removed
2009-11-14 19:11:04 +01:00