Commit Graph
1262 Commits
Author SHA1 Message Date
Kudlaty 5b42daa7bf Merge [SD2]
r1291 Move one misplaced script in yesterday commits.
r1292 Make own folder for tool, not needed for general work of SD2. - skip
r1293 Add script loader to simplify maintenance of scripts. The scripts must now be added to system/ScriptLoader.cpp instead of old way directly in ScriptMgr.

--HG--
branch : trunk
2009-08-16 01:45:49 +02:00
Kudlaty 6337c3adfb Merge [SD2]
r1288 Update include guards with better naming.
r1289 Fix typo in makefile.am - skip
r1290 Move AI remaining in misc folders to own folder base.
      Rename file to same as others for consistency and update includes accordingly.

--HG--
branch : trunk
2009-08-16 00:53:16 +02:00
Kudlaty e00175d23b Merge [SD2]
r1287 Move all non-instance scripts that are not related to any special continent to new world folder.
sorry about mistake in last sd2 merge. there should be:
r1286 Restructure file layout and move all non-instance source files to a logical continental single folder.

--HG--
branch : trunk
2009-08-16 00:10:26 +02:00
megamage 3269f47b5b *Update Emalon the Storm Watcher script. By riddick
--HG--
branch : trunk
2009-08-15 14:36:15 -05:00
megamage 43d35de4ff *Fix the bug that summoner cannot attack summoned creatures. This bug was introduced in 4481. Note the difference between "summoner" and "owner".
*Valkyr script updated.

--HG--
branch : trunk
2009-08-14 22:25:12 -05:00
megamage 026659565d *Some cleanup of script vcproj (according to SD2)
--HG--
branch : trunk
2009-08-14 21:26:14 -05:00
Kudlaty de8eb15699 Fix compile under windows. Thx for test Sundark
--HG--
branch : trunk
2009-08-15 04:02:48 +02:00
Nevan 0515533fcd *Fix Compile Error "../../npc/npc_escortAI.h"
--HG--
branch : trunk
2009-08-15 03:11:22 +02:00
Kudlaty a30cc63d27 Merge [SD2]
r1287 Move all non-instance scripts that are not related to any special continent to new world folder.
Windows users pls wait until vcproj will be fixed

--HG--
branch : trunk
2009-08-15 02:34:43 +02:00
megamage a65bb438a8 *Skarvald and Dalronn - Utgarde Keep: To make ghost versions not attackable. By tlexii
--HG--
branch : trunk
2009-08-14 19:27:53 -05:00
megamage cbcaba2e31 *Fix a typo in script [Quest] - Escape from Umbrafen By bigjohnson4
--HG--
branch : trunk
2009-08-14 18:38:03 -05:00
megamage c40be3e50a *Script of Netherspite. By Iskander
--HG--
branch : trunk
2009-08-14 18:34:16 -05:00
megamage 1b056afaab *Fix broken script.vcproj files.
--HG--
branch : trunk
2009-08-14 17:56:25 -05:00
Kudlaty 68c015af44 Merge [SD2]
r1284 Apply SD2 code style to all uint32 arguments in gossip related functions.
r1285 Replace all remains of _GO with proper pointer style.
Aslo some other code style.
Fix typo in world_scripts_full.sql. thx Sundark

--HG--
branch : trunk
2009-08-15 00:32:04 +02:00
Kudlaty f37885c086 Merge [SD2]
r1281 Added support for quest 12247. Patch by Azuritus
r1282 Added support for quest 11708. Patch by Azuritus.
      Additional cleanup and code style applied.
r1283 Add support for quest 12807. Patch by Azuritus

--HG--
branch : trunk
2009-08-14 21:58:29 +02:00
Kudlaty 5ebba6e2fe Merge [SD2]
r1272 Rough cleanup of hyjal-related scripts. Mainly applied SD2 code style, but also minor improvement of code and removal of not needed functions. - skip
r1273 Move code and use JustSummoned() instead of own system in hyjalAI - skip
r1274 Simplify way to determine where to spawn creature and remove already known base area passed in function. Also rename arrays. - skip
r1275 Provide updated .patch file after changes in Mangos rev 8255 - skip
r1277 Remove adding threat for summoned waves in hyjal and instead move to point when summoned. Also add simple handler to attempt move summoned closer to base bosses when not in combat. - skip
r1278 Replace world state functions in misc scripts with new ScriptedInstance function.
r1279 Simplify spawning of correct wave in hyjal. Remove no longer needed arguments in related function.
      Also restore wave timer reset in case all mobs in wave are dead before master timer end. - skip
r1280 Added basic support for quest 1324. Patch by jotapdiez
      Also adding additional data for further development of event.

--HG--
branch : trunk
2009-08-14 21:29:28 +02:00
Kudlaty 686cd6eeff Merge [SD2]
r1268 Check if faction pointer are valid before use. Patch by balrok
r1269 Clean up one source file and apply code style. Patch by jotapdiez
r1270 Fix code causing crash after log in, part revert rev 1267
r1271 Revert previous commit, and instead fix typo :) Patch by Apoc

--HG--
branch : trunk
2009-08-14 20:12:58 +02:00
Kudlaty 4252c4cef0 Merge [SD2]
r1266 Added support for quest 4966
r1267 Remove obsolete ScriptedAI functions, no longer used. Clean up code. Patch by DasBlub

--HG--
branch : trunk
2009-08-14 19:45:06 +02:00
Kudlaty 485aab1186 Merge [SD2]
r1261 Add GO script to complete lyceum event in BRD. Patch by Turok
      Some minor cleanup.
r1262 Apply SD2 code style to example scripts. Patch by DasBlub
r1263 Remove AI for some of the npc's in tomb of seven event (BRD). Note that ACID is required for event to work properly (set instance data). Patch by Turok
r1264 Fix typo in filename in previous commit.
r1265 Added support for quest 2742

--HG--
branch : trunk
2009-08-14 17:14:08 +02:00
Kudlaty 8bbb1d1c95 Apply some code style
--HG--
branch : trunk
2009-08-14 16:08:53 +02:00
Kudlaty 65ba3044dc merge
--HG--
branch : trunk
2009-08-14 15:59:01 +02:00
Kudlaty 75faad4b93 Merge [SD2]
r1251 Add waypoints for Hellmaw
r1252 Add missing SQL to *_full for script added in rev 1243
r1253 Increment count value only for alive creature in SL instance script. Some minor cleanup.
r1254 Fix typo, and not set friendly creature in combat with zone. Also add comments and re-order code for readability. Patch by astriconX - skip
r1255 Handle akama channelers in different way, fill list of guids only when needed for event. - skip
r1256 Clean up akama script and apply sd2 code style. - skip
r1257 Correct 2 waypoints and apply sd2 code style to related script.
r1258 Add basic support for quest 1560
r1259 Simplify way to summon druid creatures. Patch by Turok
r1260 Clean up two more world bosses, apply SD2 code style and simplify code. Add missing texts. Patch by Turok.

--HG--
branch : trunk
2009-08-14 15:58:37 +02:00
QAston a60600b717 *Script for Ebon gargoyle - original patch by thenecromancer.
--HG--
branch : trunk
2009-08-14 15:30:47 +02:00
Rat 759721bb5f *added script for quest: Escaping the Tomb (10887) original patch by: Naturamen
*fix world_script_waypoints.sql format

--HG--
branch : trunk
2009-08-14 14:38:44 +02:00
megamage e3ec6f563a *Use the correct tc function in last rev.
--HG--
branch : trunk
2009-08-14 00:33:06 -05:00
maximius f5863c59ab *Fix build, minor cleanup
--HG--
branch : trunk
2009-08-13 21:44:38 -07:00
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
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
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
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 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 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
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
megamage 11ceeefbea *Some update of script "death's challenge"
--HG--
branch : trunk
2009-08-13 00:21:10 -05: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 32e960d5bc *Fix build.
--HG--
branch : trunk
2009-08-12 21:14:35 -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
megamage e90686046e *Cleanup of scripts.
--HG--
branch : trunk
2009-08-12 18:58:21 -05:00