Commit Graph

4975 Commits

Author SHA1 Message Date
megamage
c84f63d431 *Fix a crash caused by corpse.
--HG--
branch : trunk
2009-08-13 10:07:51 -05:00
Kudlaty
7cc1b6a0d1 merge
--HG--
branch : trunk
2009-08-13 17:03:12 +02:00
Kudlaty
5ba4407d42 Merge [SD2]
r1231 Remove old hack code that never worked and move/comment a few remaining to a more suitable function.
r1232 Use more safe way to check local bool in AI, accessed from GossipSelect
r1233 Update instance type and data labels for ZG to sd2 style and remove not needed ones.
r1234 Add scriptname for Gong, prevent using it in ZG if event already in progress or done (script added in previous commit)
r1235 Restore compile, sorry for typos :)
      Apply SD2 code style to arlokk script.

--HG--
branch : trunk
2009-08-13 17:02:49 +02:00
megamage
284b0063a8 *A hacky fix of the crash happening when player is teleported during logout.
--HG--
branch : trunk
2009-08-13 10:01:00 -05:00
Chaz Brown
5ab3117c0c Fix libssl in OSX - fix provided by imbecile
--HG--
branch : trunk
2009-08-13 08:40:40 -04:00
QAston
c8a3f95836 *Fix a typo in Spell::EffectEnergize.
--HG--
branch : trunk
2009-08-13 14:36:50 +02:00
Drahy
02da8a41f7 [8361] Avoid apply bonuses to item 32262 drain life. Author: VladimirMangos
--HG--
branch : trunk
2009-08-13 11:21:08 +02:00
Chaz Brown
0eccbab790 Missing change in rev 4945 - thanks Thyros and Aokromes for pointing it out.
--HG--
branch : trunk
2009-08-13 04:42:19 -04:00
Chaz Brown
df163bc63c Fix typo and add debug_Out_Filters (update your conf)
--HG--
branch : trunk
2009-08-13 03:33:09 -04:00
Chaz Brown
f6734066f9 AHBot - Clean up some debug messages, fix a couple of possible conditions where performance could be affected, shorten some code to cut down on future typos - Even though your idea wasn't valid, it lead to some of this optimization, so, thanks MrSmite
--HG--
branch : trunk
2009-08-13 01:50:28 -04:00
megamage
11ceeefbea *Some update of script "death's challenge"
--HG--
branch : trunk
2009-08-13 00:21:10 -05:00
megamage
7292420583 *Rewrite and simplify sendmessagetoset functions. This fixes the bug that player cannot see dummy aura is cancelled when puppet is far away.
--HG--
branch : trunk
2009-08-12 23:23:53 -05:00
megamage
92769d3ffe *first remove corpse from world then resetmap
--HG--
branch : trunk
2009-08-12 23:12:33 -05:00
megamage
24f906cfc0 *Do not allow to run the server if openssl lib is outdated.
--HG--
branch : trunk
2009-08-12 23:10:16 -05:00
Kudlaty
0606446ccc merge
--HG--
branch : trunk
2009-08-13 05:47:50 +02:00
Kudlaty
f6ec531d4d Merge [SD2]
r1221 Restore compile after changes to KilledMonster().
      Remove no longer needed code where creature_template are expected to have definitions for KillCredit.
      Replace one creature script with areatrigger script and some related code cleanup.
      Requires Mangos 8190+
r1222 Move waypoints for Barnes to database. Also adjust code and simplify parts of pre-event. Some additional code cleanup
r1223 Clean up labels for Kara instance.
r1224 Replace use of MANGOS_DLL_SPEC with MANGOS_DLL_DECL as expected in script. Thanks Zor for notice. - skip
r1225 Add new options for escortAI.
      For normal escorts, InstantRespawn can be set true (normal will despawn creature and use database spawntimesecs)
      For non-escorting scripts, option to loop path can be set. Creature will return to respawn coords and after, start path from beginning.
r1226 Remove escortAI option to defend self. Creature must be able to enter combat with any attacking and then defend self by attacking back.
      If custom cases exist where creature must not be set in combat with attacking, then custom script is expected.
r1227 Using _SECURE_SCL=0 to speedup iterators in Windows (release build, ref Mangos rev 8194). Patch by Vladimir - skip
r1228 Clean up gruul instance + scripts, add instance save and apply sd2 code style.
      Some adjustment to hurtful strike. Minor adjustments to other spell abilities.
      Create own AI for adds, and avoid repetitive code being common for all adds.
      Patch by Abim - skip
r1229 Move door code to instance script and simplify Set/GetData() code and aggro check. - skip
r1230 Remove no longer needed call to Reset() in Council_Base_AI and correct typo. - skip

--HG--
branch : trunk
2009-08-13 05:47:23 +02:00
megamage
5cd6c7c4f7 *Implement m_AurasUpdateIterator. [8329] Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 21:24:15 -05:00
megamage
32e960d5bc *Fix build.
--HG--
branch : trunk
2009-08-12 21:14:35 -05:00
megamage
421a154544 [8360] Simplify and partly rewrite SPELL_EFFECT_TRIGGER_SPELL work. Author: VladimirMangos
* Always use explicit spell cast from effect code
    * Always use for normal case unitTraget self cast
      that fix thriggered spell apply to area targets.

--HG--
branch : trunk
2009-08-12 21:07:03 -05:00
megamage
17b5663a36 [8359] Make effect from item 20414 positive. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:58:58 -05:00
megamage
07136c9e5c [8356] Added 'place holders' for unknown CreatureTypeFlags.
Signed-off-by: NoFantasy <nofantasy@nf.no>

--HG--
branch : trunk
2009-08-12 20:57:52 -05:00
megamage
9f38d67f2e [8355] Implement QUEST_STATUS_FAILED and simplify related code.
Use FailQuest for all quests that can fail and remove no longer needed function FailedTimedQuest.

    Signed-off-by: NoFantasy <nofantasy@nf.no>

--HG--
branch : trunk
2009-08-12 20:57:35 -05:00
megamage
2e1b5a41b7 [8354] Update kill credit for normal creature entry including heroic case. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:54:27 -05:00
megamage
fe3e3be3a7 [8352] More correct dazed spells selection for remove at shapeshift. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:49:06 -05:00
megamage
0d1677fa09 [8351] Implement spell 55693. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:47:54 -05:00
megamage
603685a2d2 * Some cleanups and better checks in IsPositiveEffect. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:42:07 -05:00
megamage
8ee1e20acd [8345] corrected startup-checks for spell_area table
old problem was that, for example
    a single spell couldn't be cast
    at aura OR quest (so 2 entries in this table)

    .. will be now possible

    Signed-off-by: balrok <der-coole-carl@gmx.net>

--HG--
branch : trunk
2009-08-12 20:38:24 -05:00
megamage
d1a5689b65 [8344] In case battleground reward items player must "receive" instead "create" item in message. Author: VladimirMangos
--HG--
branch : trunk
2009-08-12 20:36:55 -05:00
megamage
d575793f6d [8343] Extand level allowed range for item use to upper values if it end at max player level. Author: VladimirMangos
Also add DEFAULT_MAX_LEVEL define for store current used client expection about max player level.
    For example for current supported this is 80.

--HG--
branch : trunk
2009-08-12 20:30:17 -05:00
megamage
4f4775a31b [8339] Improved storing/restoring BG entry point
* Introduced new table character_battleground_data
    * Entry point is now stored on BG enter event not join event
    * Entry point for dungeons is now correctly set to nearest graveyard
      (this prevent well known assert in GetInstance because of porting to already destroyed instance)
    * Teleporting from BG correctly restore mount state
    * Teleporting from BG correctly restore taxi flight
      (in multipath flight you will end up in nearest transition point on the route)

    Signed-off-by: ApoC <apoc@nymfe.net>

--HG--
branch : trunk
2009-08-12 20:27:00 -05:00
Kudlaty
ed637fbf1f Merge [SD2]
r1211 Correct tempsummon type for adds and add spellId for future use. Patch by Abim - skip
r1212 Added support for quest 6523. Patch by Meldanor - skip (already have that, just move waypoints to db)
r1213 Add a few missing address-of operators and some general cleanup.
r1214 Adjusting how pet are summoned and check when new pet can be summoned for sharkkis. - skip
r1215 Added support for event related to quest 12727. Original patch by ckegg
r1216 Some adjustments to function for controlling combat movement (MoveChase())
r1217 Use SetCombatMovement() for more scripts where expected and remove one useless function from Scripted_NoMovementAI (this may be fully removed)
r1218 Correct script_texts, adding variable %s where missing (...and where expected. Note that not all creature emote texts contain name of sender). - skip
r1219 Reset DATA_OPERA_OZ_DEATHCOUNT to 0 at start, in case event was previously run and incremented counter.
r1220 Correct lost-in-process FillPointMovementListForCreature() for quest 12727 (copy/paste == bad)

--HG--
branch : trunk
2009-08-13 02:48:34 +02:00
QAston
46f4159c5e *Fix glyphs increasing duration of buff when it's selfcasted.
--HG--
branch : trunk
2009-08-13 02:23:50 +02:00
megamage
9ef950f9be *Disable spams of "received not allowed opcode xxx". If any dev finds this error log useful, feel free to add it back.
--HG--
branch : trunk
2009-08-12 19:02:10 -05:00
megamage
e90686046e *Cleanup of scripts.
--HG--
branch : trunk
2009-08-12 18:58:21 -05:00
Chaz Brown
afdd3837e8 Change/Add some debug output for Buyer and Seller in AHBot
--HG--
branch : trunk
2009-08-12 19:37:17 -04:00
Kudlaty
57d2f5e7d2 Merge [SD2]
r1205 Check pointer for NULL before use. - skip
r1206 Remove conflicting MovePoint and let creature fully use MoveChase for summoned in hyjal. - skip
r1207 Add instance bosses for map 602. Scripts can not be considered complete and must be tested further when databases has better values for misc (such as creature factions, health/mana etc)
r1208 Added handling of doors for second last boss in BRD. Apply sd2 code style and clean up last boss(es) scripts and spells. Patch by Turok - skip
r1209 Merge scripts for last bosses in BRD to one source file. Also not store pointers to creatures and create only when needed.
      Added creation of portal if Moria survive and Emperor is dead. - skip
r1210 Clean up and add script for second boss in SWP. Patch by paytheo (original by ckegg) - skip
note: in previous merge should be r120x insted of r200x. Sorry for that

--HG--
branch : trunk
2009-08-13 00:57:55 +02:00
QAston
ba91c78ceb *Update Mana Shield Spell Power Coefficient - by fukifat.
*Add function void AuraEffect::HandleAuraEffectSpecificMods(bool apply, bool Real, bool changeAmount), and aura effect specific stuff to it.
*More correct aura scaling with lvl for area auras.
*Prevent exploits with relog while having auras with modified amount.

--HG--
branch : trunk
2009-08-13 00:52:05 +02:00
Rat
348116f6f8 *fix Teron Gorefiend reset-loop bug
--HG--
branch : trunk
2009-08-12 23:45:02 +02:00
Kudlaty
c2b2611a42 Merge [SD2]
r1192 Adding and correct spell used for hard enrage after 15 minutes, and also correct initial ability if any of dragons are alive at initial aggro. Added placeholder for soft enrage at 10%HP left.
r1193 Fixed typo in EnterEvadeIfOutOfCombatArea()
r1194 Implement basic parts of tomb of seven event in BRD. - skip (already scripted)
r1195 Some cleanup to parts of the seven event script.
r1196 Reset event for triage-quests in better way and also clear lists.
r1197 Clean up and add long time incomplete script for first boss in SWP. - skip
r1198 Correct typo in filename in previous commit, sorry :) - skip
r1199 Added script for areatrigger 4853, to be used to start pre-event, second boss in SWP. - skip
r2000 Check alive-state before hatching all eggs. Patch by kolomati2
      Correct typo in variable. - skip
r2001 Correct one spellId and remove non-existing. By Tassader. - skip
r2002 Added support for quest 12739(and 12742 to 12750). Patch by ckegg - skip (already scripted)
r2003 Corrected copyright notices in misc makefile.am - skip
r2004 Added: Missing heroic spells for Vexallus. Heroic version is complete now.
      Added: Missing heroic spells for Murmur. Heroic version is also complete.
      Fixed: As always some timers.

--HG--
branch : trunk
2009-08-12 23:34:19 +02:00
megamage
15c61715e2 *Cleanup of unworthy initiate script.
--HG--
branch : trunk
2009-08-12 15:58:54 -05:00
megamage
03a111bf84 *Remove duplicated timer of flame leviathan script.
--HG--
branch : trunk
2009-08-12 15:58:34 -05:00
megamage
24c8931ae9 *Fix a crash caused by corpses.
--HG--
branch : trunk
2009-08-12 15:33:12 -05:00
megamage
c1daf6567c *Fix a crash caused by recall pet.
--HG--
branch : trunk
2009-08-12 13:31:05 -05:00
megamage
a30e3b7bd3 *Fix a crash caused by addnpc command.
--HG--
branch : trunk
2009-08-12 13:03:44 -05:00
QAston
bee1dff87f *Use #defines instead of spellids for often used spells.
*Make recently broken talent Improved Healthstone work again - by iadus3.

--HG--
branch : trunk
2009-08-12 18:51:19 +02:00
Kudlaty
864e179240 Merge [SD2]
r1186 Remove one hack (SPELL_EFFECT_CHARGE2 implemented in Mangos) - skip
r1187 After one boss of tomb of seven event dead (BRD), open door for progression of instance. Remove manual summon and use spell instead.
r1188 Move most handling of GO's in BT to instance script. - skip
r1189 Fix possible crash, m_pInstance must always be checked before use. - we don't have that problem
r1190 Remove old commented code no longer valid and apply code style
r1191 Update MaNGOS-8095-ScriptDev2.patch, correcting whitespace, tabs and linefeed - skip

--HG--
branch : trunk
2009-08-12 18:38:13 +02:00
megamage
99eafd6a52 *Allow players to capture siege workshops in wintergrasp.
--HG--
branch : trunk
2009-08-12 08:51:51 -05:00
megamage
cd78172c7d *Do not allow to enter frostwyrm wing before killing all previous bosses. If you do not like it, simply do not apply the sql.
--HG--
branch : trunk
2009-08-12 08:01:06 -05:00
megamage
1bdc65e5ee *Send area id instead of zone id in local defense channel. By durotar
--HG--
branch : trunk
2009-08-12 07:16:20 -05:00
megamage
296771f7e7 *SetMap for corpse in Create function as other objects.
--HG--
branch : trunk
2009-08-12 07:10:07 -05:00