Commit graph

4554 commits

Author SHA1 Message Date
arrai
11372496e5 [10104] Cleaned up WorldObject::HasInArc 2010-06-24 16:33:52 +02:00
VladimirMangos
593f1e81b9 [10103] More cleanups in InstanceSave
* Use single function for erase element from save list.
* Make lock bool checks class local (it need be replaced by normal lock object in future)
* Remove redundent now friend class declarations.
2010-06-24 09:10:57 +04:00
Grinder
f244e68c59 [10102] Rename loginDatabase for consistence with other global db object names
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-24 02:55:26 +04:00
VladimirMangos
3122c0d10a [10101] List G3D update in NEWS 2010-06-23 15:12:27 +04:00
VladimirMangos
b8246b1dbb [10100] Fixed some cases assign low guid to full guid update field. 2010-06-23 10:51:38 +04:00
VladimirMangos
1780113912 [10099] Prevent retunr mails to not existed characters.
Thanks to laviniu for find bug.
2010-06-23 10:29:47 +04:00
VladimirMangos
6c6e642acc [10098] Re-apply to ACE hack for support utf8 config files
It has been applied in past to old config loading code.
2010-06-23 07:03:18 +04:00
Lynx3d
ae3ad10bcf [10097] Update G3D up to v8.0b4
+ Got rid of zip lib requirement in G3D...
  Still can re-enable code by defining _HAVE_ZIP...

+ Remove silly X11 lib dependency from G3D
  Code doesn't seem to do anything yet anyway, and even if, we don't want it :p

+ Fix another weird G3D build problem...

+ Remove some __asm usage in g3d, which is not available on Win64
  My editor also decided to remove a ton of trailing white spaces...tss...

+ Reapply G3D fixes for 64bit VC

+ not use SSE specific header when SSE not enabled in *nix

+ Updated project files

+ New vmap_assembler VC90/VC80 Project

+ vmap assembler binaries updates

NOTE: Old vmap fikes expected work (as tests show) with new library version.
      But better use new generated versions. Its different in small parts to bad or good...

(based on Lynx3d's repo commit 44798d3)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-23 06:45:25 +04:00
VladimirMangos
2f3c518935 [10096] Allow negative X coordinate in .go command 2010-06-22 14:13:59 +04:00
Caskast
c2ae24c16c [10095] Fixed typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-22 13:17:01 +04:00
VladimirMangos
e88a718c5d [10094] Extract instance reset scheduler from InstanceSaveMgr
Reset scheduler code not need explicit access to instance saves,
and no reson mix it with instance save managment code in single class
2010-06-22 04:40:33 +04:00
VladimirMangos
79f70e9a81 [10093] Sort functions and cleanup InstanceSave delete code. 2010-06-22 03:31:21 +04:00
PSZ
a0fff5b8e7 [10092] Correct 3 more auras to check AURA_REMOVE_BY_EXPIRE mode after change in 10030
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-21 23:28:24 +02:00
Astellar
78400f8406 [10091] Use ACE for command line options parse.
Note: "--service run" renamed to "-s run"
in consistence with other serrvice options.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-21 06:40:10 +04:00
VladimirMangos
9d8dd578ca [10090] Really output log level at ".server log level" command. 2010-06-21 06:25:08 +04:00
VladimirMangos
8e6410d639 [10089] Change in event system work with pool system.
* `game_event_pool` dropped and related in momory data generated
  based by another pool tables content.

* Pool work with spawed at event and despawned at event object now different.
  - If object listed in `game_event_*` as spawned at event start and it's part of some pool
    then all other pool object must be listed as spawned with this event start, and more,
    if pool has mother pool, then all mother pool members must have objects spawned at this
    event start. More short: all object of some top (not have mother pool) mitbe or listed for some event start spawn,
    or not listed for any event start spawn.
  - If object listed in `game_event_*` as DEspawned at event start and it's part of some pool
    then nothing special required for other pool objects. Event systemwil command to pool system exclude for spawning and despawn referenced
    object until event end.

* Many checks has been added at event/pool data loading.
* Changes fix crashes related to event/pool common work.

Thanks to NoFantasy for help in research original problems and ways for improve code.
2010-06-21 06:13:02 +04:00
Laise
407156cbaf [10088] Restore work of 1120 and ranks. (Revert of [9962]) 2010-06-20 22:30:57 +03:00
VladimirMangos
a2a50c11be [10087] Move table in more expected mangos.sql part 2010-06-20 21:49:47 +04:00
VladimirMangos
619f01e150 [10086] Implement use .go command with shiftlinks or player name.
* Now if for .go command provided no X Y Z args command will not teleport player to nowhere.
* Instead command allow used with player name and work as simplifed .goname
  (teleport to player _point_ in user instance binding, not to player instance)
* Also command can be used with diferent point coordinates provided shift-links:
  - player (result for example .lookup player account)
  - creature (result .list creature command)
  - gameobject (result .list object command)
  - tele (result .lookup tele)
  - taxinode (result .lookup taxinode)
2010-06-20 07:13:20 +04:00
VladimirMangos
f28bc74e66 [10085] Allow loot roll value 100 2010-06-20 05:22:24 +04:00
LordJZ
c3cf108938 [10084] Resync. opcode names in Opcodes.cpp/.h
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-20 04:35:00 +04:00
VladimirMangos
123cf0a401 [10083] Made some Spell.h dependences more explicit. 2010-06-20 03:55:37 +04:00
VladimirMangos
1eed65d5ac [10082] Drop now unused dotconfpp lib code. 2010-06-20 02:20:51 +04:00
Astellar
41d178ca7b [10081] Use ACE config library instead dotconfpp
NOTE: all config versions update because in old state
      it's not compatible with new way loading.
      Look for *.conf.dist.in chnages in commit for update configs.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-20 01:54:42 +04:00
VladimirMangos
e63dc32f4d [10080] Fixed ghost teleport and cleanup code. 2010-06-19 22:44:36 +04:00
Laise
6bfd0aa5b5 [10079] Don't allow cancel passive spells 2010-06-19 20:52:18 +03:00
VladimirMangos
b62d64e7c7 [10078] Use const referecne to opcode handle. 2010-06-19 06:26:21 +04:00
VladimirMangos
d6138f01a6 [10077] Add delayed far teleports for opcode handlers
Some opcode handlers have many code with possible deep calling
far teleports by some reason (death, quest script, etc).
This can be triggering unexpected lost Map context and crashs result.

Note: player login opcode still have disbled delayed teleports (old way work)
just becase Player object created in it and not have flag set.
Calling point look not 100% safe but at this commit this way not chnages for while.
2010-06-19 05:56:55 +04:00
VladimirMangos
3e210228f9 [10076] Fixed crash at remove from world pet under SPELL_AURA_MOD_POSSESS_PET
* Prevent crash at camera list update at attempt increment end() iterator.
* Properly do unapply SPELL_AURA_MOD_POSSESS_PET (GetPet() can return NULL at call, and not need checked)
* Propertly call unapply at delete auras cases for auras that set player-caster mover pointer.
2010-06-19 02:31:07 +04:00
VladimirMangos
81851074ad [10075] Attempt use more expected by result buffs downranking algo.
* In small rate more fast
* Not affect non-buff ranked spells like 10909
2010-06-18 04:21:34 +04:00
VladimirMangos
07a931e141 [10074] Add IsPassive(SpellEntry*) function and use in cases wjern entry already known.
Some other small code cleanups
2010-06-18 02:17:51 +04:00
SilverIce
6ca609629c [10073] Make object active at applying view on it
also isActiveObject check moved to WorldObject - all worldobjects are inactive by default, excluding players
this is a final part of cameras implementation

(based on commit efc9623)

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

Also remove template-way code selection for object for Map::AddToActive/Map::RemoveFromActive.
This simplify function use from not Map code.
2010-06-18 00:19:12 +04:00
VladimirMangos
33d73f2efc [10072] More methods for access/modify ObjectGuid update fields.
* Some related cleanups.
* Also drop unused Player::SetFarSightGUID decalration as reported by LordJZ.
2010-06-17 06:00:16 +04:00
VladimirMangos
523584766b [10071] Not need add new cases inline for in-class function definition.
This is redundant from current C++ standart point.
2010-06-17 05:35:41 +04:00
NoFantasy
9091d56e70 [10070] Remove old, commented code no longer needed in SendMonsterMove
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-17 01:04:35 +02:00
VladimirMangos
b261529d31 [10069] Really do "Avoid assign random move to player owned creatures as default movegen." 2010-06-17 02:51:15 +04:00
VladimirMangos
492f467bcc [10068] Fixes in pet movments
* Use proper stop packet as expected. In case 0 trevel time used before move packet
  can generate infinity move forward (at client side).
* Avoid reset top movegen before add idle in pet stay command.
* Avoid assign random move to player owned creatures as default movegen.
* Finish follow movegen init including need-stay case.
2010-06-17 02:46:39 +04:00
NoFantasy
a0bbb0fec5 [10067] Allow item INVTYPE_RELIC to be equipped by npc from creature_equip_template
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-17 00:29:43 +02:00
ApoC
7dd5456401 [10066] Some tuning in consts.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-16 23:31:23 +02:00
ApoC
d967af6549 [10065] Some return values fixes.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-15 18:14:21 +02:00
VladimirMangos
0304448b85 [10064] Fixed recently show up crash in Unit::StopMoving. 2010-06-15 19:14:44 +04:00
VladimirMangos
5b15cd5dd2 [10063] Cleanup recent added code. 2010-06-15 17:19:45 +04:00
ApoC
c781dbbada [10062] Removed wrong method const.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-15 14:53:24 +02:00
ApoC
61959d285e [10061] Revision increase.
I am sorry, i forget to apply git_id :(

Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-15 14:51:18 +02:00
ApoC
38dbd27569 Added missing return statement.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-06-15 14:48:32 +02:00
Laise
9811858d44 Implement 49220 and ranks 2010-06-15 15:27:08 +03:00
Lynx3d
16ae6a2f85 [10060] Drop unused ACE_Stack_Trace in Error.h
This also can fix possible build problem in case use at system old ACE version.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-15 15:49:17 +04:00
VladimirMangos
2326292981 [10059] Cleanup in Player::m_mover uses
* Also fix triggered by related checks unread packet tail spam cases.
* Fix one case when expected death at fall controlled player
  under ground has been possible avoided
2010-06-15 03:50:52 +04:00
VladimirMangos
e82f4fbd29 [10058] Add to mangos.sql data from 09720_01_mangos_spell_proc_event.sql
Thank you to NoFantasy for pointing to inconsistance.
2010-06-15 02:15:08 +04:00
zergtmn
e34315f23f [10057] Type in UNIT_STAT_CONTROLLED
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-14 22:08:20 +04:00