Commit Graph

624 Commits

Author SHA1 Message Date
QAston
08cd876f36 *Update zone for players after adding to map. - by VladimirMangos
*Skip instance loading for player with flypath/on transport.

--HG--
branch : trunk
2009-08-03 19:48:28 +02:00
QAston
7569bb343a *Add Rate.RepairCost config option - by MaXiMiUS
*Apply tc sql coding style to 4737_world_TDB.sql - by Drahy
*Fix build with MAP_BASED_RAND_GEN option.

--HG--
branch : trunk
2009-08-03 16:35:33 +02:00
QAston
8777efd03c *Add some crash prevention checks.
--HG--
branch : trunk
2009-08-03 12:52:31 +02:00
megamage
c9010dffc7 [8284] Use BuyCound instead Stackable for seelction original items amount for new character. Author: VladimirMangos
--HG--
branch : trunk
2009-08-02 10:10:53 +08:00
QAston
fbcf409796 *Fix ppm handling for victim auras - by pasdVn.
--HG--
branch : trunk
2009-08-02 02:18:14 +02:00
QAston
f0258275e6 *One more map correction - reset map pointer if still avalible in constructor.
--HG--
branch : trunk
2009-08-01 22:00:06 +02:00
QAston
3e5205cda7 *Do not remove player reference to map on player remove from map.
--HG--
branch : trunk
2009-08-01 21:39:33 +02:00
QAston
00724b0b4f *Check in spell block chance calc to prevent return unexpected value - by thenecromancer.
--HG--
branch : trunk
2009-08-01 02:47:58 +02:00
QAston
bf326cd3a3 *Update world_spell_full with missing data.
--HG--
branch : trunk
2009-08-01 02:15:04 +02:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
QAston
b212461f95 *Merge after backout.
--HG--
branch : trunk
2009-07-31 13:21:32 +02:00
QAston
1f53433c6c Backed out changeset "[8251] Store in some DB tables only data for first rank. Author: VladimirMangos" until support for different values for ranks and for custom ranks is added.
--HG--
branch : trunk
2009-07-31 13:21:01 +02:00
megamage
0fcadd9d25 *Replace "LoginDatabase" with "loginDatabase"
--HG--
branch : trunk
2009-07-31 11:29:28 +08:00
megamage
0a2af88cb4 [8252] Move DB scripting code from global World to Map. Author: Ambal
This one more step to pre-map events proccesing and parallel in future.

    [8256] Restore DB script loading broken after [8252]. Author: VladimirMangos

    Also propetly decrease scheduled DB script actions at map unloading.
    Some code style restore.

--HG--
branch : trunk
2009-07-31 10:48:34 +08:00
megamage
2bddcc4303 [8251] Store in some DB tables only data for first rank. Author: VladimirMangos
* Allow add to DB data only for first rank in table `mangos_spell_bonus_data` and `mangos_spell_proc_event`.
    * Copy data for other ranks for speedup use at loading for this data and data from `spell_proc_item_enchant`.

--HG--
branch : trunk
2009-07-31 10:21:57 +08:00
QAston
d193b687e8 *Do not allow to save player single target spellstolen auras to prevent crash.
--HG--
branch : trunk
2009-07-30 17:34:08 +02:00
QAston
9c52a12e08 Backed out changeset 6ba74f274cb9 - mangos [8249]
--HG--
branch : trunk
2009-07-30 11:44:23 +02:00
megamage
7121d98480 [8249] Implement support spell_proc_item_enchant table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
      With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.

    * Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
      That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.

    Thanks to MaS0n as author alternative patch that partly used in this patch.
    Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.

Author: nos4r2zod

*Note: has been implemented before. Only use part of the patch.

--HG--
branch : trunk
2009-07-30 11:33:28 +08:00
megamage
5d9d64e6f0 [8229] Improve stealth detection code for player case. Author: Ambal
--HG--
branch : trunk
2009-07-30 10:38:53 +08:00
megamage
7bd47f8827 [8225] Some fixes from 320 branch. Author: tomrus88
--HG--
branch : trunk
2009-07-30 10:26:15 +08:00
QAston
491051e194 *Rage is now generated by damage absorbed
*Fix rage calculation for level > 70
*Allow rage generation for NPC using rage
*Make mitigated damage not add rage
*Fix Warriors' Berserker Rage
Author of all of these: thenecromancer

--HG--
branch : trunk
2009-07-27 18:05:30 +02:00
QAston
190863e5a5 *Update procflags for Imp.Shadowform.
*Use item speed value instead of attack speed value for enchant PPM - by MaS0n.
*Correctly apply cooldown to Improved leader of the pack mana regen.
*Do not refresh duration when stack from aura is dropped - by Apoc

--HG--
branch : trunk
2009-07-26 19:58:01 +02:00
megamage
62a6d1dfbe [8203] Correcttly re-apply level scaled item stat mods at player level change. Author: Trogvar
--HG--
branch : trunk
2009-07-24 09:15:29 +08:00
megamage
a8c9cc25ab [8202] Replace raw array index values by enums. Author: VladimirMangos
--HG--
branch : trunk
2009-07-24 09:14:46 +08:00
megamage
4a0d187cd6 [8193] Use constant instead explicit value in title index checks. Author: XTZGZoReX
--HG--
branch : trunk
2009-07-23 09:34:42 +08:00
megamage
f481e7b14d [8191] Drop code related to use long time empty spell_affect table. Author: XTZGZoReX
After switch to 3.x.x all data get explcitly from ClassMask fields in spell.dbc
    and no need in custom values.

--HG--
branch : trunk
2009-07-23 09:30:05 +08:00
Anubisss
6718104016 *Dont allow player to use a flypoint if the player stunned or rooted.
*This fix the bug that eg.: player cast Ice Block(45438) and click on a flypoint and INSTANTLY teleported to the flypoint. :)

--HG--
branch : trunk
2009-07-22 01:06:30 +02: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
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
2750d95a5d [8165] Correctly add quest talent points count for characters on lvl 55. Author: ApoC
--HG--
branch : trunk
2009-07-12 18:09:41 +08:00
megamage
721782b259 [8162] Fixed applying random enchantments to quest rewarded items. Author: ApoC
--HG--
branch : trunk
2009-07-12 18:01:47 +08:00
megamage
8a0427c70f [8160] Now finally correct extraction uint16 enchantment id from uint32. Author: VladimirMangos
--HG--
branch : trunk
2009-07-12 18:00:50 +08:00
megamage
d0973d2b9e [8159] Restore show item enchantments visual effects in character enum list. Author: VladimirMangos
--HG--
branch : trunk
2009-07-12 18:00:15 +08:00
megamage
920a70932b [8153] Fixed some implicit float->int cast warnings. Author: NetSky
--HG--
branch : trunk
2009-07-12 17:54:53 +08:00
Anubisss
692c927e75 *Show online players numbers in command server info.
--HG--
branch : trunk
2009-07-12 00:16:56 +02:00
QAston
53ae349644 *SpellBonusData for 54158
*Make passive tree of life aura affect casts out of shapeshidt.

--HG--
branch : trunk
2009-07-10 03:03:32 +02:00
megamage
d27e5f3de1 [8137] Init player display id + native display id on login. Author: hunuza
* Temporary reset of display id on save no longer needed.
    * Players always have the right model for their gender.

--HG--
branch : trunk
2009-07-10 08:39:14 +08:00
megamage
65eb52de11 [8135] Cast quest rewarded spells after mark spell as completed.
Some spell have spell_area requirement for cast (for later re-apply) Author: VladimirMangos

--HG--
branch : trunk
2009-07-10 08:37:35 +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
QAston
8d1abccd87 *Fix the problem with sub-profs unlearning.
--HG--
branch : trunk
2009-07-07 18:51:24 +02:00
megamage
af1c188524 [8125] Optimized spell cooldowns remove. Author: ApoC
Traverse only active cooldowns instead of whole player spell map.

--HG--
branch : trunk
2009-07-07 07:26:11 +08:00
megamage
3eab803495 [8121] Cleanup and more safe code in Player::BuyItemFromVendor use. Author: VladimirMangos
* Move bag search by bag guid code to WorldSession::HandleBuyItemInSlotOpcode
    * Really reject unexisted bag cases.

--HG--
branch : trunk
2009-07-07 07:08:36 +08:00
megamage
eec93e0852 [8116] Fixed low ranks relearn bug, correctly show tlanes at command spell learn. By VladimirMangos
* Bug showup as paladin talents reset. Thanks to ApoC for reseach problem.
    * Now at .learn command use for learn some talent this talent must correctly show as learned in talent dialog.

--HG--
branch : trunk
2009-07-07 06:59:03 +08:00
megamage
4a8a89e1db [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
* IsInWorld used to prevent return unexpected not in world objects.
    * Delayed operations need to process its in world state.

--HG--
branch : trunk
2009-07-01 18:36:03 -05:00
megamage
111dac5f94 [8102] Simplify code base at new root method WorldObject::CleanupsBeforeDelete Author: VladimirMangos
* Call it from Map::AddObjectToRemoveList and remove now not needed explcit calls
    * Create Gameobject version to make GO with owner more safe for remove

--HG--
branch : trunk
2009-07-01 18:23:36 -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
megamage
95ef8634c4 [8085] Apply talent rate to all talents points. Author: duckman
--HG--
branch : trunk
2009-07-01 17:30:37 -05:00
QAston
fd86e6a369 *Fix possible exploits with flying paths.
--HG--
branch : trunk
2009-07-01 16:18:37 +02:00