Commit Graph
100 Commits
Author SHA1 Message Date
Shauren d73d975d56 Core/Conditions: Prevent double deleting the same condition on cleanup, fixes shutdown crashes with conditions
--HG--
branch : trunk
2010-11-13 20:48:20 +01:00
linencloth a312e7b337 Scripts/Misc: Cleanup and fix victim handling of the snakes of Snake Trap
--HG--
branch : trunk
2010-11-13 20:24:20 +01:00
linencloth bb9336ca27 Core/Spells: Effect sanctuary should stop attackers without threatlist too
Closes issue 1943

--HG--
branch : trunk
2010-11-13 20:23:05 +01:00
click 80694546a3 Core: Fix non-PCH compile (include Unit.h so we don't get a forward declaration issue, and also include the necessary defines)
--HG--
branch : trunk
2010-11-13 20:06:19 +01:00
Shauren ec49ce5fc3 Core/Spells: Fixed possible crashes in scaling mounts code when player is not in a valid zone
--HG--
branch : trunk
2010-11-13 18:54:33 +01:00
linencloth 880ef0c398 Core/Spells: Fix spelleffect sanctuary
- No longer removes every attacker, but updates the visibility
  - Using that effect won't remove attackers that can still see through the stealth of the caster based on distance
- Ignores spells that were casted before or at the same time of that effect
- Trigger other needed spells when casting Shadowmeld

--HG--
branch : trunk
2010-11-13 18:04:56 +01:00
linencloth bf888285aa Core:
- Redesigned stealth and invisibility handling
  - Implemented the handling of multiple stealth types
- Implemented fake inebriation
- The message deliverer no longer sends packets from a non-visible source
  - The server won't send that much garbage which just takes bandwith
  - It won't be possible to use cheats to detect invisible objects
- Removed a lot of checks for the Z-coord
  - Fixes visibility problems happening while flying
- Limited the grid activation range of creatures to use less resources
- Implemented Shroud of Death
- Implemented increased visibility range for active objects
- Removed visibility check at spellhit (only sanctuary effects should prevent it)
(And a lot of other changes...)

Closes issue 4208
Closes issue 3049
Closes issue 2097
Closes issue 2198
Closes issue 2384
Closes issue 2197
Closes issue 2319

--HG--
branch : trunk
2010-11-13 17:18:09 +01:00
Shauren 995408f0a9 Scripts/Icecrown Citadel: Added door scripting for remaining bosses
--HG--
branch : trunk
2010-11-13 12:32:34 +01:00
Xanadu 48cb3c1552 Core/Spells: Remove Vanish on Stealth removal. Fix by thenecromancer.
--HG--
branch : trunk
2010-11-13 07:14:56 +01:00
Xanadu 78a8b09774 Core/Spells: Fixed Vanish not applying stealth. Closes issue #4699.
--HG--
branch : trunk
2010-11-13 06:43:45 +01:00
click 5d42e2293c Core/Spells: Fix Culling the Herd (and a personal thanks to Xanadu for being patient on explaining the procsystem properly)
Closes issue 4533

--HG--
branch : trunk
2010-11-13 04:10:48 +01:00
click e22426c7c0 Core/Scripts: Reinstate commandscripts, now with extra bling and working commands (and yes, we did test it thoroughly this time)
Thanks to Paradox for sorting the commandscripts and chanhandlers out to work as they were intentionally ment to be like.

--HG--
branch : trunk
2010-11-12 20:47:03 +01:00
click 43d8a64232 Core/Spells: Update some aura-definitions (taken from various sources plus some light research on their true meaning)
--HG--
branch : trunk
2010-11-12 17:15:32 +01:00
Shauren 8984e9036d Core/Pools: Added missing check in loop
--HG--
branch : trunk
2010-11-12 17:12:38 +01:00
click 5f4b97fcf7 Core/Guild: Fix guildbank withdrawal limit (non-guildmaster character will not be able to withdraw more than withdraw-limit) - thanks to Azz
Fixes issue 4720

--HG--
branch : trunk
2010-11-11 22:59:06 +01:00
Shauren 090acddee3 Core/Spells: Fixed Heart of the Phoenix pet spell
Closes issue #3911.

--HG--
branch : trunk
2010-11-11 22:53:52 +01:00
Shauren 0f9279b7ef Scripts/Icecrown Citadel: More faction-specific spawns
--HG--
branch : trunk
2010-11-11 17:19:23 +01:00
Shauren 7133f3f08e Core: Fixed some build warnings
--HG--
branch : trunk
2010-11-11 13:40:52 +01:00
Shauren 7dcfa7b63f Scripts/Icecrown Citadel: Change spawns of Garrosh Hellscream into King Varian Wrynn if raid is alliance
--HG--
branch : trunk
2010-11-10 23:11:45 +01:00
Machiavelli 9153b83ab6 Core/ObjectMgr: Properly block when mutex is being held when saving creature/GO respawntime data instead of discarding the save operation.
--HG--
branch : trunk
2010-11-10 21:57:33 +01:00
Shauren 2263305141 Core/Auras: Add missing changes for previous revision
--HG--
branch : trunk
2010-11-10 12:23:36 +01:00
Shauren e3d4b36a6b Scripts/Icecrown Citadel: Fixed Vengeful Shade despawning after it casts Vengeful Blast (Lady Deathwhisper)
Core/Auras: Implemented SPELL_AURA_SET_VEHICLE_ID (296)
Core/Scripts: Moved DefaultTargetSelector class into header file

--HG--
branch : trunk
2010-11-10 12:18:43 +01:00
Shauren cc220ca7b6 Scripts/Spells: Added script for Animal Blood pool spawning (fixes fishing daily quest "Blood is Thicker")
--HG--
branch : trunk
2010-11-10 11:37:41 +01:00
click 03e4ecfbfd Core: Partial revert of rcb3188281e, rc85b35f076, r97f9a0fa3e due to missing loader implementation.
(files disabled but kept in repo, and will be fully reinstated once everything is sorted out)
Note: SQL-update-data is NOT supplied for 're-converting' to old help-system - this is after all considered a workrepo untill we tag a commit as stable!

--HG--
branch : trunk
2010-11-10 05:22:27 +01:00
Shauren 93160c369e Fixed compile
--HG--
branch : trunk
2010-11-09 22:30:30 +01:00
click 12cfc9dc36 Fix typo in previous commit...
--HG--
branch : trunk
2010-11-09 10:57:23 -05:00
Shauren 2da116a417 Reverted revision d8e919eb3a7b
--HG--
branch : trunk
2010-11-09 15:39:52 +01:00
Machiavelli b690856e91 Core/ObjMgr: Use proper mutex object for SaveGORespawnTime
Author: toshik.777
Fixes issue #4399

--HG--
branch : trunk
2010-11-09 15:10:10 +01:00
Machiavelli dcc26dd801 Core/Spells: Fix Sword Specialization (warrior) proc on abilities
Author: Dr.Tenma
Fixes issue #4032

--HG--
branch : trunk
2010-11-09 11:26:01 +01:00
Machiavelli 36b40511ac Core/Unit: Threat values sent to the client should be multiplied by 100, as pointed out by Aokromes.
--HG--
branch : trunk
2010-11-09 11:17:33 +01:00
Machiavelli ddc812163a Core/Spells: Fix Shield of Righteousness damage
Author: Dr.Tenma
Fixes issue #4174

--HG--
branch : trunk
2010-11-09 11:15:00 +01:00
Machiavelli 8862663df0 Core/Battleground: Fix a possible crash in Alterac Valley.
Author: HUNTERok
Fixes issue #4268

--HG--
branch : trunk
2010-11-09 11:08:33 +01:00
Machiavelli ec125bbc67 Core/Misc: Fix a typo (affects no functionality, just for aesthetics)
Author: 2010phenix
Fixes issue #4247

--HG--
branch : trunk
2010-11-09 10:55:20 +01:00
Machiavelli 32ec6b51da Core/Scripts: Fix Harbinger Skyriss event in Arcatraz.
Author: [email protected]
Fixes issue #4390

--HG--
branch : trunk
2010-11-09 10:51:34 +01:00
Machiavelli 87679c1ca4 Core/Scripts: Fix Escape from Durnholde quest credit.
Author: erocoloco
Fixes issue #4367

--HG--
branch : trunk
2010-11-09 10:49:26 +01:00
Machiavelli cca3231b92 Core/Scripts: Fix script text typo for Vorsha the Lasher
Author: Kaelima
Fixes issue #4421

--HG--
branch : trunk
2010-11-09 10:45:11 +01:00
Machiavelli f5f80a5344 Core/Formula´s: Fix group XP modifier calculation by adding missing breaks. Thanks to Paradox for spotting.
--HG--
branch : trunk
2010-11-09 09:58:14 +01:00
Xanadu 87b77b0ca4 Core/Items: Added a forgotten break in item enchant checks.
--HG--
branch : trunk
2010-11-08 23:43:50 +01:00
Xanadu 5398ea3ac7 Core/PCH: Added WorldSocket.h include to PCH for worldserver.
--HG--
branch : trunk
2010-11-08 23:40:26 +01:00
Shauren b6d2961e59 Core/DBSchema: Changed core_revision in version table to string field.
--HG--
branch : trunk
2010-11-08 21:16:03 +01:00
click aad6964dd0 Core/Spells: Show some SPELL_AURA_MOD_DODGE_PERCENT auras as debufs as expected (patch by zergtmn)
--HG--
branch : trunk
2010-11-08 17:36:25 +01:00
click b2f3b3d329 Core: Use portable ACE-methods to do millisec time-value calculation (patch by SilverIce)
(also avoids some unsafe code on non-Windows platforms)

--HG--
branch : trunk
2010-11-08 17:24:16 +01:00
click b1bf8ebfe6 Core/ItemHandler: Fix a logic error when checking for gem equipment limits. (Socketed gems cannot be destroyed, they can only be replaced and that would be the "new gem" case) - fix by leak
Closes issue 4698. Fixes issue 2495.

--HG--
branch : trunk
2010-11-08 17:11:05 +01:00
click 551d0cea4e Core/Maps: Fix exploit with players changing raid-difficulty and getting no cooldown on respective instance - Patch by selector
--HG--
branch : trunk
2010-11-07 23:53:26 +01:00
click 44850aab07 Core: Disallow moving currency tokens out of their hidden bag - fix by leak
--HG--
branch : trunk
2010-11-07 22:28:03 +01:00
click c58e227ffa Core/Spells: Fix hunter pet namechanging when using Certificate of Ownership (spellID 53987, used by itemID 43850)
(There's also, as far as I know, no window on hunter pet renames, one selects the pet and clicks 'rename').
Closes issue 2967.

--HG--
branch : trunk
2010-11-07 22:23:12 +01:00
Rat 2ee0fda94e Core/SmartAI:
added ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST
added ACTION_CALL_RANDOM_TIMED_ACTIONLIST
you can now call in random timed action lists (script type 9 aka Script9)

--HG--
branch : trunk
2010-11-07 22:10:11 +01:00
click d180e485e9 Added tag UP35 for changeset 35eb4004f6f8
--HG--
branch : trunk
2010-11-07 20:31:53 +01:00
click d1323767b0 Core/SQL: Move some SQL-files around (you all know what this means...)
--HG--
branch : trunk
rename : sql/updates/09859_characters_group_member.sql => sql/updates/3.3.5a_old/09859_characters_group_member.sql
rename : sql/updates/09900_world_spell_proc_event.sql => sql/updates/3.3.5a_old/09900_world_spell_proc_event.sql
rename : sql/updates/09911_characters_guild_bank_eventlog.sql => sql/updates/3.3.5a_old/09911_characters_guild_bank_eventlog.sql
rename : sql/updates/09912_world_spell_bonus_data.sql => sql/updates/3.3.5a_old/09912_world_spell_bonus_data.sql
rename : sql/updates/09920_characters_pool_quest_save.sql => sql/updates/3.3.5a_old/09920_characters_pool_quest_save.sql
rename : sql/updates/09920_world_pool_quest.sql => sql/updates/3.3.5a_old/09920_world_pool_quest.sql
rename : sql/updates/09948_world_script_name.sql => sql/updates/3.3.5a_old/09948_world_script_name.sql
rename : sql/updates/09948_world_script_texts.sql => sql/updates/3.3.5a_old/09948_world_script_texts.sql
rename : sql/updates/09948_world_spell_script_names.sql => sql/updates/3.3.5a_old/09948_world_spell_script_names.sql
rename : sql/updates/09958_world_quest_poi_points.sql => sql/updates/3.3.5a_old/09958_world_quest_poi_points.sql
rename : sql/updates/09963_world_spell_script_names.sql => sql/updates/3.3.5a_old/09963_world_spell_script_names.sql
rename : sql/updates/09977_world_spell_script_names.sql => sql/updates/3.3.5a_old/09977_world_spell_script_names.sql
rename : sql/updates/09988_world_spell_script_names.sql => sql/updates/3.3.5a_old/09988_world_spell_script_names.sql
rename : sql/updates/10000_characters_character_banned.sql => sql/updates/3.3.5a_old/10000_characters_character_banned.sql
rename : sql/updates/10000_world_command.sql => sql/updates/3.3.5a_old/10000_world_command.sql
rename : sql/updates/10000_world_trinity_string.sql => sql/updates/3.3.5a_old/10000_world_trinity_string.sql
rename : sql/updates/10023_world_command.sql => sql/updates/3.3.5a_old/10023_world_command.sql
rename : sql/updates/10029_world_spell_script_names.sql => sql/updates/3.3.5a_old/10029_world_spell_script_names.sql
rename : sql/updates/10030_characters_item_soulbound_trade_data.sql => sql/updates/3.3.5a_old/10030_characters_item_soulbound_trade_data.sql
rename : sql/updates/10060_world_creature_text.sql => sql/updates/3.3.5a_old/10060_world_creature_text.sql
rename : sql/updates/10076_world_command.sql => sql/updates/3.3.5a_old/10076_world_command.sql
rename : sql/updates/10078_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10078_world_spell_proc_event.sql
rename : sql/updates/10083_world_trinity_string.sql => sql/updates/3.3.5a_old/10083_world_trinity_string.sql
rename : sql/updates/10084_characters_character_queststatus.sql => sql/updates/3.3.5a_old/10084_characters_character_queststatus.sql
rename : sql/updates/10091_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10091_world_spell_proc_event.sql
rename : sql/updates/10099_world_spell_script_names.sql => sql/updates/3.3.5a_old/10099_world_spell_script_names.sql
rename : sql/updates/10105_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10105_world_spell_proc_event.sql
rename : sql/updates/10105_world_spell_script_names.sql => sql/updates/3.3.5a_old/10105_world_spell_script_names.sql
rename : sql/updates/10113_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10113_world_spell_proc_event.sql
rename : sql/updates/10132_world_command.sql => sql/updates/3.3.5a_old/10132_world_command.sql
rename : sql/updates/10132_world_trinity_string.sql => sql/updates/3.3.5a_old/10132_world_trinity_string.sql
rename : sql/updates/10171_world_script_texts.sql => sql/updates/3.3.5a_old/10171_world_script_texts.sql
rename : sql/updates/10181_world_script_name.sql => sql/updates/3.3.5a_old/10181_world_script_name.sql
rename : sql/updates/10182_world_script_texts.sql => sql/updates/3.3.5a_old/10182_world_script_texts.sql
rename : sql/updates/10183_world_spell_script_names.sql => sql/updates/3.3.5a_old/10183_world_spell_script_names.sql
rename : sql/updates/10189_world_script_texts.sql => sql/updates/3.3.5a_old/10189_world_script_texts.sql
rename : sql/updates/10189_world_scriptname.sql => sql/updates/3.3.5a_old/10189_world_scriptname.sql
rename : sql/updates/10189_world_spell_linked_spell.sql => sql/updates/3.3.5a_old/10189_world_spell_linked_spell.sql
rename : sql/updates/10189_world_spell_script_names.sql => sql/updates/3.3.5a_old/10189_world_spell_script_names.sql
rename : sql/updates/10192_world_creature.sql => sql/updates/3.3.5a_old/10192_world_creature.sql
rename : sql/updates/10195_world_script_texts.sql => sql/updates/3.3.5a_old/10195_world_script_texts.sql
rename : sql/updates/10206_world_creature_classlevelstats.sql => sql/updates/3.3.5a_old/10206_world_creature_classlevelstats.sql
rename : sql/updates/10208_world_script_name.sql => sql/updates/3.3.5a_old/10208_world_script_name.sql
rename : sql/updates/10208_world_script_texts.sql => sql/updates/3.3.5a_old/10208_world_script_texts.sql
rename : sql/updates/10213_world_script_texts.sql => sql/updates/3.3.5a_old/10213_world_script_texts.sql
rename : sql/updates/10215_world_spell_script_names.sql => sql/updates/3.3.5a_old/10215_world_spell_script_names.sql
rename : sql/updates/10219_world_spelldifficulty_dbc.sql => sql/updates/3.3.5a_old/10219_world_spelldifficulty_dbc.sql
rename : sql/updates/10223_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10223_world_spell_proc_event.sql
rename : sql/updates/10228_world_trinity_string.sql => sql/updates/3.3.5a_old/10228_world_trinity_string.sql
rename : sql/updates/10230_world_script_texts.sql => sql/updates/3.3.5a_old/10230_world_script_texts.sql
rename : sql/updates/10230_world_scriptname.sql => sql/updates/3.3.5a_old/10230_world_scriptname.sql
rename : sql/updates/10230_world_spell_proc_event.sql => sql/updates/3.3.5a_old/10230_world_spell_proc_event.sql
rename : sql/updates/10230_world_spell_script_names.sql => sql/updates/3.3.5a_old/10230_world_spell_script_names.sql
rename : sql/updates/10241_characters_guilds.sql => sql/updates/3.3.5a_old/10241_characters_guilds.sql
rename : sql/updates/10246_world_spell_linked_spell.sql => sql/updates/3.3.5a_old/10246_world_spell_linked_spell.sql
rename : sql/updates/10246_world_spell_script_names.sql => sql/updates/3.3.5a_old/10246_world_spell_script_names.sql
rename : sql/updates/10269_world_scriptname.sql => sql/updates/3.3.5a_old/10269_world_scriptname.sql
rename : sql/updates/10281_world_gameobject_template.sql => sql/updates/3.3.5a_old/10281_world_gameobject_template.sql
rename : sql/updates/10282_world_script_texts.sql => sql/updates/3.3.5a_old/10282_world_script_texts.sql
rename : sql/updates/10284_world_script_texts.sql => sql/updates/3.3.5a_old/10284_world_script_texts.sql
rename : sql/updates/10284_world_scriptname.sql => sql/updates/3.3.5a_old/10284_world_scriptname.sql
rename : sql/updates/10284_world_spell_script_names.sql => sql/updates/3.3.5a_old/10284_world_spell_script_names.sql
rename : sql/updates/10300_world_spell_script_names.sql => sql/updates/3.3.5a_old/10300_world_spell_script_names.sql
rename : sql/updates/10307_world_spell_bonus_data.sql => sql/updates/3.3.5a_old/10307_world_spell_bonus_data.sql
rename : sql/updates/10320_world_smart_scripts.sql => sql/updates/3.3.5a_old/10320_world_smart_scripts.sql
rename : sql/updates/10320_world_waypoints.sql => sql/updates/3.3.5a_old/10320_world_waypoints.sql
rename : sql/updates/10325_world_scriptname.sql => sql/updates/3.3.5a_old/10325_world_scriptname.sql
rename : sql/updates/10327_world_spell_bonus_data.sql => sql/updates/3.3.5a_old/10327_world_spell_bonus_data.sql
rename : sql/updates/10349_world_script_texts.sql => sql/updates/3.3.5a_old/10349_world_script_texts.sql
2010-11-07 20:30:59 +01:00
click 7853a06912 Fix "typo" in previous commit (codingstyle)
--HG--
branch : trunk
2010-11-07 20:12:36 +01:00
click 5d4f009a87 Core/Entities: Fix exploit/crash in inventory-handling (CMSG_OPEN_ITEM) -thanks to leak
(Adds a scrutiny-based check to baghandling: don't allow placing items in bags that are not "usable" as regular bags)

--HG--
branch : trunk
2010-11-07 20:08:52 +01:00
Rat 044c003bdd Core/SmartAI: added ACTION_CROSS_CAST
CasterTargets will cast spellID on all Targets
NOTE: use with caution if targeting multiple * multiple units!

--HG--
branch : trunk
2010-11-07 18:34:04 +01:00
Rat 205736ea84 Core/SmartAI: added TARGET_OWNER_OR_SUMMONER, useful if you have a creature summoned by a spell, you can use Summoner as target
--HG--
branch : trunk
2010-11-07 18:02:33 +01:00
Rat 13559bde9f Core/SmartAI/Typo
--HG--
branch : trunk
2010-11-07 17:13:48 +01:00
Rat 9781bba535 Core/SmartAI: added SMART_ACTION_INVOKER_CAST, spellID, castFlags,
-if avaliable, last used invoker will cast spellId with castFlags on targets

--HG--
branch : trunk
2010-11-06 23:18:04 +01:00
Rat 3809892987 Core/SmartAI: modified ACTION_EQUIP to use a bitmask to send slot updates (for more blzzlike packet handling)
--HG--
branch : trunk
2010-11-06 23:08:33 +01:00
Machiavelli 26d8e04351 Core/Unit: Clear threat list on units when they die (fix players having aggro on corpses)
Original suggestion by [email protected]

Fixes issue #4667

--HG--
branch : trunk
2010-11-06 10:35:46 +01:00
Shauren 1b8007767a Scripts/Quests: Fixed quest "They're Alive! Maybe...", patch by [email protected]
Closes issue #4645.

--HG--
branch : trunk
2010-11-05 23:41:31 +01:00
Rat d79ee2e824 Core/Conditions/Typo
--HG--
branch : trunk
2010-11-05 23:33:31 +01:00
Rat b45e12fdf9 Core/Conditions: updated CONDITION_AURA, if Param3 is set true target is tested for condition, else caster is tested
--HG--
branch : trunk
2010-11-05 22:54:51 +01:00
Rat 9b3ce64f6e Core/SmartAI: added option to reset orientation (use ACTION_SET_ORIENTATION with TARGET_SELF to reset to spawn orientation)
--HG--
branch : trunk
2010-11-05 21:34:26 +01:00
Rat be25e38144 Core/SmartAI: added SMART_ACTION_SIMPLE_TALK, param1: textID, uses the 'Targets' to say the text,
NOTE: textID is relative to the current target's entry OR if target is a player, text is used with source creature's entry

--HG--
branch : trunk
2010-11-05 19:38:43 +01:00
click 7956bc8c44 Core/Chat: Move some protected members of chathandler to public scope so they can be used by commandscripts (Patch by Paradox)
Closes issue 4653

--HG--
branch : trunk
2010-11-05 07:54:24 +01:00
Shocker 7f4039269c Core/Groups: Fix issue with raid-leader being removed from group on relog/server restart. Updates issue 3142
--HG--
branch : trunk
2010-11-05 00:54:17 +02:00
Rat 57661c6d54 Core/SmartAI: swap menuid/actionid params in GOSSIP_SELECT event
- use proper sql ORDER to order script lines

--HG--
branch : trunk
2010-11-04 22:08:15 +01:00
Shauren f658176df8 Core/Spells: Enchanting items using a vellum is no longer possible in trade
Closes issue #2990.

--HG--
branch : trunk
2010-11-04 21:59:27 +01:00
Rat 54b11cce01 Core/SmartAI: store event invoker when available, and use it for Invoker target
note: dont forget to call script_reset when script is over!

--HG--
branch : trunk
2010-11-04 19:56:39 +01:00
click cf475e75ca dep/ace: fix the config-test macro
--HG--
branch : trunk
2010-11-04 06:08:24 +01:00
click 9b16ee203f Dep/ACE: Upgrade ACE -library to 5.8.3
--HG--
branch : trunk
2010-11-04 05:30:29 +01:00
Rat 2604250c3c Core/SmartAI: fixed Gossip Select event
--HG--
branch : trunk
2010-11-03 19:39:53 +01:00
Rat c9cf2f059f Core/AI: delay all AI()->Respawn() hooks by 1 server tick, this way when creatures are just got created they will successfully find other objects in scripts at spawn time
--HG--
branch : trunk
2010-11-03 18:33:47 +01:00
Rat 4747c5f820 Core/SmartAI: fixed EVENT_RANGE handling, and limited it to only creature scripts
--HG--
branch : trunk
2010-11-03 17:25:46 +01:00
Shauren 58bc1194d2 Scripts/Icecrown Citadel: Fixed Festergut casting Gastric Bloat too often, patch by bytewarrior
Closes issue #4633.

--HG--
branch : trunk
2010-11-03 16:48:40 +01:00
Shauren f2fdcdf8f3 Core/Scripts: Added enum for generic script texts, fixed one broken text
Scripts/Icecrown Citadel: Blood-Queen Lana'Thel will no longer spawn for Blood Princes intro if they were already killed

--HG--
branch : trunk
2010-11-03 16:44:34 +01:00
Rat 6f748a76a1 Core/SmartAI: use BaseObject for guid based targeting if available
--HG--
branch : trunk
2010-11-03 16:40:12 +01:00
Spp 6b6d992d55 Core/Dungeon Finder: Fix 'unknown' player names after group being formed and teleported to dungeon
Original Patch by danik
Closes issue 3846

--HG--
branch : trunk
2010-11-03 14:21:59 +01:00
Rat 9df4af80f4 Core/SmartAI: added script type 9 (TimedActionList)
- interrupt spells when entering combat
- fixed reset of timers
- added npc flag modify actions
- added action to call a TimedActionList, default options are: process only OOC and resume after combat

--HG--
branch : trunk
2010-11-03 14:10:16 +01:00
Spp afb3e790de Core/Scripts: add example_commandscript as an example of how to use commandscripts to add your own commands to the core
Patch by Paradox
Closes issue 4630

--HG--
branch : trunk
2010-11-03 08:44:03 +01:00
Spp 43a5a3ced1 Core/Scripts: Cached command definitions at first use to allow dynamic commands take security levels and help text from the database.
Core/Scripts: Removed unused function related to executing dynamic commands.

Patch by Paradox

--HG--
branch : trunk
2010-11-03 08:35:48 +01:00
Spp 38ae2062d9 Core/Scripts: Changed chat command handlers to take ChatHandler* as an argument, instead of as 'this'.
Fixes commandscripts so it can be used to add custom commands without editing chat.h, chat.cpp or levelX.cpp files.

Patch by Accel
Closes issue 4629

--HG--
branch : trunk
2010-11-03 08:30:40 +01:00
Rat 51f17678de Typo O.o
--HG--
branch : trunk
2010-11-02 17:47:47 +01:00
Rat f27b6f6097 Core/SmartAI: do not report not used smart scripts as error
--HG--
branch : trunk
2010-11-02 17:29:36 +01:00
runningnak3d e95eb72603 Core/Scripts/ToC5: Set proper vehicle IDs in script to go with recent exploit
fix. Thanks again to Aokromes

--HG--
branch : trunk
2010-11-01 14:24:45 -06:00
Rat 7ed5f93aed Core/SmartAI: use Target types where possible, instead of simple self target
- removed some obsolete comments
- added errorlog if a special action uses a non-smart scripted creature

--HG--
branch : trunk
2010-11-02 13:13:54 +01:00
Rat b3b048449b Core/SmartAI: renamed reload command to reflect funtion name
--HG--
branch : trunk
2010-11-01 16:10:30 +01:00
Rat d568fcf273 Core/SmartAI: remade 'Say' handler, more simple, more usable, you can now script multiple npc conversations from one script
-also added 'entry' to text_over event

--HG--
branch : trunk
2010-11-01 11:00:53 +01:00
Rat e68c149e69 Core/ConditionMgr: use chamer/owner player for spell condition check where avaliable
--HG--
branch : trunk
2010-10-31 22:37:54 +01:00
Rat 96df97c5ae Core/SmartAI: fix logic in HAS_AURA event
note: copy-paste from eai is bad idea ..

--HG--
branch : trunk
2010-10-31 22:11:56 +01:00
Rat 32f088558d Core/ConditionMgr: added two new conditions NEAR_CREATURE and NEAR_GAMEOBJECT
--HG--
branch : trunk
2010-10-31 22:10:31 +01:00
Rat 9a02ae79c9 Core/Conditions: fixed a typo in logging
--HG--
branch : trunk
2010-10-31 15:39:09 +01:00
Rat 75c065637c Core/SmartAI: added new target type (invoker's vehicle)
-added new action: ENTER_VEHICLE (79), param1: seatID

--HG--
branch : trunk
2010-10-31 14:21:35 +01:00
Rat b6c8158f88 Core/Vehicles: temp fix visibility issues when creatures enter a vehicle, this also fixes the 'Ride Vehicle' type spells
note: isntance scripts using spell+EnterVehicle() hacks should be updated

--HG--
branch : trunk
2010-10-31 14:19:14 +01:00
Machiavelli 05a292633c Core/DBLayer:
- Fix a race condition in KeepAlive() when connections are using mysql context when ping is called.
- Don´t wait for locks to be released on a connection when pinging, this means the connection is not idle and locking is redundant.

Patch by admin@****.net

Fixes issue #4599

--HG--
branch : trunk
2010-10-31 10:55:29 +01:00
Rat c9bbe85e48 Core/DB: changed some errors to DB errors
--HG--
branch : trunk
2010-10-30 23:06:05 +02:00
Spp c9b6f44e9f Core/Groups: Add some checks to prevent a crash with Invites
Core/Groups: Use proper size with SMSG_GROUP_DECLINE Opcode

Fixes issue 4412. (Prevents the crash but the main reason of player being null not solved)

--HG--
branch : trunk
2010-10-29 14:09:25 +02:00
Shocker 7b35d0b2e8 Core/Spells: Deathfrost weapon enchantment shouldn't scale with spellpower
--HG--
branch : trunk
2010-10-29 00:21:39 +03:00
Shauren 618afa3656 Scripts/Icecrown Citadel: Fixed possible crash in Shadow Prison aura script
--HG--
branch : trunk
extra : rebase_source : 6eb3f49dece9087b4ac82a1cda236ca63ce97c24
2010-10-28 16:55:28 +02:00
runningnak3d bcce517c6d Core/Scripts: Fix exploit in ToC5 where vehicles could be used a
multipassenger mounts anywhere. Thanks Aokromes from reporting

--HG--
branch : trunk
2010-10-27 15:01:29 -06:00
Spp 1d7100b67f Core/Dungeon Finder: Fix a crash when someone leaves the group while a Rolecheck is active
--HG--
branch : trunk
2010-10-28 17:14:18 +02:00
silinoron f1f1823901 Core/SmartScript: Fix a compile error.
Thanks Aokromes for telling me it existed.

--HG--
branch : trunk
2010-10-27 20:03:42 -07:00