Commit graph

4794 commits

Author SHA1 Message Date
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
NoFantasy
61990de6dd [10252] Implement reputation_reward_rate for quests and creatures
* In addition, implement "flat" reputation for quests, where a value in RewRepValueN is given. Human diplomacy will not affect the total. The rate however will be applied, where a faction is defined with a rate for quests. Value in database are expected to be *100 of the actual value given (before rate are applied).
* New database storage can contain rates for quest/creature/spell reputation and will affect the base value given as reward. When for example the quest reward for a faction should receive 30% more reputation points, the rate can be set to 1.3.
* This will fix issues with certain quests that are using the expected RewRepValueId but where the outcome has been lower than expected.
* Note that if the rate is set to 0.0 it will disable reputation gain for the faction and type.
* Reputation rate for spells (spell effect) is not yet implemented

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-23 17:50:36 +02:00
VladimirMangos
50c2e8eca2 [10251] Clarify error message for one from redundent commamd data case. 2010-07-23 19:34:23 +04:00
VladimirMangos
9350c9990d [10250] Select auction store by house id only.
After this commit auction auctioneer guid used only for select auction house in packet or loading.
Next task replace it in DB by houseid, dependence DB data from creature guid isn't good.
2010-07-23 18:06:08 +04:00
Laise
02532a469a [10249] Don't interrupt area effects for channeled spells from target side 2010-07-23 09:22:05 +03:00
Lynx3d
33e7d46519 [10248] Implement applying proper penalty spell when making use of talent 46917. 2010-07-23 07:45:57 +02:00
VladimirMangos
5efb7410f2 [10247] Prevent lost items at problems with auction loading.
This will prevent adding to DD item data garbage not accessable from anywhere.
Now item will mailed back to owner.
2010-07-23 09:36:56 +04:00
VladimirMangos
9d8b66cf93 [10246] Restore work killCredit and kill achievements in regular difficulty instances. 2010-07-22 13:11:34 +04:00
fdb_
384915b0d0 [10245] Allow have custom starting area team/personal rating.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-22 10:29:59 +04:00
VladimirMangos
40ec688b2c [10244] Implement .stable gm command for open pet stable anywhere.
Maybe command not so useful for stable case because spell can be learned,
but it example how can be packet allowed depndent from player possibility
when some functionality base at many packets recieved from client.
Same way possible can be used for auction anywhere, maybe some other cases.

Also it will very usefull for 2.x/1.x branches where no another way... ;)
2010-07-22 08:49:15 +04:00
VladimirMangos
62e0e020a0 [10243] Traditional crash fix :/ 2010-07-22 07:35:14 +04:00
VladimirMangos
a121f7a3e5 [10242] Rewrite internal work chat command system.
* Use single command search function with recursion and reuse it in now more simple
  and consistent for execute/help/loading
* Add intergiry checks for hardcoded part of commands list. Fix some cases base at it.
* Fixed diff small problems in past code:
  - in console single symbol commands rejected (without dot start)
  - .help not output propertly subcommands list for not found subcommand
  - some other...
2010-07-22 06:51:16 +04:00
Laise
30a0701ca9 [10241] Fix expired spell interrupt 2010-07-21 13:01:59 +03:00
Laise
3e326311ad [10240] Fix some spells proc from spells that don't deal damage/heal 2010-07-21 08:16:23 +03:00
Lynx3d
4f0f701b63 [10239] Fix mangos.sql
I just had to forget one thing...
2010-07-21 03:33:30 +02:00
Lynx3d
c5038d2b95 [10238] Set flag for offhand melee spells to allow proper triggering of weapon-specific effects. 2010-07-21 03:22:40 +02:00
Lynx3d
a4a6a7a609 [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
Ceris
d7b6840634 [10236] Implement SPELL_AURA_OPEN_STABLE (292).
(based on Wowka321's repo commit 213ceb0)

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

Rewrited partly.
2010-07-21 04:59:04 +04:00
VladimirMangos
e7093e3ebb [10235] Cleanup in pet stable handlers 2010-07-21 04:03:40 +04:00
tehmarto
631a6a5e59 [10234] Fix typo in IsNoStackAuraDueToAura() Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org> 2010-07-20 22:32:48 +02:00
pasdVn
d59cd7c2f2 [10233] Fixed check in SpellAuraHolder::HasMechanicMask
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-20 15:05:47 +04:00
Laise
d8c1374fcd [10232] Fix mechanic-related check, thanks to VladimirMangos 2010-07-20 13:20:35 +03:00
VladimirMangos
0065693c4c [10231] Use VMAP::VMAPLoadResult instead raw int loadMap result. 2010-07-20 01:27:07 +04:00
VladimirMangos
06bcc77495 [10230] Avoid use enum valuse/define like naming style for enum type name. 2010-07-20 01:18:13 +04:00
VladimirMangos
9381e8680c [10229] Small cleanup in taxi related checks 2010-07-20 00:42:58 +04:00
Timawyn
6b0746b49b [10228] Missing send packet in empty vendor item list case.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-19 23:38:22 +04:00
VladimirMangos
e8f18b1606 [10227] Generate gameobject loot only at open spawned gameobject. 2010-07-19 12:19:44 +04:00
Lutik
c4c21d3fb6 [10226] Fixed GO_JUST_DEACTIVATED for despawned by default gameobject.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-19 11:43:55 +04:00
a1ien
e9e7aff5bb [10225] Propertly show empty vendor list for empty item list.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-19 11:13:14 +04:00
VladimirMangos
6192bdbe1b [10224] Small code style cleanup. 2010-07-19 08:21:17 +04:00