Commit Graph
100 Commits
Author SHA1 Message Date
XTZGZoReX edc4c3317c * Cleanups in OutdoorPvP code (mostly formatting). Also removed useless file.
--HG--
branch : trunk
2010-08-06 17:00:39 +02:00
XTZGZoReX e4cab07f32 * Add ScriptName to conditions.
--HG--
branch : trunk
2010-08-06 16:33:31 +02:00
XTZGZoReX fd34134a45 * Add ScriptName to game_weather.
--HG--
branch : trunk
2010-08-06 16:28:17 +02:00
Shauren fda697a1e7 Implemented ACHIEVEMENT_CRITERIA_TYPE_EARN_ACHIEVEMENT_POINTS
Fixed timed achievements timer restarting on every map change
Added missed change in instance_template format

--HG--
branch : trunk
2010-08-06 14:56:41 +02:00
Shauren 07348ff4af Added ScriptName to battleground_template for script system rewrite
--HG--
branch : trunk
2010-08-06 13:47:17 +02:00
azazel 6a202826e6 Remove obsolete files from project. Thanks [email protected] for pointing this out. Closes issue #3257
--HG--
branch : trunk
2010-08-06 17:39:18 +06:00
Shauren 9b22ad006b Removed unused access_id from instance_template table (obsolete since access_requirement rewrite)
Fixed build issues with my previous commit

--HG--
branch : trunk
2010-08-06 13:12:18 +02:00
Liberate c0df111bb0 Fixes an exploit to get 65k spell power.
Fixes issue #3212

--HG--
branch : trunk
2010-08-06 13:00:16 +02:00
Shauren 7cae47210e Added ScriptName to transports table for script system rewrite
--HG--
branch : trunk
2010-08-06 12:13:13 +02:00
XTZGZoReX 9cfef5c39f * Minor correction to world_database.sql.
--HG--
branch : trunk
2010-08-06 12:02:07 +02:00
azazel eb5fb3664b * Add NULL-pointer check to CharmInfo destructor. Closes issue #3287.
* Remove references to AuctionHouseBot files from win project.

--HG--
branch : trunk
2010-08-06 15:50:12 +06:00
azazel 4fb3098d18 * Add NULL-pointer check to CharmInfo destructor. Closes issue #3287.
* Remove references to AuctionHouseBot files from win project.

--HG--
branch : trunk
2010-08-06 12:28:37 +06:00
click 1565fe4ff4 Adjust maximum sizes of some healthcalculations over to utilize 64-bit uint
--HG--
branch : trunk
2010-08-06 05:11:28 +02:00
click 9a21459c9d Forgot two removals in previous commit
--HG--
branch : trunk
2010-08-06 04:29:40 +02:00
click f5d57f05f7 Remove AuctionHouseBot-functionality from core (some cleanups may be required)
--HG--
branch : trunk
2010-08-06 04:22:07 +02:00
click 0caaa3e478 Revert changes done in r0074e32c2f and r4d86e4199a - fixes buildissues ( if()+reinterpret_cast is faster than dynamic_casts btw )
--HG--
branch : trunk
2010-08-06 03:00:39 +02:00
silinoron 71ef21de21 Add helper Player::GetAverageItemLevel() function for future use in Dungeon Finder and vehicle scaling.
--HG--
branch : trunk
2010-08-05 14:18:33 -07:00
azazel 309970936c Remove phasing when player enters/leaves instance (by 2010phenix)
Closes issue #3279

--HG--
branch : trunk
2010-08-06 00:24:11 +06:00
azazel f9a51dc214 * Corpse related cleanup (author: Hunuza)
* Avoid saving of the corpse in arenas (author: VladimirMangos)

--HG--
branch : trunk
2010-08-06 00:15:29 +06:00
Shauren 4773aad26b Make use of new ToItem() casts
--HG--
branch : trunk
2010-08-05 18:43:30 +02:00
Shauren c94046b065 Make typecasting methods *really* safe and get rid of redundant typeId/Typemask checks, thanks Zor and Machiavelli for help
--HG--
branch : trunk
2010-08-05 17:01:25 +02:00
Shauren 30194bdd61 Add forgotten proc flags in revision ed3790455dfd (9166)
--HG--
branch : trunk
2010-08-05 18:28:23 +02:00
azazel 885fc368fd * Implement item limit category (based on changes by VladimirMangos)
* Additional check for HandleAutoBankItemOpcode (thanks to VladimitMangos)
* Properly show empty vendor list for empty item list (author: a1ien)
* More stricted checks for store operations (thanks to VladimirMangos)
* Prevent autostoring of not empty bags (thanks to L1ghtGu4rd)

Changes need testing. Please post bugs on our tracker.

--HG--
branch : trunk
2010-08-05 22:08:07 +06:00
Shauren a042b972ed Fixed pet talents amount exploit
Closes issue #3273.

--HG--
branch : trunk
2010-08-05 11:33:54 +02:00
QAston e659c3faf3 *Update CMSG_USE_ITEM opcode to fit new clientCastFlag handling.
--HG--
branch : trunk
2010-08-04 22:52:35 +02:00
azazel f3eab91102 * Convert SCRIPT_COMMAND_* defines to enum. Make comments for values up-to-date.
* Cleanup ScriptsProcess method. Move repeating parts of code to inline helper methods.
* Improve SCRIPT_COMMAND_CAST_SPELL command. You can specify triggered attribute when datalong2 = 4 by making dataint negative.
* Improve SCRIPT_COMMAND_KILL command. Now, if source is not a creature, it tries to use target object instead.

--HG--
branch : trunk
2010-08-05 00:55:10 +06:00
QAston 96fa91034f Missing part of r7dd45a0182 :(
--HG--
branch : trunk
2010-08-04 20:34:08 +02:00
QAston bc8c74475e *Fix a crash in Aura::UnregisterSingleTarget.
--HG--
branch : trunk
2010-08-04 20:03:33 +02:00
QAston 2789b30d19 *Typofix - Relocate != SetPosition - fixes problems with visibility after changing zones.
--HG--
branch : trunk
2010-08-04 19:44:34 +02:00
QAston 96eb7c513f *Some more research about spell target flags - thanks to Zor for info.
--HG--
branch : trunk
2010-08-04 19:16:44 +02:00
Shauren 362ae2d4c6 Fixed pet talents: Guard Dog and Silverback
Removed pre-3.3.0 code for Improved Cower

Closes issue #3198.

--HG--
branch : trunk
2010-08-04 17:49:23 +02:00
QAston 6353e7dd8c *Update movement enums - thanks to Zor for info.
*Add functions for position data streaming.

--HG--
branch : trunk
2010-08-04 14:39:45 +02:00
Shauren 850868c8a3 Fixed issues with taking items from mail
Closes issue #3263.

--HG--
branch : trunk
2010-08-04 14:31:47 +02:00
Shauren 1058d7b37d Fixed timer displaying for timed quests
--HG--
branch : trunk
2010-08-04 13:17:33 +02:00
Shauren 705de07e7e Fixed Carrion Feeder pet talent
Removed useless code for Wolverine Bite

--HG--
branch : trunk
2010-08-04 12:12:58 +02:00
XTZGZoReX dc6c3f96b1 * Add operator -= to HookList.
--HG--
branch : trunk
2010-08-04 11:55:40 +02:00
Shauren b7d34dcb53 Cleaned up item flags: separated item proto flags and item field flags
Implemented use of:
ITEM_PROTO_FLAG_PROSPECTABLE and ITEM_PROTO_FLAG_MILLABLE now checked instead of bag family mask
ITEM_PROTO_FLAG_SMART_LOOT for profession recipes, player has to have skillline and not know the recipe
ITEM_PROTO_FLAG_OPENABLE item has to have it set to use item_loot_template
ITEM_PROTO_FLAG_NOT_USEABLE_IN_ARENA if this is set item can never be used in arena
ITEM_FLAG_UNLOCKED marks unlocked items

Simplified BoA check for mail sending
Stackable items are no longer refundable
Removed useless code that always set ITEM_FIELD_FLAGS equal to proto flags
Unlocking items (lockpicking) is now blizzlike

--HG--
branch : trunk
2010-08-04 10:34:30 +02:00
QAston 846aa12260 *Fix crashy implementation of aura type 305.
--HG--
branch : trunk
2010-08-04 08:21:58 +02:00
XTZGZoReX a0b5921bfa * (Very) minor cleanups.
--HG--
branch : trunk
2010-08-04 00:24:04 +02:00
click 33829ed45e Clean up some crap - remove generated config.h (old junk) and also requirements for that in Error.h
--HG--
branch : trunk
2010-08-03 22:51:27 +02:00
John Holiver c4c0f5734e Really fix Sartharion adds loot farming this time.
--HG--
branch : trunk
2010-08-03 17:27:53 -03:00
Shauren b70790693d This should fix crashes introduced in revision 4e75fea59c6c (9138)
--HG--
branch : trunk
2010-08-03 21:38:49 +02:00
John Holiver feebd3a24a Fix a urand limit for Battleground Weights.
--HG--
branch : trunk
2010-08-03 14:39:18 -03:00
Shauren 682ebafdc0 Removed useless code setting gameobject flag locked with each use of gameobject type 22
--HG--
branch : trunk
2010-08-03 17:00:02 +02:00
click 049865129a Fix build
--HG--
branch : trunk
2010-08-03 13:18:13 +02:00
Shauren 4e624a1a8d Fixed Wolverine Bite damage (pet talent)
--HG--
branch : trunk
2010-08-03 12:31:51 +02:00
Shauren ee147d6402 Compile fix
--HG--
branch : trunk
2010-08-03 11:31:23 +02:00
Shauren 109bcb0927 Fixed Heart of the Phoenix pet spell
--HG--
branch : trunk
2010-08-03 10:47:38 +02:00
QAston e7ee828fe1 *Update spell_bonus_data for Garrote - by svetilo12.
*Fix build.

--HG--
branch : trunk
2010-08-03 06:36:25 +02:00
QAston 12c339f421 *Add missing Bestial wrath and The Beast Withing immunities after client change. Original patch by Visagalis.
*Little typo from prev rev.

--HG--
branch : trunk
2010-08-03 06:16:59 +02:00
QAston c5a9d3b463 *Add m_duringRemoveFromWorld lock to prevent adding single target auras during or after remove from world process.
--HG--
branch : trunk
2010-08-03 06:11:03 +02:00
silinoron 14827321bf Add support for CreatureAI::DamageDealt used in a Zul'Aman script. Thanks joshwhedon.
--HG--
branch : trunk
2010-08-02 14:18:30 -07:00
silinoron e798097ae3 Move a couple of warrior spell dummy effect handlers to spell scripts.
--HG--
branch : trunk
2010-08-02 13:18:45 -07:00
QAston 891df4eccb *Drop m_intTargetFlags, correctly send TARGET_FLAG_SOURCE_LOCATION and TARGET_FLAG_DEST_LOCATION - fixes many spell visuals.
--HG--
branch : trunk
2010-08-02 20:05:22 +02:00
Shauren 03caa8550f Fixed typo (and a crash) - damn copypasting from one line above
--HG--
branch : trunk
2010-08-02 18:25:44 +02:00
QAston 18dd177308 *Search for aura caster in our out of world in Aura::UnregisterSingleTarget().
--HG--
branch : trunk
2010-08-02 18:05:07 +02:00
teacher 027ca9b62a Moved spell_script_names data from world_scripts_full.sql to world_database.sql, it is to be kept here from now on.
Added missing data to fulls.
Some cosmetic fixes to a couple of sql update files.
No need to re-apply any sql file for this commit.

--HG--
branch : trunk
2010-08-02 17:56:59 +02:00
QAston ff575b7002 *Fixes in spell targets packet reading and writing.
--HG--
branch : trunk
2010-08-02 17:55:15 +02:00
Shauren 46c1a4640d Groups are now stored by low guid in map
Creatures and gameobjects also store looting group by low guid instead of full guid

--HG--
branch : trunk
2010-08-02 17:28:47 +02:00
Shauren 21db4757a9 Move CharacterDatabaseCleaner to Tools in VS project
--HG--
branch : trunk
2010-08-02 15:43:59 +02:00
Shauren b76ceca24f Updated .pdump commands
Deleted (but kept in db) characters cannot be dumped

--HG--
branch : trunk
2010-08-02 15:14:47 +02:00
silinoron 0cdeafc2eb Comment out body of AddSC_example_spell_scripts() to get rid of a loading error.
--HG--
branch : trunk
2010-08-01 17:16:31 -07:00
XTZGZoReX fe39bcaab8 * I'm a firm believer that if you told a computer to make a variable 'unsigned unsigned' it would blow up.
--HG--
branch : trunk
2010-08-01 21:41:37 +02:00
QAston c243f60eae *Fix import of 9120_world_spell_proc_event.sql when using some weird tools - by taliesin.tc.
--HG--
branch : trunk
2010-08-01 03:39:43 +02:00
QAston d5e33bf4ba *Use spell_ranks table in spell scripts to not duplicate data.
--HG--
branch : trunk
2010-08-01 03:23:14 +02:00
QAston 4f3093f5e5 *Disable spellpower/ap bonus for flametongue - by Visagalis.
--HG--
branch : trunk
2010-08-01 01:54:06 +02:00
QAston 2212eb604d *Add helpers for checking auras present on unit by type and spell affect mask
*Add linked SPELL_AURA_PERIODIC_HASTE to shadowform spell - by dr.tenma

--HG--
branch : trunk
2010-08-01 01:22:13 +02:00
QAston 9cc4a9a6da *Fix Sniper Training refresh - by liszt.mbox.
--HG--
branch : trunk
2010-07-31 23:50:52 +02:00
QAston 73b481073d *Fix talent Will of the NEcropolis
*Backout unintentional change from ra299f0b248.

--HG--
branch : trunk
2010-07-31 23:39:03 +02:00
QAston e0af5f9220 *Fix Glyph of Salvation - by DrTenma.
--HG--
branch : trunk
2010-07-31 20:51:53 +02:00
QAston fdc36b9d89 *Fix periodic damage of Unholy Blight - Fixes issue 1152.
--HG--
branch : trunk
2010-07-31 20:31:40 +02:00
QAston d4e1828f57 *Update ppm chance for Unbridled Wrath - by insider42.
--HG--
branch : trunk
2010-07-31 20:18:52 +02:00
QAston c26c128ba6 *Add data from r4bf7778333 to world_database.sql
*Add 22 sec internal cooldown to Lock and Load - by servet.

--HG--
branch : trunk
2010-07-31 20:11:07 +02:00
silinoron 9d93ebc8b7 Move SPELLFAMILY_PALADIN dummy spell effects for Holy Shock, Blessing of Faith, and Judgement of Command to spell scripts.
--HG--
branch : trunk
2010-07-31 10:46:33 -07:00
Liberate c49ac64d94 Forgot to add a DELETE query at the last revision. I just told devs to check their sql, and then I make a mistake of my own.
Ah well, I'm just one of the lousy devs as well.

--HG--
branch : trunk
2010-07-31 18:16:12 +02:00
Liberate 8044051682 *Fixes Necrosis and Blood-Caked Blade. They now only proc from melee auto-attacks. Fix by kerekeszoltan90.
Fixes issue #3184

--HG--
branch : trunk
2010-07-31 17:49:47 +02:00
Liberate d7e2f338c2 Fixes many sql errors in the sql/scripts/ directory. Please devs don't just copy-paste the sql from the updates directory into these sql files. This might cause errors.
--HG--
branch : trunk
2010-07-31 17:35:29 +02:00
click 0be9e71f85 Buildsystem/CMake: Fix a minor "need sleep, i am tired"-error (typos ftw)
--HG--
branch : trunk
2010-07-31 16:16:55 +02:00
thenecromancer 270367abfc Prevent players from gaining rest state in hostile capital zones.
Fix a bug where PvP status never resets when not moving to another zone.
Reset PvP status at Taxi node end/worldport when moving into friendly territory.

--HG--
branch : trunk
2010-07-31 13:55:23 +02:00
thenecromancer bdf20fa420 Fix exploit with Shiv giving 100% chance to apply any enchant on offhand items
--HG--
branch : trunk
2010-07-31 13:49:13 +02:00
thenecromancer 99efabdbd3 Remove crude check in proc system preventing charges drop in proc system for absorbs.
To preserve effect, code must be placed for charge handler to skip procs with 0 damage.
This code is preventing procs that should happen (like Savage Defense, or CCs)

--HG--
branch : trunk
2010-07-31 13:45:00 +02:00
thenecromancer 06caa4a945 Typo in some function usage
--HG--
branch : trunk
2010-07-31 13:40:32 +02:00
Shauren ab83f72d10 Fixed mysql syntax errors caused by using wrong delimiter, thanks BlackCat0110
--HG--
branch : trunk
2010-07-31 11:06:21 +02:00
Shauren 2a371bb224 Hopefully the last fix for revision 3849fdebbcc7 (9090) - use proper field to pull random properties
--HG--
branch : trunk
2010-07-31 10:17:49 +02:00
click fd03b78fe6 Core/SQL: Fix character_database structure-creation - thanks to some number-thingie@qq
Closes issue 3181

--HG--
branch : trunk
2010-07-31 08:58:46 +02:00
silinoron 0f99c2feb6 Some forgotten changes.
--HG--
branch : trunk
2010-07-30 22:04:01 -07:00
silinoron 71b1c781e3 Add basic support for NPCs on transports; DB data required.
Currently no support for combat while the transport is in motion.
Based on a patch by Socolin.
Fixes issue #168

--HG--
branch : trunk
2010-07-30 21:54:46 -07:00
click b3bca2743e Core/SQL: Add commentfield in battleground_template
Support-data found on TDB : http://forum.trinitycore.org/forum/122-core-related-db-content/

--HG--
branch : trunk
2010-07-31 06:22:40 +02:00
click 60b119e0ca Buildsystem/CMake: Revert changes from r0fa0512527 and use the proper checks (fix logic-error in buildfile)
--HG--
branch : trunk
2010-07-31 05:36:05 +02:00
click 7e4235ac08 Core/AuctionHouse: Fix CMSG_AUCTION_LIST_ITEMS reading (pending further investigation)
--HG--
branch : trunk
2010-07-31 04:31:21 +02:00
Xanadu ae384ea8c7 Fixed a bug in CONDITION_SOURCE_TYPE_ITEM_REQUIRED_TARGET conditions loading checks.
--HG--
branch : trunk
2010-07-31 04:12:30 +02:00
click c8d8e4cb6b Buildsystem/CMake : Adjust CMake policy to allow reusing logical targetnames
Closes issue 3167

--HG--
branch : trunk
2010-07-31 04:08:25 +02:00
Xanadu cf4d89990e Don't save Call Stabled Pet aura on player save, since it is impossible to open the stable dialog when player is loaded.
--HG--
branch : trunk
2010-07-31 03:23:14 +02:00
click c298bdb662 Remove duplicate "Error:" from some outError messages...
--HG--
branch : trunk
2010-07-31 03:12:51 +02:00
QAston e5881d9590 *Cleanup in single target auras (thanks to JuliuSZS some useable debug info)
*Add ToInstanceMap() and ToMapInstanced() typecast functions and CAST_INST macro to use in scripts.

--HG--
branch : trunk
2010-07-31 01:41:32 +02:00
Shauren 1ab415cc06 Fixed naming of SQL files
--HG--
branch : trunk
rename : sql/updates/9081_access_requirement.sql => sql/updates/9081_world_access_requirement.sql
rename : sql/updates/9081_areatrigger_teleport.sql => sql/updates/9081_world_areatrigger_teleport.sql
2010-07-30 21:15:19 +02:00
QAston 204834d33d *Change typecasts to use build in functions/macros in scripts to prevent possible access violation.
*Remove no longer needed hack from netherspite script.

--HG--
branch : trunk
2010-07-30 21:16:15 +02:00
QAston 48b360097c *use ASSERT macro instead of regular assert for better output.
--HG--
branch : trunk
2010-07-30 20:04:28 +02:00
Shauren 3dc29732b7 Fixed a very silly mistake at item loading
--HG--
branch : trunk
2010-07-30 17:54:01 +02:00
Shauren 35ce512af8 This should fix mysql syntax errors some people were getting with 9090_characters_item_instance.sql
--HG--
branch : trunk
2010-07-30 17:50:21 +02:00