Commit Graph

149 Commits

Author SHA1 Message Date
maximius
054aa05201 *Should fix some things with Rate.MoveSpeed, thanks megamage
--HG--
branch : trunk
2009-08-30 21:10:31 -07:00
maximius
31b5979fb6 *Move an output message in ScriptMgr to somewhere more useful, and more private :)
--HG--
branch : trunk
2009-08-30 20:34:47 -07:00
Kudlaty
81ee07fa2a Merge [SD2]
r1313 Implement new class SystemMgr for storage and management of script data.
      Move database load to new class and instead use functions in class to retrieve data from storage.

--HG--
branch : trunk
2009-08-16 19:38:18 +02:00
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
megamage
c40be3e50a *Script of Netherspite. By Iskander
--HG--
branch : trunk
2009-08-14 18:34:16 -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
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
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
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
maximius
98a19f2125 *Linked Ulduar bosses with their scripts
*Wailing Caverns updates, by Oculus

--HG--
branch : trunk
2009-08-11 12:20:26 -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
047146ce0a *Ulduar script updates, thanks Nemesis
*Minor Vault of Archavon cleanup

--HG--
branch : trunk
2009-08-10 16:11:44 -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
Rat
0795a9dbb2 *add script for Wailing Caverns, Disciple of Naralex event, thanks to Oculus
--HG--
branch : trunk
2009-08-10 15:37:16 +02:00
Kudlaty
7faff34ae5 Missing part of patch added in 4783
--HG--
branch : trunk
2009-08-10 04:04:28 +02:00
megamage
df9cf9c0fa *Some scripts of ulduar boss (far from finished)
--HG--
branch : trunk
2009-08-09 15:09:44 -05:00
maximius
fe3ba612d9 *Emalon the Stormwatcher fully scripted, by Necroo (boss needs to be spawned and ScriptName needs to be updated)
*Added config options: DurabilityLoss.OnDeath and DurabilityLoss.InPvP, optimized Rate.RepairCost

--HG--
branch : trunk
2009-08-07 12:12:42 -07:00
QAston
2e34af64cf *Allow ItemExpire events to be scripted.
*Add .debug itemexpire command
*Add script for Disgusting Jar and Mysterious Egg - original patch by Elron.

--HG--
branch : trunk
2009-08-04 01:44:14 +02:00
Kudlaty
0aa4879ecc Script for quest 12570. Author: manuel
--HG--
branch : trunk
2009-07-27 13:21:35 +02:00
Kudlaty
d62da4cc16 Merge [SD2]
r1106 Prevent abuse of item 44222. Apply some SD2 code style
r1107 Add health modification for phase and correct phase value for kael(TK)
r1108 Remove scripted function SetSheathState() and use mangos function instead. Fix one typo and apply sd2 code style for one script.
r1109 Remove old makefile* files not needed.
r1110 Some minor adjustments to sharkkis, add one spell and also add distance to MoveChase. Not kill boss' advisors on Reset when not needed.
r1111 Check pointers and avoid possible crash
r1112 Added script for friendly Kael in MgT (movement to orb-platform, transform and gossip)
r1113 Correct misunderstanding added in 1112, and use timer for transformation instead (creature are expected to spawn/fly down once player use orb).

--HG--
branch : trunk
2009-07-25 22:16:21 +02:00
Kudlaty
4f7e94ace2 Merge [SD2]
r1095 Correct one spellId in hyjal - skip
r1096 Remove more grid search code from scripts and use functions.
r1097 Remove obsolete functions redefined in 1094
r1098 Added text for bosses in map 615
r1099 Added instance script for map 615

--HG--
branch : trunk
2009-07-24 06:16:31 +02:00
Kudlaty
81e6f06680 Add script for quest 12861. Author: Drethek.
--HG--
branch : trunk
2009-07-23 19:30:25 +02:00
Rat
ac91127d78 Backed out changeset: ad3793582d28
--HG--
branch : trunk
2009-07-19 23:19:52 +02:00
Rat
e1c44483f5 *added script for Underbog Colossus (SSC)
--HG--
branch : trunk
2009-07-19 23:08:38 +02:00
Kudlaty
827d296372 Merge [SD2]
r1066 Added a few more encounters to SetData ZA instance - Skip
r1067 Added end boss' in ZA adds with random selection and their abilities. - Skip
r1068 Added support for quest 10994 (basic parts)
r1069 Added instance script for BFD
r1070 Remove enum type not related to boss/encounter.
r1071 Fix misunderstanding committed in 1067. Spawn 1 of 2 possible adds, each from 4 different groups instead of 4 random of 8 possible. - Skip
r1072 Save instance data for TYPE_EVENT_RUN in ZA when expected and not allow it to reset on Load(). Remove useless code for goFlags. - Skip
r1073 Added struct and enum for misc npc/go entries used in naxx instance - Skip
r1074 Restore Windows build after changes in Mangos rev 7810 - Skip
r1075 Added 6 new taxi paths (wyrmrest temple) - Skip, already implemented
r1076 Correcting berserk spell for najentus, also make sure spell are actually casted.
r1077 Update sources and use enum GossipOptionIcon instead of magic number.
r1078 Provide new .diff file to use with Mangos 7812+ - Skip
r1079 Update one old boss script, clean code.

--HG--
branch : trunk
2009-06-19 05:17:25 +02:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
Kudlaty
6f1a4247a4 Merge [SD2]
r1010 Removed script for general marcus (can be done with eventAI)
r1011 Fix typos. Should not assign value. Expected equal-to operator.
r1012 Added support for quest 5561
r1013 Remove redundant directory path, already in include path - Skip.
r1014 Remove old tables in SD2 database no longer used. Remove ScriptName for script 'mob_eventai' that does no longer exist - Skip
r1015 Added PostgreSQL database create structure - Skip

--HG--
branch : trunk
2009-06-15 03:31:11 +02:00
Anubisss
e80b7d3c30 *Merge SD2.
*r993: Added support for quest 2078
*r994: Added missing SQL update files in rev 993
*r995: Added support for quest 731
*r996: Use CombatStartPosition as return point for escortAI instead of script generated location. - Skip.
*r997: Added gossip to obtain scarlet illusion related to quest 5862/5944

--HG--
branch : trunk
2009-06-10 22:12:58 +02:00
megamage
deb9dd1543 *Update script of The Nexus 5er. By PSZ
*Thanks to onkelz28 for preparing the patch

--HG--
branch : trunk
2009-06-09 16:37:26 -05:00
megamage
ab5b273d3c *Some work on wintergrasp. Player can get ranks by killing other players and can build vehicles at workshop. Vehicles can be used to destroy buildings. Except these no other thing is done.
--HG--
branch : trunk
2009-05-22 10:29:48 -05:00
Anubisss
425bb9fb55 *Merge SD2.
*r978: Added few basic parts for ramparts instance script to be used in further development.
*r979: Added support for quest 9686. - Skip this patch. Its already scripted.
*r980: Added gossip to play movie cutscene after quest 12499/12500 rewarded.
*r981: Clean up some code and correcting icon for gossip items. - Just use enums.
*r982: Added support for quest 938 (consider it a test for similar quests)

--HG--
branch : trunk
2009-05-20 23:08:46 +02:00
Kudlaty
8305f6d3bc Merge & move taxi scripts into one file as npc_taxi
--HG--
branch : trunk
2009-05-20 07:13:19 +02:00
megamage
d8ce14c66a *Add script of Thaddius.
--HG--
branch : trunk
2009-05-19 16:06:52 -05:00
megamage
cbc375b895 *Fix a bug that event ai text is loaded twice.
--HG--
branch : trunk
2009-05-17 17:46:47 -05:00
megamage
1b52fa4206 Backed out changeset: 5201ecc6b309
--HG--
branch : trunk
2009-05-14 11:40:02 -05:00
QAston
42aa8efe47 Backed out changeset 1f92b07df94a
--HG--
branch : trunk
2009-05-14 06:32:35 +02:00
megamage
80c1901343 *Add script for Gothik. Please apply 3233_world_scripts_naxx.sql for new contents.
--HG--
branch : trunk
2009-05-13 10:59:00 -05:00
megamage
1fbc7377d1 *Do not show error for not assigned example scripts.
--HG--
branch : trunk
2009-05-12 11:16:26 -05:00
megamage
a3447b294d *Update Naxx scripts.
--HG--
branch : trunk
2009-05-06 00:08:19 -05:00
BroodWyrm
c00509eba4 *Add script for Utgard Keep - Forge Master (Forge Fire Event)
--HG--
branch : trunk
2009-05-04 20:13:22 +02:00
megamage
13e82f8b71 *Add placeholder for naxx instance script.
--HG--
branch : trunk
2009-05-01 13:28:26 -05:00
BroodWyrm
94e896ebd6 *Add scriptsupport for Quest 12848
--HG--
branch : trunk
2009-05-01 01:29:41 +02:00
megamage
ce68fc9c64 *Update some naxx boss scripts.
--HG--
branch : trunk
2009-04-29 00:15:18 -05:00
Chaz Brown
aba24628ba Fix TrinityScripts to use the correct config file when -c config_name.conf is used on the trinitycore commandline, thanks to gixxer_j for getting me to finally fix it, and for testing the patch. Be sure to do a full recompile, or you may get errors, this may even require a fresh pull from the repo for some.
--HG--
branch : trunk
2009-04-25 13:35:46 -04:00
Chaz Brown
f235fb6694 * merge
--HG--
branch : trunk
2009-04-24 03:10:13 -04:00
Chaz Brown
4767c62929 Backed out changeset c1aef8af04ef (rev 2895) until I (or someone else) can figure out how to do it correctly.
--HG--
branch : trunk
2009-04-24 03:09:41 -04:00
Chaz Brown
b14bb5b39a Change all SD2: to TSCR:
--HG--
branch : trunk
2009-04-24 00:51:09 -04:00
Chaz Brown
034a9be723 Modify TrinityScript to use main config file. (Fix problems when using -c on the command line)
--HG--
branch : trunk
2009-04-24 00:48:35 -04:00