Commit Graph
100 Commits
Author SHA1 Message Date
megamage 6b19d80f72 *A better fix of 4974.
--HG--
branch : trunk
2009-08-13 11:35:23 -05:00
megamage a5ae817695 *Revert 4974.
--HG--
branch : trunk
2009-08-13 11:26:30 -05:00
megamage 37b3b39322 *Fix a crash caused by shaffar script.
*Fix build.

--HG--
branch : trunk
2009-08-13 11:06:34 -05:00
Drahy eaf8c93f7a * Fixed some iport errors from previous revision
* Added more INSERTs for faster import

--HG--
branch : trunk
2009-08-13 17:58:33 +02:00
Drahy fc9a4b32c4 * Redone world_script_texts added/fixed some texts + cleanup
* Please reimport world_script_texts.sql from FULL folder

--HG--
branch : trunk
2009-08-13 17:32:34 +02:00
megamage 656cb8a318 *Remove some incorrect use of removefromworld in scripts.
--HG--
branch : trunk
2009-08-13 10:21:57 -05:00
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
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
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 <[email protected]>

--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 <[email protected]>

--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 <[email protected]>

--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 <[email protected]>

--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
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
megamage da9de7135d *Fix a crash caused by ConvertCorpseForPlayer
--HG--
branch : trunk
2009-08-12 07:03:23 -05:00
maximius 7a548ff9d5 *Add some missing scripts
--HG--
branch : trunk
2009-08-11 22:57:40 -07:00
maximius ab0049fd33 *Merge
--HG--
branch : trunk
2009-08-11 22:42:41 -07:00
maximius 941fd64a24 *Minor tweaks to Razorscale script, disabled some malfunctioning movement code.
--HG--
branch : trunk
2009-08-11 22:42:07 -07:00
megamage f0c8efea55 *Fix the equip visual of quest endless hunger.
--HG--
branch : trunk
2009-08-11 22:20:34 -05:00
megamage 1ff5e51ddc *Fix the bug that npc in quest endless hunger assist each other.
--HG--
branch : trunk
2009-08-11 21:40:18 -05:00
Anubisss 08121cc271 *Remove a not needed log. :)
--HG--
branch : trunk
2009-08-12 02:32:13 +02:00
Anubisss 3ea9d899db *Implement achievement Timely Death.
--HG--
branch : trunk
2009-08-12 02:30:27 +02:00
Kudlaty 6eeaea276c Fix quest Death Challange
--HG--
branch : trunk
2009-08-12 02:07:52 +02:00
megamage 978242da3f *Try to fix a crash caused by single target auras. Thanks to QAston.
--HG--
branch : trunk
2009-08-11 18:26:04 -05:00
megamage 3078bf6fd0 *Fix a crash caused by setmap.
--HG--
branch : trunk
2009-08-11 18:23:54 -05:00
megamage db0558a66f *Fix compile in debug mode.
--HG--
branch : trunk
2009-08-11 17:50:02 -05:00
megamage 892bd40576 *Fix compile in *nix.
--HG--
branch : trunk
2009-08-11 17:29:56 -05:00
megamage 36302e1d24 *Fix ulduar script sqls. By Epsik
--HG--
branch : trunk
2009-08-11 16:49:07 -05:00
megamage 0f18e49052 *Add some asserts back.
--HG--
branch : trunk
2009-08-11 16:39:35 -05:00
megamage 962b88a381 *ResetMap for worldobjects when map is deleted.
--HG--
branch : trunk
2009-08-11 16:33:33 -05:00
megamage 9403ff03e7 *Only use m_isWorldObject to check if an object is in grid or world.
--HG--
branch : trunk
2009-08-11 16:14:45 -05:00
megamage 4267816fca *A temp fix of the crashes caused by corpses.
--HG--
branch : trunk
2009-08-11 15:40:43 -05:00
maximius 98a19f2125 *Linked Ulduar bosses with their scripts
*Wailing Caverns updates, by Oculus

--HG--
branch : trunk
2009-08-11 12:20:26 -07:00
megamage 177f78be1a *Correctly check ispositive for spells.
--HG--
branch : trunk
2009-08-11 13:11:16 -05:00
QAston e2e70b936b *Cleanups and obsolete spell handlers remove.
--HG--
branch : trunk
2009-08-11 19:57:27 +02:00
megamage 08d4aac161 *Consider all non-existing spells as negative. This fixes the broken Forbearance.
--HG--
branch : trunk
2009-08-11 11:32:32 -05:00
megamage d4165ac36e *Use unified function in loadhelper.
--HG--
branch : trunk
2009-08-11 11:11:22 -05:00
megamage a51cc015fa *Fix anothe crash bug caused by SetMap
--HG--
branch : trunk
2009-08-11 11:04:08 -05:00
megamage 3fa3c8b098 *Add function Unit::OutDebugInfo for debug.
--HG--
branch : trunk
2009-08-11 10:53:29 -05:00
megamage a944a0ea4b *Fix a crash when go is removed but m_ObjectSlot is not cleared.
--HG--
branch : trunk
2009-08-11 10:14:46 -05:00
megamage e3d00708a9 *Fix a crash since the last rev.
--HG--
branch : trunk
2009-08-11 10:01:39 -05:00
megamage 6cb0466eea *Assert !IsInWorld() in set map
--HG--
branch : trunk
2009-08-10 23:48:20 -05:00
megamage d78c9b3925 *Assert !IsInWorld() in reset map
--HG--
branch : trunk
2009-08-10 23:47:47 -05:00
megamage c8ed3cf1e9 *Some update of opvp (no real change)
--HG--
branch : trunk
2009-08-10 23:38:51 -05:00
megamage 31374835f6 *Cleanup about deleting player.
--HG--
branch : trunk
2009-08-10 23:32:20 -05:00
megamage 4ecbefabfa *Fix a crash when player gets teleported during log out.
--HG--
branch : trunk
2009-08-10 23:28:50 -05:00
Anubisss c1c8333642 *Fix prison Containment Spheres in Keristrasza.
--HG--
branch : trunk
2009-08-11 04:57:09 +02:00
Drahy 1beff219b8 * Cleanup in Fulls
--HG--
branch : trunk
2009-08-11 02:02:45 +02:00
maximius e546665e67 *Missed in last commit >_<
--HG--
branch : trunk
2009-08-10 16:37:09 -07:00
maximius 8fd6714236 *Fix typo in 4872_world_scripts.sql, thanks Lorac
--HG--
branch : trunk
2009-08-10 16:36:03 -07:00
maximius cba36e5c33 *More cleanup
--HG--
branch : trunk
2009-08-10 16:26:27 -07:00
maximius e4e8af2873 *ScriptMgr cleanup
--HG--
branch : trunk
2009-08-10 16:13:57 -07:00
maximius 6780cefb7d *Merge
--HG--
branch : trunk
2009-08-10 16:12:23 -07:00
maximius 047146ce0a *Ulduar script updates, thanks Nemesis
*Minor Vault of Archavon cleanup

--HG--
branch : trunk
2009-08-10 16:11:44 -07:00
Kudlaty 5a2dbd43db merge
--HG--
branch : trunk
2009-08-11 00:43:56 +02:00
Kudlaty 5d23ff7703 Merge [SD2]
r1179 Initialize variables used for EscortAI. Simplify some parts of code and also remove obsolete code for reconnecting to path.
r1180 Added script for npc 19679, not allow vendor if not have friendly rep or better.
r1181 Updated ScriptDev2 to MaNGOS 0.12 patch for SD2 version 1180 and mangos-0.12 7680 - skip
r1182 Cleanup instance related definitions for BT and apply code style - skip
r1183 Provide updated patch for Mangos (8095) and restore option to use git am. Update How To Install.txt accordingly and clarify why/when patch is needed also for Windows. - skip
r1184 Added support for quest 11142. Database support for spell 42316 needed.
r1185 Fix typo from 1182 and set eol-style + add missing to makefile

--HG--
branch : trunk
2009-08-11 00:43:06 +02:00
Anubisss d303603a86 *Fix a typo.
--HG--
branch : trunk
2009-08-11 00:37:26 +02:00
Rat 916bf8dbda *fix achievement 630 (Wailing Caverns)
--HG--
branch : trunk
2009-08-10 23:48:22 +02:00
Kudlaty 14527965dc merge
--HG--
branch : trunk
2009-08-10 23:25:41 +02:00
Kudlaty 1594f0381f Merge [SD2]
r1172 Replace some DealDamage() with ForcedDespawn()
r1173 Added a few more texts for quest 12733
r1174 Allow escortAI to continue run for as long as at least one member of party is in range (in case original player who start escort is in party).
r1175 Correct gossip text, wrong in rev 1173.
r1176 Correcting a bug for script related to quest 11129. Also use explicit boolean as check if still moving to location.
r1177 Adjusting tempsummon time for Opera event bosses and also despawn if creatures evade.
r1178 Remove not needed code (already called from escortAI::UpdateAI)

--HG--
branch : trunk
2009-08-10 23:24:40 +02:00
maximius c45488502f *Fix ordering
--HG--
branch : trunk
2009-08-10 14:20:57 -07:00
maximius f2a24c215c *Halls of Lightning update, Loken script from SD2 (thanks manuel)
--HG--
branch : trunk
2009-08-10 14:14:58 -07:00
megamage ce7b0907b8 *Fix a typo. By mike753
--HG--
branch : trunk
2009-08-10 15:53:27 -05:00