Commit Graph
600 Commits
Author SHA1 Message Date
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 <[email protected]>

    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
QAston 8609527066 *Fix the issue of water elemental GCD preventing freeze to be casted - by Larva
*Correct a typo in prev commit.

--HG--
branch : trunk
2009-06-29 20:50:38 +02:00
QAston 4067989096 *Implement aura rank selection for aoe auras casted by player
*More correct level requirement checks for unit target
*Fix some visual issues with spells which are interrupted after SendSpellStart but before SendSpellGo
*Prevent adding spellmods permamently to already finished spells.

--HG--
branch : trunk
2009-06-29 20:32:56 +02:00
QAston 3e07966986 *Fix the bug that pet is still attacking his enemy even if enemy has just entered sanctuary.
--HG--
branch : trunk
2009-06-28 17:18:46 +02:00
megamage d87133961a *Add some error log for debug.
--HG--
branch : trunk
2009-06-27 18:56:47 -05:00
megamage fc0e8a251b [8084] Correctly show spell icon disabled state at relogin for spells with cooldown delayed until expire. Author: VladimirMangos
--HG--
branch : trunk
2009-06-27 18:28:26 -05:00
megamage 7c8f37abea [8078] Fixed typos in character data loading after recently added new field.
* Really use race/class/gender fields instead `data` field values.
    * Load extra flags (gm mode onm gm fly mode, gm invisibility and etc) from proper field.

    NOTE: recommedned reset characters.extra_flags field to 0 for all characters.
    It can be corrupted in time login/logout before this fix.

Author: VladimirMangos

--HG--
branch : trunk
2009-06-27 17:50:28 -05:00
megamage e5b982b0ef [8074] Fixed typo in money save. Author: nos4r2zod
--HG--
branch : trunk
2009-06-27 17:42:00 -05:00
megamage d9ec2d2196 [8072] First step to get rid of data blob.
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table.

    The update will not work if your database contains characters with an old data field (not fitting to the actual client version).

    It's recommended to backup your character database before applying this patch.

--HG--
branch : trunk
2009-06-27 17:39:51 -05:00
megamage a363df1836 *Fix a crash caused by player saves with incorrect instance id.
--HG--
branch : trunk
2009-06-27 16:18:08 -05:00
Drahy 548f857d97 *Fix crash in AV
--HG--
branch : trunk
2009-06-27 17:29:12 +02:00
QAston e7e79ff8a4 *Merge.
--HG--
branch : trunk
2009-06-27 16:37:29 +02:00
QAston da3569402d *Merge tc1 1591 - 1599, skip 1596
--HG--
branch : trunk
2009-06-27 15:51:36 +02:00
QAston a74ae18739 *Merge tc1 commits 1582-1590
--HG--
branch : trunk
2009-06-27 15:29:06 +02:00
krz 10ac2b73b8 Better check to prevent exploiting in BuyItemFromVendor
--HG--
branch : trunk
2009-06-26 20:58:39 +02:00
krz a494b0436c Fix exploit in BuyItemFromVendor
--HG--
branch : trunk
2009-06-26 18:20:42 +02:00
krz 8334693fe7 Backported from TC2: *Fix typo causing problems with buying items.
--HG--
branch : trunk
2009-06-25 17:14:56 +02:00
QAston d234b35a0c *Fix typo causing problems with buying items.
--HG--
branch : trunk
2009-06-25 13:50:11 +02:00
Machiavelli 7fd26a5fee * Fix a crash in Player::BuyItemFromVendor caused by player spoofing packets (Backported from TC2)
* Another crash exploit prevention using the same method in Bag::StoreItem, by Visagalis

--HG--
branch : trunk
2009-06-24 19:58:01 +02:00
Machiavelli 3c568253dc * Fix a crash in Player::BuyItemFromVendor caused by player spoofing packets
--HG--
branch : trunk
2009-06-24 19:46:54 +02:00
QAston 33b2917bb7 *Fix Ferocious Bite energy to dmg conversion
*Remove duplicated AP coefficients for Hammer of Wrath and Avengers Shield
*Correctly do effectaddcombopoints for spells which take them.
*Do not proc spelleffects on player login.

--HG--
branch : trunk
2009-06-24 15:58:44 +02:00
QAston f2ec641e42 [8056] Move SMSG_CLEAR_COOLDOWN into function and use it. Other cleanups. Author:XTZGZoReX
[8060] Store spell_pet_auras for auraeffects instead of by whole aura Author:hunuza.

--HG--
branch : trunk
2009-06-23 14:05:37 +02:00
QAston ad91c6b1e2 [8052] Fixed typo in error log output. Author: The_Game_Master
[8049] Added energize effect after last heal tick for 33763 and ranks. Author: bobaz
[8053] At character talents reset using chat command also reset talents
for all character pets. Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 13:05:15 +02:00
krz dd52461d40 * Allow spells to trigger ItemCombatSpells if spell is melee/ranged damage based. Original patch by freegajnja
* Tabs to spaces.

--HG--
branch : trunk
2009-06-23 04:47:46 +02:00
megamage 2940aeb681 [8048] Fixed typo in HandleBuyItemInSlotOpcode. Author: nos4r2zod
[8047] Little cleanup in C++ manner. Author: ApoC

--HG--
branch : trunk
2009-06-19 19:01:25 -05:00