VladimirMangos
9311a36d2a
[9626] Fix one wrong cast case and simplify similar debug output.
2010-03-27 04:12:36 +03:00
VladimirMangos
534a54aea7
[9625] Add absent empty lines in end of sql updates.
2010-03-27 00:52:18 +03:00
jsee
d46e6629e6
[9624] varargs list (...) auto promote any float value to double and any less int type to int.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-26 22:04:32 +03:00
erickeir
634fd2a508
[9623] Fixed typo in mangos.conf comment.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-26 21:36:14 +03:00
NoFantasy
f56190db12
[9622] Add keys for gameobject table.
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-26 16:51:51 +01:00
zhenya
b7fa3d5d53
[9621] Typo in CastSpell.
...
Not affect code work except restore small code speedup.
2010-03-26 18:43:14 +03:00
VladimirMangos
c3e07a443d
[9620] Resolve linking problems for script DLLs
2010-03-26 06:54:33 +03:00
VladimirMangos
4be91fa97a
[9619] Reset more UNIT_FIELD_FLAGS at login.
2010-03-25 20:10:00 +03:00
VladimirMangos
b658b25ff8
[9618] More use ObjectGuid in spell/etc code
2010-03-25 13:59:46 +03:00
XTZGZoReX
21ff192866
[9617] Add WorldPacket.h to vcproj files.
2010-03-25 11:27:27 +01:00
QAston
f7e7e6b849
[9616] Fix ByteBuffer::appendPackGUID appending a superfluous byte.
2010-03-25 11:25:08 +01:00
XTZGZoReX
420429fdcf
[9615] Send AFLAG_NOT_CASTER only if casterguid == targetguid.
2010-03-25 11:21:17 +01:00
zhenya
0bf2d2b71a
[9614] Objects HIGHGUID_MO_TRANSPORT not have entry part in guid.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-24 22:57:48 +03:00
VladimirMangos
5f7fd7a35a
[9613] Use stdarg.h instead outdated varargs.h
...
This must restore build at *nix
2010-03-24 16:01:54 +03:00
VladimirMangos
1186577b56
[9612] Add to SendMonsterMove var args for optional values.
...
Also drop currently unused Unit::m_InteractionObject
2010-03-24 01:42:00 +03:00
AlexDereka
e0dc4d60c4
[9611] Add index for some tables in characters DB.
2010-03-21 14:24:03 +03:00
VladimirMangos
29e46fcda8
[9610] Use more readble format for default gossip_menu_option values.
2010-03-20 20:07:58 +03:00
NoFantasy
c9880047c9
[9609] Send zoneUnderAttack from EventAI if creature is a guard.
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-20 00:54:37 +01:00
XTZGZoReX
b537285260
[9608] Fix typo that broke guild creation timestamps :(
2010-03-19 18:29:49 +01:00
Machiavelli
faa07b3ca5
[9607] Fix SMSG_GUILD_INFO time part.
2010-03-19 17:19:01 +01:00
XTZGZoReX
bb1638fd2b
[9606] Send packed caster GUID for AFLAG_NOT_CASTER.
2010-03-19 16:39:29 +01:00
NoFantasy
a3de8da535
[9605] SetSummonPoint for any summoned creature.
...
Should fix a crash where summoned attempt moveRandom without having a valid summon point.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-18 14:05:24 +01:00
NoFantasy
e11c4b4e03
[9604] Prevent unexpected call to AttackStart when having unit_state stunned/died
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-18 11:34:50 +01:00
NoFantasy
bfecdc3ded
[9603] Implement use of UNIT_FLAG_PASSIVE for creature.
...
Add function to check creatures own ability to initiate an attack in MoveInLineOfSight.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-18 11:29:27 +01:00
VladimirMangos
a27ff3e79d
[9602] Simplify creating mail draft with content text, cleanup includes.
2010-03-18 12:10:47 +03:00
balrok
b20f9138f6
[9601] check for UNIT_FLAG_OOC_NOT_ATTACKABLE in DynamicObjectUpdater::VisitHelper
...
this will solve the problem that spiritguides could get attacked
(for instance with spell 2121)
thx to DasMy who helped with research :)
2010-03-17 21:29:20 +01:00
balrok
3db4616e17
[9600] restored work of DeleteAllBattleGrounds
2010-03-17 19:08:50 +01:00
NoFantasy
1f7f5955bf
[9599] Adding a few research comments for unit_flags and rename one.
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-17 02:08:02 +01:00
balrok
1b2eefd721
[9598] update battlegrounds per map + cleanup at delete
...
this will be useful, if we have multithreaded mapupdates one day
since i couldn't reproduce any errors regarding to self deletions of
battlegrounds i removed the m_deleteThis variable
2010-03-17 00:47:22 +01:00
balrok
24d45c6a08
[9597] create battleground map at bg creation
...
when a bg gets created it will also get it's map
(old behaviour was, that map got's created when first player entered the instance)
the reason why battlegroundmaps aren't instantiated with a player object:
* the only information from player-class we need is player->GetBattleGround()
also we can't use anything else
(e.g. playerlevel can be outside of bg-levelrange)
-> cause bgs depend pretty much on their maps this caused circualr dependencies between map,bg,player
* battlegroundmaps will _always_ be prepared by the bgsystem to set the proper data
* there is not much shared in the creational process with dungeonmaps
even the functioncall is different since players need to enqueue first for bgs,
therefore again the player's way to that instance is only through the bgMgr
2010-03-17 00:41:54 +01:00
VladimirMangos
db51c29235
[9596] Use area trigger zone check for inn leave case.
...
This is still have false cases but will more correct for specific area triggers.
Also let cleanup code and store less data for Player.
2010-03-17 01:42:22 +03:00
Lightguard
56c08e2ef9
[9595] Fix the amount of mana restored by spell 68082
2010-03-16 23:35:43 +01:00
Alex
5a33cf6700
[9594] Allow UTF8 strings via SOAP
2010-03-16 22:01:00 +01:00
VladimirMangos
e692862827
[9593] Fixed bug in instance binding in case heroic/25-man raids difficulties
...
In fact typo in my old commit at adding support MapDifficulty.dbc.
2010-03-16 18:15:29 +03:00
balrok
e92e01ebac
[9592] fix crash with ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT
...
BattleGroundMap has no GetInstanceData() function
2010-03-16 01:56:33 +01:00
VladimirMangos
43a0e595ea
[9591] Fixed rest state remove at leave tavern
2010-03-15 23:17:25 +03:00
balrok
1a5dafc904
[9590] fixed mangos.sql
2010-03-15 20:58:31 +01:00
NoFantasy
9823356946
[9589] Add additional field for storage of speed_run rate of creature
...
This allow independent rate of walk vs run speed. Existing field renamed to explicit speed_walk.
Note that default database rate for run is a result of the most common value seen, 8.0/7.0
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-15 15:47:56 +01:00
VladimirMangos
7d304b002c
[9588] Really fix freeze :/
2010-03-15 17:24:44 +03:00
VladimirMangos
cee1660a3c
[9587] Fixed freeze after recent loot roll code changes.
...
Thanks to j4r0d for testing.
2010-03-15 17:09:22 +03:00
Lightguard
0bf1d4e51f
[9586] Remove a useless include
2010-03-15 14:42:58 +01:00
VladimirMangos
703f9dd72a
[9585] Restore lost return in prev. commit.
2010-03-15 14:53:51 +03:00
VladimirMangos
6bfa8d81c6
[9584] Continue fix loot roll packets and related code.
...
* Propertly send itemSlot field and use it with looted target for roll selection.
* Remove references to NumberOfPlayers useless data send in args
* Fixed long existed bug with roll show when single player from group can roll item.
* Fixed possible crash at player leave group while item roll
* Fixed wrong item amount in stack in rolls inreasult use non-initilized field as info source.
* Remove unused item guid field from Roll and not lost for nothing item guids for this.
Thanks for help in research to TOM_RUS and j4r0d.
2010-03-15 01:31:43 +03:00
VladimirMangos
996a523302
[9583] Fixed speed recalculation at remove .mod speed rate while mounted/etc.
2010-03-14 20:55:54 +03:00
Opterman
547919e249
[9582] Send looted creature guid in proper field of loot packets.
...
Also use ObjectGuid in related functions.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-14 00:09:35 +03:00
laise
bae7d15bb9
[9581] Fixed apply damage reduction to melee/ranged damage.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-13 21:49:20 +03:00
VladimirMangos
ab7840a591
[9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build.
2010-03-13 17:35:47 +03:00
VladimirMangos
8416702d7c
[9579] Use ObjectGuid in some loot code.
...
Also use ObjectGuidSet instead std::set<ObjectGuid>
2010-03-13 14:06:27 +03:00
VladimirMangos
acde81fc54
[9578] Use ObjectGuid in visibility sets
2010-03-12 22:54:14 +03:00
NoFantasy
29b2c80449
[9577] Implement SCRIPT_COMMAND_DESPAWN_SELF (self = creature in this context)
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-12 17:32:24 +01:00