Commit Graph

10380 Commits

Author SHA1 Message Date
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 glorandwarf@yahoo.com

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 erocoloco@hotmail.com
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