Commit Graph

128 Commits

Author SHA1 Message Date
megamage
783e4fd3ff *Add new creature_template column VehicleId
*Allow spawn vehicles
*Make vehicles grid objects.

--HG--
branch : trunk
2009-03-28 22:44:09 -06:00
megamage
eb894f39e8 *First remove object from world then unregister it. This may fix some crashes.
--HG--
branch : trunk
2009-03-28 16:04:37 -06:00
megamage
312b8e5b73 *Merge.
--HG--
branch : trunk
2009-03-25 16:00:38 -06:00
megamage
581ae2719d *Do not allow to add/remove obj to/from world more than once.
--HG--
branch : trunk
2009-03-25 15:54:23 -06:00
megamage
fe08615d17 *Try to fix a crash bug.
--HG--
branch : trunk
2009-03-24 22:25:22 -06:00
megamage
f18a9c916d *Fix some crashes possibly related to vehicles.
*Fix a bug that client crashes when seer is far away from caster.

--HG--
branch : trunk
2009-03-23 20:13:37 -06:00
megamage
708449298e *Merge.
--HG--
branch : trunk
2009-03-22 11:37:59 -06:00
megamage
7d2eb958d5 *Do not set civilians as react state defensive as default.
--HG--
branch : trunk
2009-03-21 23:29:18 -06:00
megamage
59ce40e484 *Remove dual ERROR in logs Author: AlexDereka
--HG--
branch : trunk
2009-03-21 14:28:02 -06:00
megamage
8f627853df *More work on summon system.
--HG--
branch : trunk
2009-03-20 14:01:46 -06:00
megamage
a2392121f0 *Fix the bug that summon dbc is not read. Now creatures can be summoned.
*Make minipet as tempsummon instead of pet. Make totem as tempsummon.

--HG--
branch : trunk
2009-03-19 14:41:30 -06:00
megamage
2453f22123 *Merge.
--HG--
branch : trunk
2009-03-16 11:48:25 -06:00
megamage
8c1914a3ae *Init motionmaster before AI init. This fix some crash bug of script.
--HG--
branch : trunk
2009-03-14 23:24:21 -06:00
megamage
d90d0002e3 *Merge.
--HG--
branch : trunk
2009-03-14 09:24:59 -06:00
megamage
25720e5a90 *Move creature spell init from updateentry to initentry. This allows pet have spells defined in db.
--HG--
branch : trunk
2009-03-14 09:18:55 -06:00
megamage
a5882ee84a *Merge.
*"Fix Glowing Blood" is not merged. Outdated patch?

--HG--
branch : trunk
2009-03-13 18:48:53 -06:00
megamage
ce4c9cb2ae *Allow not to switch to charmed AI for some scripts.
--HG--
branch : trunk
2009-03-13 17:48:57 -06:00
megamage
146b2560aa *Call stopmoving in moveidle.
--HG--
branch : trunk
2009-03-13 14:42:57 -06:00
megamage
16ee4a46c2 *Merge.
--HG--
branch : trunk
2009-03-12 14:22:59 -06:00
megamage
1fbfc6da64 *Assign possessed AI and pet AI to charmed creatures.
--HG--
branch : trunk
2009-03-12 14:15:44 -06:00
megamage
3d3656297f [7424] Codestyle: removed not needed \n in log output. Author: balrok
--HG--
branch : trunk
2009-03-09 17:56:51 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
417c7c8319 [7393] Implement access to client side holiday ids. Author: VladimirMangos
* src/game/GameEvent.* renamed to src/game/GameEventMgr.* for consistence
    * `game_event` now have new `holiday` field for store client side holiday id associated with game event
    * Added new enum HolidayIds with existed at this moment holiday ids.
    * New function "bool IsHolidayActive(HolidayIds id)" added accessabel from scripts for active holidays check.

--HG--
branch : trunk
2009-03-06 19:36:47 -06:00
megamage
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
megamage
8787c00ca3 *Disable charmed/possessed creature AI.
*Use general react states to replace charminfo react states.

--HG--
branch : trunk
2009-03-05 18:48:56 -06:00
megamage
b1677c901d [7362] Use IN_MILISECONDS where appropriate, other cleanups. Author: VladimirMangos
--HG--
branch : trunk
2009-03-02 16:53:50 -06:00
megamage
4cdb56a967 [7347] Prevent sql errors at GM-mode corpse save. Apply same chnages and for other pahsemask save part for consistense and safe. Author: VladimirMangos
--HG--
branch : trunk
2009-02-27 12:26:40 -06:00
megamage
d3a6900667 *Merge.
--HG--
branch : trunk
2009-02-26 20:43:35 -06:00
megamage
ee6418d92a *Update active object code.
--HG--
branch : trunk
2009-02-26 16:29:55 -06:00
megamage
ccde296fd3 *Fix some crash bugs.
--HG--
branch : trunk
2009-02-25 17:53:05 -06:00
megamage
5fda499266 *Merge.
--HG--
branch : trunk
2009-02-24 21:14:00 -06:00
megamage
fe5fa58275 *Try to fix some crash bug related to grid.
--HG--
branch : trunk
2009-02-24 20:05:29 -06:00
megamage
699bc588b8 [7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
    2) redundent includes
    3) wrong constructor :-part field initilization
    4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
    5) explicitly list not implemented achievement types.

    Also bugs fixed:
    1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
    2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
    3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.

--HG--
branch : trunk
2009-02-24 11:14:28 -06:00
megamage
5fe7b48037 *Merge.
--HG--
branch : trunk
2009-02-23 17:04:15 -06:00
megamage
34517a860f *More fix about move flag.
--HG--
branch : trunk
2009-02-23 13:14:04 -06:00
megamage
413d442fac [7306] Updated POI icons defines. Author: NoFantasy
--HG--
branch : trunk
2009-02-19 18:57:32 -06:00
megamage
e21b2c9baa *Implemented gameobjects and creatures grouping (pools of them)
*Groups (called pools) can be also member of any game event
Author: Neo2003

--HG--
branch : trunk
2009-02-19 18:44:20 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage
1ad4f8509c [7285] More code cleanups in static data structures use. Author: zhenya
--HG--
branch : trunk
2009-02-16 20:12:55 -06:00
megamage
319f70fb76 [7283] Use map for trainer spells for fast find data by spell id. Author: zhenya
--HG--
branch : trunk
2009-02-16 20:10:04 -06:00
megamage
19f8347a58 [7278] In case gossip flag use gossip menu instead quest menu as client expected. Author: NoFantasy <NoFantasy@getmangos.com>
--HG--
branch : trunk
2009-02-15 12:00:37 -06:00
QAston
14d85a183e *Make range check dependent from target.
--HG--
branch : trunk
2009-02-14 15:56:04 +01:00
megamage
6aee5fcbe7 *Merge.
--HG--
branch : trunk
2009-02-12 17:09:15 -06:00
megamage
2d2f433b4d *Merge.
--HG--
branch : trunk
2009-02-12 16:48:42 -06:00
QAston
c4fa6a5d54 *Allow creatures to have up to 8 spells in creature_template.
--HG--
branch : trunk
2009-02-11 22:59:02 +01:00
megamage
d696381f32 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
    * Use in functions and fields BattlegroundTypeId type instead uint32
    * Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
      Many bg have same raw values for type id and queue id but some can be affected by this bug:
      BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
    * Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
    * Remobe redundent for header itself includes for BG headers.
    * Use Auction location enum instead raw valus.
Author: VladimirMangos

--HG--
branch : trunk
2009-02-09 22:08:06 -06:00
Paradox
d230302b16 Replace tabs with spaces in more files.
--HG--
branch : trunk
2009-02-09 08:16:34 -05:00
Biglad
b0694d7e5e Fix exploit, dont allow possessed NPCs to gossip to player
--HG--
branch : trunk
2009-02-09 08:06:43 -05:00
megamage
4d008f2043 Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
2009-02-04 10:33:18 -06:00