Commit graph

4436 commits

Author SHA1 Message Date
VladimirMangos
3bfe4bbd3b [11134] Make GCC happy and restore build at *nix. 2011-02-11 18:15:50 +03:00
VladimirMangos
da1b616312 [11133] Implement template functions for call functor for all Map/MapPersistentState with some map id. 2011-02-11 04:05:18 +03:00
LordJZ
f4a2a582d9 [11132] Typo in local var name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-11 01:05:14 +03:00
VladimirMangos
26a4eed36c [11131] Check restriction for pool spawns at instanceable maps.
Pool system can't have mixed pool spawns at different maps
if one from map instanceable. In last case all pool spawns
must be at same instanceable maps for any pools that have
common mother pool.

Now this checked at server sartup.
2011-02-10 20:20:02 +03:00
VladimirMangos
d7cf24970a [11130] Make abstract function with body syntax compatible with GCC. 2011-02-10 19:36:07 +03:00
VladimirMangos
6d26ec0e7f [11129] Added WorldMap/WorldPersistentState subclass for non-instanceable maps.
This let have symmetric Map/MapPersistentState (sub)classes hierarchy.
2011-02-10 18:52:23 +03:00
NeatElves
98aff742c1 [11128] Fixed Unix build.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-10 15:58:22 +03:00
VladimirMangos
108feb993d [11127] Rename src/game/InstanceSaveMgr.* -> src/game/MapPersistentStateMgr.* 2011-02-10 05:35:07 +03:00
VladimirMangos
dde16bc48c [11126] Rewrite InstanceSaveMgr related code.
* For better fit name to related map type class InstanceMap renamed -> DungeonMap.
  This clarify usage Instanceable()/IsDungeon() because BG/Arenas maps also instanceable maps.

* InstanceSave have many code related to only DungeonMap case, so it replaced by 3 new classes:
   - MapPersistentState as base class, used for non-instanceable maps (continents and some other) (!Instenceable())
   - DungeonPersistentState subclass of MapPersistentState, used for DungeonMap states (IsDungoen())
   - BattlegroundPersistentState subclass of MapPersistentState, used for BattlegroundMap states (IsBattleGroundOrArena())

   Now all dungeon resets code moved to subclass and all player/gpoup bound functions/structures also use it.

* Map::GetInstanceSave renamed to Map::GetPersistentState and DungeonMap have specialized version
  return DungeonPersistentState (same pointer in fact with proper subcalss type)

* InstanceResetScheduler renamed to DungeonResetScheduler
2011-02-10 05:20:56 +03:00
NoFantasy
0d16b0bdc7 [11125] Add dummy effect of spell 39189
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-10 00:58:54 +01:00
VladimirMangos
01178b69e5 [11124] Avoid save in DB instance/respawn data for BGs/Arenas.
* Fixed bug with not unloaded InstanceSave for BGs/ArenasPartly.
  This bug introduced with recent InstanceSave creating for all maps.
* Avoid save respawn data to DB for BGs/Arenas.
  No reason save to DB because BGs/Arenas reset at map unload.
* Always create InstanceSave for Map without recheck suggested data integrity.
  Map::GetInstanceSave expected always return != NULL value.
2011-02-09 18:34:29 +03:00
VladimirMangos
6cfa64db97 [11123] Move respawn data to InstanceSave.
This make prev commit more useful.
In future InstanceSave also planned store local pools state.
2011-02-09 06:09:32 +03:00
VladimirMangos
852c4ddf32 [11122] Create InstanceSave for non-instanceable maps.
This preparation for use structure for store another map persistance data like respawn times.
2011-02-09 04:00:14 +03:00
VladimirMangos
cd867eadef [11121] Really create records in world table for non-instanceable maps. 2011-02-09 01:01:34 +03:00
NoFantasy
e3387ec6b0 [11120] Remove all auras at creature respawn.
This will remove death persistent auras and AI does no longer need to remove any such auras at respawn manually (GM will still see the death persistent aura all until creature respawn).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-08 21:21:08 +01:00
VladimirMangos
8354de4927 [11119] Fixed whitspaces line. 2011-02-08 05:01:24 +03:00
VladimirMangos
ad29153ee0 [11118] Not report empty world_template as error. 2011-02-08 04:40:16 +03:00
VladimirMangos
f73868a703 [11117] Allow for non-instancable maps have InstanceData and instance scripts.
* New table added for non-instanced maps (except BG/arena):
    - `mangos`.`world_template` (script mapping to non instanced data)
    - `characters`.`world` (saved script data string storage)

* InstancedData created for any map types including BGs/arenas, that allow have scripts
  state for any maps, but BG/arena instance data not saved.

Note: Possible structures will renamed later for clarify apply to any type maps,
but avoid for now for simplify changes and hard affect to script library sources.
2011-02-08 04:15:13 +03:00
blueboy
332c4174d2 [11116] Fixed sql update guards data.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

silverice, please use git_id -s instead manual editing for sql updates ;)
2011-02-07 14:34:11 +03:00
SilverIce
50e681146e [11115] Implement .gm setview command 2011-02-07 04:14:09 +02:00
SilverIce
b2d81eae1b [11114] Reset camera view at removing from world
this helps us to clean reference between viewpoint and camera in some cases
2011-02-07 03:50:04 +02:00
VladimirMangos
8069cf09d2 [11113] Fixed spell effects with target pair (18, need_dest_target_set)
Like spells expected always caster object (unit/gameobject coordinates set as dest point).
2011-02-07 03:47:40 +03:00
VladimirMangos
abbd2f09be [11112] Implement use cooldown check for trap/goober gameobjects. 2011-02-07 03:45:01 +03:00
VladimirMangos
b120464db7 [11111] Missing end lines in 2 files. 2011-02-07 00:57:11 +03:00
VladimirMangos
9f733f80eb [11110] Drop unused local vars 2011-02-07 00:32:44 +03:00
VladimirMangos
caf9f0cae2 [11109] Move DoMeleeAttackIfReady to CreatureAI and reuse more wide. 2011-02-05 21:20:21 +03:00
NoFantasy
d1007e49ca [11108] Add (parts of?) dummy aura for spell 56422
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-05 11:31:05 +01:00
VladimirMangos
8c5ce115c9 [11107] Fixed possible crash in CreatureEventAI melee attack proccessing.
Added target check to CreatureEventAI::DoMeleeAttackIfReady,
but crash possible as result proccesing in caller function before melee attack
different EventAI events that possible can remove combat state or target.
2011-02-05 03:24:21 +03:00
mns
2f1410f1ff [11106] Fixed BG buffs event id in code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-03 02:54:35 +03:00
Schmoozerd
8e68d1bcaf [11105] Melee attacks distance
Inspired by patch provided by Feanordev.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-03 01:25:32 +03:00
Schmoozerd
aa4c1be8cf [11104] Update model data dependent from unit scale in .modify scale
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-02 21:36:12 +03:00
VladimirMangos
f09a4e2a1a [11103] Fixed item 40775 mount work
* Move code to dummy aura (main spell mount aura not applied yet in time scripting effect processing)
* Use special mount spell selection helper instead raw code.
2011-02-02 20:28:11 +03:00
VladimirMangos
44cb8b6dd4 [11102] Provide for mount helper function parent spell data.
This let skip for triggered spell redundent (like cast time) info.
2011-02-02 20:04:40 +03:00
VladimirMangos
cd3d815df6 [11101] Skip casting time for casts triggered by parent aura/spell.
Possible not need another (old) checks except this.
2011-02-02 19:58:19 +03:00
VladimirMangos
06cebecd50 [11100] Avoid send SMSG_DISMOUNT for non aura source mount state.
This fix problem with lost mount show at multi-node taxi path.

Thanks to blueboy for research problem.
2011-02-02 17:33:19 +03:00
NoFantasy
6f74fa1be8 [11099] Add script effect of spell 24720
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 12:32:50 +01:00
NoFantasy
abb7c64fb1 [11098] Add script effect of spell 24717 and 24737
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:53:14 +01:00
NoFantasy
a23f1a2e08 [11097] Add script effect of spell 24718
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:40:24 +01:00
Morphau
65ad0231e7 [11096] Add script effect of spell 24719
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 11:31:02 +01:00
Schmoozerd
c05f910484 [11095] Add dummy effect of spell 68839
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 10:13:26 +01:00
zergtmn
ad64af1fdb [11094] Fix some C6246 warnings 2011-02-01 23:15:04 +05:00
Schmoozerd
343edf3c6c [11093] Limit maxtargets for spell 68950
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-01 14:34:57 +01:00
virusav
beeec1c0cd [11092] Add script effect of spell 24194 and 24195
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-01 14:07:26 +01:00
VladimirMangos
b106ec92f6 [11091] In similar way with prev commit rename extarctor sources magic string. 2011-02-01 05:38:38 +03:00
VladimirMangos
b315362b22 [11090] Clarify use diff vmap magic strings. 2011-02-01 05:27:47 +03:00
VladimirMangos
deb31679bf [11089] Move vmap files version magic string to single place in vmap_extractor_v3
No functional chnages in extractor.
2011-02-01 04:45:28 +03:00
NoFantasy
d4304d471d [11088] Add missing equipment for spell 41101
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:14:02 +01:00
NoFantasy
38758b31a1 [11087] Add missing equipment for spell 53790
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:02:06 +01:00
VladimirMangos
8ee7139de6 [11086] Store vmap file version magic string in single place. 2011-01-31 06:26:13 +03:00
Lynx3d
dcec49055d [11085] Also disable related cast check when vmap.enableIndoorCheck disabled.
Note: spells are also blocked at client side, so they can only be used with .cast command
2011-01-31 01:35:14 +01:00