Commit Graph

141 Commits

Author SHA1 Message Date
megamage
d697fbd158 *Merge.
--HG--
branch : trunk
2009-04-11 15:03:34 -05:00
megamage
9378a9cf21 *Add function GetPlayer and GetCreature for scripts. Please try to not use GetUnit in the future.
--HG--
branch : trunk
2009-04-11 13:42:34 -05:00
megamage
d1c2d98015 *Merge.
--HG--
branch : trunk
2009-04-10 18:01:15 -05:00
Rat
1e61dffc89 *added creature extra flag No Crit (CREATURE_FLAG_EXTRA_NO_CRIT)
*added function to disable reputation gained from monsters
*tabs2spaces in affected files

--HG--
branch : trunk
2009-04-10 18:11:09 +02:00
XTZGZoReX
2fe9fed7c7 * Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG--
branch : trunk
2009-04-07 10:51:45 +02:00
megamage
ac4edf0e09 *Update creature formation code.
--HG--
branch : trunk
2009-04-06 20:33:52 -05:00
megamage
e8866340ce *CreatureGroups fixed and improoved. By TrullyONE
- Multimap support for instances added.
 - Removed redundant group checks.
 - New movement rules (bool group formed/dismissed added).
 - uint32 Creature::GroupID replaced with CreatureGroup pointer.

--HG--
branch : trunk
2009-04-06 13:27:42 -05:00
QAston
20c02ef760 *Update of aura system.
--HG--
branch : trunk
2009-04-06 13:31:14 +02:00
megamage
f744c09075 *Merge.
--HG--
branch : trunk
2009-04-04 15:12:36 -06:00
megamage
86bd3bfb42 *Do not check formation for pet and summoned creatures.
--HG--
branch : trunk
2009-04-04 15:04:24 -06:00
megamage
8408fb7cd3 *Merge.
--HG--
branch : trunk
2009-03-31 18:21:45 -06:00
megamage
7f209249a2 *Do not call reset in construct funciton of script.
*Add function doaction to safely pass parameters between scripts.

--HG--
branch : trunk
2009-03-31 18:12:49 -06:00
megamage
031df598ab *Try to fix crash.
--HG--
branch : trunk
2009-03-31 09:18:39 -06:00
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