Commit Graph

239 Commits

Author SHA1 Message Date
Kudlaty
45e2f9c002 * Add two flags for items with no stack limit
* Added proper checking of faction based on seller for items with RequiredReputaionFaction=0
* This will allow 100% proper WDB data to be used
Thx to Malcrom and Brian

--HG--
branch : trunk
2009-09-21 05:52:58 +02:00
maximius
333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <nofantasy@nf.no>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
maximius
140ec674a0 Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
2009-09-14 16:49:23 -07:00
maximius
b37f9b1e55 *Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
2009-09-14 16:02:13 -07:00
maximius
eef5abe6e1 *Event Hooks (OnLogin, OnLogout, OnPVPKill) by Hawthorne
*Boss Emote Command for DB Scripts by XTElite1

--HG--
branch : trunk
2009-09-13 00:01:35 -07:00
Kudlaty
b287288888 Fix compatibility problems with PostgreSQL. Patch by Azuritus
--HG--
branch : trunk
2009-09-10 22:40:40 +02:00
megamage
9d161ff757 [8449] Deprecate healing/damage item mods and merge internal data in to spell power. Author: VladimirMangos
* Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE
      and drop support code.
    * Merge healing/damage base spell bonus fields and function to spell power field/function.

--HG--
branch : trunk
2009-09-02 18:11:11 -05:00
megamage
0c0a7b6b0e [8444] Prevent spawn gameobjects with invalid displayid by command. Author: VladimirMangos
Also fix mangos string for not existed gameobejct entry.

--HG--
branch : trunk
2009-09-02 15:42:40 -05:00
megamage
ab5f515f21 *Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
*Other script-related fixes.

--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage
dd72b5524c [8426] Use upper/lower iterator pairs as result instead 2 function calls. Author: VladimirMangos
--HG--
branch : trunk
2009-08-27 20:27:55 -05:00
megamage
f16b93d8d8 *Update flame levi script. Fix the bug that it often gets stuck.
--HG--
branch : trunk
2009-08-26 22:56:20 -05:00
megamage
a35991c836 *Add function CanAIAttack
--HG--
branch : trunk
2009-08-26 16:54:59 -05:00
megamage
058e6827a6 *Always remove riding aura when exit vehicle.
*Other misc changes.

--HG--
branch : trunk
2009-08-25 23:55:37 -05:00
megamage
aa86640fdf [8408] Optimized guild_member loading during startup. Changed rank ids in guild_rank table.
First start of mangos will take more time then usually, because of guild_rank change. If you want to speed first start up, execute command:
    UPDATE guild_rank SET rid = rid - 1;

    Signed-off-by: Triply <triply@getmangos.com>

--HG--
branch : trunk
2009-08-24 20:23:54 -05:00
megamage
bcc23fac92 *Fix a bug that dk's ghoul generates energy twice per tick.
--HG--
branch : trunk
2009-08-24 11:35:01 -05:00
megamage
80508a6fbc *Fix a crash.
--HG--
branch : trunk
2009-08-23 23:29:14 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
a7e5819a05 *Revert 5219.
--HG--
branch : trunk
2009-08-21 18:20:59 -05:00
megamage
49abc30089 *Display max veh number and capture point banner in wintergrasp.
--HG--
branch : trunk
2009-08-21 12:31:52 -05:00
megamage
0fc22d6c1c *Set ReqSourceCount at least 1.
--HG--
branch : trunk
2009-08-19 20:04:56 -05:00
megamage
d7e4392f79 [8387] Fixed error output at creature_template check Author: arrai
--HG--
branch : trunk
2009-08-19 16:59:07 -05:00
megamage
69c3abfc0b *Fix the bug that alliance players cannot use some dk flight nodes.
--HG--
branch : trunk
2009-08-18 21:58:44 -05:00
Kudlaty
6dc27d432b Fix spellclick typo
--HG--
branch : trunk
2009-08-17 19:29:33 +02:00
QAston
b8993423b5 *Implement aura type SPELL_AURA_MOD_CRIT_PCT(290).
--HG--
branch : trunk
2009-08-17 16:30:14 +02:00
QAston
41c12d173b *Add spell_bonus_data for lightwell - by Elron
*Add aura_required, aura_forbidden, user_type columns to npc_spellclick_spells table for additional requirement checks
*Remove workarounds from lightwell code and use new npc_spellclick_spells fields instead.

--HG--
branch : trunk
2009-08-17 02:53:39 +02:00
megamage
99eafd6a52 *Allow players to capture siege workshops in wintergrasp.
--HG--
branch : trunk
2009-08-12 08:51:51 -05:00
megamage
c8ed3cf1e9 *Some update of opvp (no real change)
--HG--
branch : trunk
2009-08-10 23:38:51 -05:00
megamage
7f8ce1d809 [8315] Fixed memory leaks (mostly at server shutdown) and code cleanups. Author: VladimirMangos
* Fixed leak in BattleGround::m_PlayerScores at BattleGround::Reset,
      add and use BattleGroundScoreMap typedef
    * Delete AreaTeam objects stored in global map at shutdown
    * Delete Corpse objects stored in global map at shutdown
    * Store guild bank log entries as objectes instead pointers in log event lists

--HG--
branch : trunk
2009-08-06 17:45:37 -05:00
megamage
e8330e4162 *Update creature damamge formula. Use damage mod in config as total_pct modifier.
--HG--
branch : trunk
2009-08-06 10:38:46 -05:00
QAston
8777efd03c *Add some crash prevention checks.
--HG--
branch : trunk
2009-08-03 12:52:31 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
megamage
bf8c0933c9 [8221] Removed trailing whitespaces
With excluded dep/ - as usual.

    Signed-off-by: freghar <compmancz@gmail.com>

--HG--
branch : trunk
2009-07-30 10:19:03 +08:00
megamage
ffcbd11b2c [8190] Update killing quest objectives base at creature_template KillCredit fields. Author: GriffonHeart
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.

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

    Also implement KillCreditN field check at loading.

--HG--
branch : trunk
2009-07-20 12:30:37 +08:00
megamage
e152ff8ec5 [8183] Some gameobject despanw related fixes Author: VladimirMangos
* Implement use `consumable` field in gameobject template for gameobject required explcit despawn at use.
    * Move gameobject template fields cech function from Gameobject to gameobject template class, and update callers.
    * Cast spells at gameobject use with gameobject guid as original caster guid, as already used in some other cases. (skipped)

--HG--
branch : trunk
2009-07-16 12:06:07 +08:00
megamage
868ae26787 [8176] (skipped) Forbid using some monster movement flags (that can crash client) in creature*_addon tables.moveflag tables field.
Also refactoring creature addon tables loading.

Author: VladimirMangos

--HG--
branch : trunk
2009-07-16 10:47:44 +08:00
megamage
6976043e22 [8126] Improvemets in player/pet/charter name checks. Author: VladimirMangos
* Implement new config options for minimal player/pet/charter name length (2 by default)
    * Better error reporting at problems in names.
    * Add check from max pet/charter name length (same as for player names at client side)

--HG--
branch : trunk
2009-07-10 08:25:33 +08:00
megamage
de4faabbcb [8101] Prevent use talents as quest rewards or spell_learn_spell learned spells. Author: VladimirMangos
--HG--
branch : trunk
2009-07-01 18:07:57 -05:00
megamage
e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
megamage
bea88590c7 [8092] Check bag size at item protos loading and item slots at invetory loading. Author: VladimirMangos
--HG--
branch : trunk
2009-07-01 17:38:38 -05:00
Machiavelli
605b5670e3 * Update creature damage calculation.
--HG--
branch : trunk
2009-06-22 23:12:53 +02:00
Machiavelli
2660e0ff1c * Fix build, sorry
--HG--
branch : trunk
2009-06-22 02:23:12 +02:00
Machiavelli
26b7e344db * Correctly update ticket status in database when closing via GM command.
--HG--
branch : trunk
2009-06-21 21:46:15 +02:00
megamage
39d3b492fe *Update creature damage calculation.
--HG--
branch : trunk
2009-06-19 17:13:36 -05:00
Machiavelli
5cc4b07a57 * Omit closed tickets when checking for an active GM ticket.
--HG--
branch : trunk
2009-06-19 20:07:29 +02:00
megamage
2d7a579dab [8039] Prevent including talents to trainer data, report at server loading. Author: VladimirMangos
--HG--
branch : trunk
2009-06-18 17:03:16 -05:00
Machiavelli
a4dafbf8ec * More updating of iterator data types in loops
--HG--
branch : trunk
2009-06-18 18:29:28 +02:00
megamage
bff6fbcf54 *A temp fix for the bug that weekly quests can be repeated without any limit.
--HG--
branch : trunk
2009-06-17 21:48:19 -05:00
megamage
2d569883e6 *Add config option CheckDB to check if the contents in FULL folder are applied.
--HG--
branch : trunk
2009-06-17 14:09:17 -05:00
megamage
3cf2be6042 [8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG--
branch : trunk
2009-06-16 11:19:59 -05:00
megamage
00f4a31b73 [8016] Work at npc click table data use. Author: VladimirMangos
* New fields in `npc_spellclick_spells` for allow set npc spell click mode from quest to infinity
      or to another quest, or from reward quest.
    * Not expect (and forbid set UNIT_NPC_FLAG_SPELLCLICK in DB and set it at `npc_spellclick_spells` loading.
    * Apply some speedups for creature checks affected by spel click state

*Also add target position of 51852. By Roland

--HG--
branch : trunk
2009-06-15 23:07:43 -05:00