Commit graph

3602 commits

Author SHA1 Message Date
NoFantasy
2455450cc0 [10302] Add dummy aura effect of spell 31606
Note: it is expected that script side update player displayId at end of related taxi path. If not, player will be stuck with the model.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-01 02:10:22 +02:00
VladimirMangos
e082e29bcc [10301] Init guild create date at create in same value in memory and DB. 2010-07-31 23:01:37 +04:00
VladimirMangos
4f19017872 [10300] Fixed some strange GetAura arg values. 2010-07-31 21:46:24 +04:00
NoFantasy
2ad9cd34b2 [10299] Add new script call ProcessEventId
Let script library know when some event is about to start. Event id's may be found in several sources, such as spells, GO's and transport/taxi paths.
Database scripts may be prevented by returning true from script side whenever needed. If false, DB script will run like normal.
New database table event_id_scripts will need a ScriptName for the event id, in same way as for example areatrigger_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-31 17:52:38 +02:00
Lynx3d
28d1ac66c3 [10298] Clear tavern rest when leaving building and prevent forced unmount when in GM mode. 2010-07-31 09:54:43 +02:00
VladimirMangos
af50d03f16 [10297] Drop CMSG_SET_FACTION_CHEAT support.
No reported long time and now finaly broken by spillover rep changes.
2010-07-31 07:21:36 +04:00
NoFantasy
7bdf05901d [10296] Move ChooseDisplayId to Creature class for access from script side
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 21:08:58 +02:00
dpedroia15
181428e132 [10295] Add dummy effect of spell 24930
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 19:30:09 +02:00
NoFantasy
767032029f [10294] Add dummy aura effect of spell 47190 (part w/ buff(transform))
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 19:16:35 +02:00
NoFantasy
25d9fd265b [10293] Correct a not exitan...non-existin... a word that is often spelled wrong
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 18:26:08 +02:00
Janu
99ac2d43a7 [10292] Fixed typo in mangosd.conf comment.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-30 20:23:48 +04:00
VladimirMangos
b1cbb1634d [10291] Use new fast/safe way for access aura in drink item spells.
Access useing aura->holder->some_effect_aura let have always pointer to exactly
expected aura from same cast if this need.
2010-07-30 19:42:30 +04:00
NoFantasy
ccd8f4f825 [10290] Simplify startup check for creature models
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 17:32:45 +02:00
NoFantasy
2ae0badf48 [10289] Adjust creature models system
This change will:
* make it easier to use cached data directly without any modifications
* correct issues regarding invisible models
* simplify certain aspects of model selection itself and make it somehow easier to control and maintain special cases.

Two new fields added to creature_model_info, to store modelid_alternative and modelid_other_team
* _alternative holds an alt. model, for cases where gender are the same, or is not male/female.
* _other_team is generally used for totem models, but may have future use.

This commit will possibly break a few things (visually) and will require DB projects to update their creature_template models data.
It is advised to use cache data as-is, and in addition fill creature_model_info for certain models, totems in particular, for expected appearance.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 16:40:17 +02:00
VladimirMangos
3099a99f9a [10288] Unsummon pet if pet direct control spell expire out of visibility range from owner. 2010-07-30 05:01:35 +04:00
VladimirMangos
ed737c55cd [10287] Fixed crash in result double deleting auras in some cases.
Pre-aura holder code always remove auras from diff lists before un-apply aura affect call.
Restore this way work for new aura holder code. This prevent different strange affects
when aura find by search when it already expected to be removed from target, including case when in
result som un-apply called code aura deleted 2 times.
2010-07-30 05:00:59 +04:00
zergtmn
119e97a1a1 [10286] Use unsigned type for creature_addon.guid
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-30 02:54:18 +04:00
VladimirMangos
696b8c06dc [10285] Use lazy computition for Guild::GetAccountsNumber 2010-07-29 22:31:40 +04:00
porteyoplait
3ca05f9d4d [10284] Fixed memory leaks at guild unload/disband
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also drop redundent m_PurchasedTabs field.
2010-07-29 21:56:10 +04:00
zergtmn
50fc4b61e1 [10283] Fix some typo in mangosd config file
This typo forces config to be saved as UTF8 in some text editors.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-29 00:33:46 +04:00
porteyoplait
d631895e1c [10282] Fixed typo in function name
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Note: prev. commit of same author (Toinan67 is alt. nick name ;) )

Also added some more checks in ref. function.
2010-07-29 00:27:03 +04:00
Toinan67
6302659d58 [10281] Send proper account amount in guild in SMSG_GUILD_INFO packet.
Data seen for example in client command /guildinfo output.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-28 23:34:50 +04:00
VladimirMangos
8b3fffb0ba [10280] Implement glyph 43425 2010-07-28 21:28:19 +04:00
VladimirMangos
04cb020e86 [10279] Unused function declarations after aura holders. 2010-07-28 01:50:59 +04:00
SilverIce
5d0b9d2808 [10278] Reserve space for EventAIHolder container 2010-07-27 18:23:31 +03:00
VladimirMangos
61d076442f [10277] Use typedef CreatureEventAIList, some other code style cleanups in EventAI code. 2010-07-27 12:20:59 +04:00
SilverIce
8827c72a79 [10276] Use more appropriate vector container instead of list as container for CreatureEventAI holders
vector container provides less time to access to contained elements
2010-07-27 03:34:27 +03:00
Dennis
e1ff3579c9 [10275] Fix initialization of DoSpellBonuses
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-07-26 22:51:36 +02:00
VladimirMangos
6244d992ef [10274] Make gcc happy after last commits. Restore Unix build. 2010-07-26 21:12:56 +04:00
VladimirMangos
6a4cae890e [10273] Avoid some redundent and recursive calls to SpellMgr singleton. 2010-07-26 16:51:52 +04:00
Lynx3d
730b4deaaf [10272] Add option for search distance to getHeight() functions and make Creature::FallGround() use VMaps properly.
This finally prevents flying creatures from falling to infinity (basically instantly diappearing) in several instances,
aswell as prevent creatures from falling inside larger solid object around the world.

Default height search is untouched, needs more research on how creature AI etc. will be affected.
2010-07-26 08:09:08 +02:00
NoFantasy
747d1ebdcf [10271] Include ObjectMgr.h to reputationMgr, helping *nix compilers to know what to do
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-25 18:48:30 +02:00
NoFantasy
fb1e8c01ef [10270] Implement basic system for reputation spillover
* Database table needs data for each faction that should give spillover to other faction(s). One faction may give spillover to max 4 other spillover factions.
* The spillover rate is multiplied with the points after bonuses and reward rate is set, Rate is given as: 0.5 for 50% gain, -1.0 for 100% loss, etc
* It is possible to restrict spillover faction by rank. If player has a higher rank with the spillover faction given in database, no spillover will be given towards this faction

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-25 17:05:34 +02:00
Patman64
647acd8caa [10269] Fixed typo in CONDITION_QUESTAVAILABLE fail case.
Not affect mostly code work, because used only for not existed quest data,
that checked at loading. So only possible at reload quest templates with
drop related quest.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-25 11:21:57 +04:00
Laise
0faa1185ae [10268] If schoolMask present for proc, ignore SpellFamilyFlags check 2010-07-25 07:31:25 +03:00
yad02
51297e87ae [10267] Fixed typo in comment.
Also thanks to SkirnirMaNGOS for pointing to this long existed patch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-25 00:10:32 +04:00
VladimirMangos
d9a7a2ba12 [10266] Implement CONDITION_ACHIEVEMENT and CONDITION_ACHIEVEMENT_REALM 2010-07-25 00:02:25 +04:00
NoFantasy
30def33fed [10265] Add comments for fields in struct FactionEntry, related to rep spillover
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-24 20:31:29 +02:00
VladimirMangos
27ba170388 [10264] Fixed build at Unix after auction changes. 2010-07-24 18:54:02 +04:00
VladimirMangos
8a3a03e0a6 [10263] Not allow listing pool elements in more one pool.
NOTE: sql update remove forbided by commit duplicates from pool_* tables in random way.
      So for more porper results DB better manually check and fix before apply it.
      This is mostly note for DB projects devs.
2010-07-24 18:49:32 +04:00
Salja
84dbc4c698 [10262] Fixed table auction name in characters.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-24 18:27:54 +04:00
Laise
68693b6e56 [10261] Revert [10259] -_- 2010-07-24 17:24:52 +03:00
VladimirMangos
129973569d [10260] Move pre-0.16 release sql updates to subdir 2010-07-24 18:21:49 +04:00
Laise
4d5729e68c [10259] Fix some iterator in Aura::HandleAuraModShapeshift 2010-07-24 17:08:24 +03:00
NoFantasy
756e29f891 [10258] Correct old typo in GetReputationOnKillEntry function name
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-24 13:49:46 +02:00
porteyoplait
5951ebeacc [10257] Fixed typo in "alliance" in recent commit changes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-24 15:27:27 +04:00
VladimirMangos
9a6535963c [10256] New auction command with subcommands for look different auction stores from anywhere. 2010-07-24 14:29:38 +04:00
Laise
dbf2d02762 [10255] Fix aura remove in Unit:: _UpdateSpells 2010-07-24 12:56:42 +03:00
VladimirMangos
e3befa2072 [10254] Remove dependence auction data from auctioneer guid.
* Field `auctioneerguid` replaced by `houseid` and table reanmed to `auction`
  (it list auctions and `id` is auction id).
* Update related code.

* SQL update fill `houseid` field by old `auctioneerguid`
  BUT: SQL update expect that you world DB named `mangos`.
  If this not true for your case you need modify SQL update BEFORE APPLY
  in 2 placed in part "mangos.creature AS c, mangos.creature_template AS ct"

* Another small possitive result: now possible easy select auctions related
  to some auction store (1-3 is one team actions, 4-6 another team auction,
  and 7 is neutral auction store for both teams
2010-07-24 01:45:59 +04:00
Lynx3d
6c6ce87867 [10253] Small cleanup in Unit::HasAura() to prevent redundant upper_bound calls. 2010-07-23 23:15:13 +02:00