Commit Graph

4475 Commits

Author SHA1 Message Date
Kudlaty
5b87f1fcdc Merge [SD2]
r1245 Update escortAI MAX_PLAYER_DISTANCE from 50 to 66 yards - skip
r1246 Not call JustDied() AI function when escortAI max range is over limit(not regular death). Some additional cleanup to apply code style.
r1247 Implement automated FailQuest in escortAI (if npc has specific death events, call npc_escortAI::JustDied()). Clean up scripts related to it.
      Restore original faction at escortAI's JustRespawned() in case faction changed (normal case for escorts). Remove in scripts where defined.
r1248 Add small delay before move to first point in escortAI.
r1249 Add support for quest 898
r1250 Add support for quest 10451. Original patch by Lightguard

--HG--
branch : trunk
2009-08-14 05:32:39 +02:00
megamage
853f3a5ddd *Fix a crash bug caused by corpse.
--HG--
branch : trunk
2009-08-13 21:36:26 -05:00
Kudlaty
93e420ed29 Merge [SD2]
r1241 Add text to ysondre and also replace manual summon with spell. Clean up script. Patch by Turok
r1242 Add support for quest 4770
r1243 Add support for quest 4904
r1244 Update most scripts calling escortAI's Start() from outside creature AI with more safe method.

--HG--
branch : trunk
2009-08-14 04:21:52 +02:00
maximius
9ce4f8a768 *I highly doubt bool Ism_auiEncounterInProgress() is valid..
--HG--
branch : trunk
2009-08-13 19:16:57 -07:00
maximius
184c8ac829 *Cleanup
--HG--
branch : trunk
2009-08-13 18:20:40 -07:00
maximius
02e759a879 *Added directions to Inscription trainers to all guards, based on Nafsih's patch
*Cleaned up Sethekk Halls

--HG--
branch : trunk
2009-08-13 18:16:55 -07:00
Kudlaty
ea5293da05 More SD2 code style. (Merge [SD2] 1237,1238,1239)
--HG--
branch : trunk
2009-08-14 02:50:40 +02:00
maximius
5d4ffbb90a *Fix Anzu multiple spawns, by Oculus
--HG--
branch : trunk
2009-08-13 17:05:15 -07:00
megamage
ad4267ce11 *Fix a typo which makes tenacity is casted on wrong team in wintergrasp. By iadus3
--HG--
branch : trunk
2009-08-13 18:44:22 -05:00
Kudlaty
764f4b1815 More SD2 code style
--HG--
branch : trunk
2009-08-14 00:39:07 +02:00
Kudlaty
ad4397b40d merge
--HG--
branch : trunk
2009-08-14 00:07:14 +02:00
megamage
c9ddf9258d *Do not assert !map for non-corpse worldobjects.
--HG--
branch : trunk
2009-08-13 17:02:17 -05:00
Kudlaty
f58781dbad Merge [SD2] Apply SD2 code style
--HG--
branch : trunk
2009-08-14 00:02:13 +02:00
megamage
deca044373 *Fix a typo that broken quest death's challenge
--HG--
branch : trunk
2009-08-13 16:15:22 -05:00
Kudlaty
8212baca88 Merge [SD2]
r1240 Update scripts, increment/decrement variables using operator before instead of after variable, mainly for code consistency. Original patch by Meldanor.

--HG--
branch : trunk
2009-08-13 22:27:55 +02:00
Kudlaty
598e23ff0d Merge [SD2]
r1236 Rewrite/simplify arlokk script (no real changes in features/abilities)

--HG--
branch : trunk
2009-08-13 22:11:15 +02:00
megamage
e0449b421c *Add some detailed error log in SCRIPT_COMMAND_CAST_SPELL so we can know what is causing spams
--HG--
branch : trunk
2009-08-13 14:39:01 -05:00
QAston
e2374e8bdb *Use m_caster as caster of triggered spell in EffectTriggerSpell handler.
*Correct stance check in handleShapeshiftBoosts - by Sarjuuk
*Minor cleanup in Unit.cpp.

--HG--
branch : trunk
2009-08-13 21:24:56 +02:00
megamage
25f81cdfcd *Fix some typos in spell_area which make some spells are not available to female char.
--HG--
branch : trunk
2009-08-13 13:40:30 -05:00
megamage
9cff946d8d *Add an assert in ~worldobject
--HG--
branch : trunk
2009-08-13 11:47:38 -05:00
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
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
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