Commit Graph
66 Commits
Author SHA1 Message Date
click a9c9ab0efa Core: Clean up script variables to make variables consistant/standardized, and some additional warning-removals:
+ Fix compilewarning in Unit.cpp
+ Remove/comment out unused parameters for some commandscripts/scripts (warnings)
+ Replace "plr" with "player" all over the scriptbase for consistency
2011-07-01 03:00:39 +02:00
Spp- 6fd41ae50e Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts 2011-06-30 14:24:56 +02:00
Shauren 9a5f8dc844 Scripts/The Nexus: Fixed compile warning 2011-06-25 23:40:36 +02:00
Lopin cb40eb556a Scripts/Nexus: Fixed logic in Intense Cold achievement. Thanks joschiwald for notice 2011-06-25 19:14:20 +02:00
Lopin 0cf40b897c Scripts/Achievements: Fixed a crash in Heigan's achievement script & more possible crashes & small improvements to handling datas for achievements 2011-06-25 19:11:56 +02:00
Lopin 6fd2bc4f28 Scripts/Nexus: Properly fixed achievement Intense Cold 2011-06-25 16:40:10 +02:00
Lopin 2e1542d738 Scripts/Nexus: Properly fixed achievement Split Personality 2011-06-24 14:41:42 +02:00
Lopin 0263b3d434 Scripts/Nexus: Fixed reseting of achievement Chaos Theory 2011-06-23 15:46:49 +02:00
Lopin 550635ac85 Scripts/Nexus: Properly fixed achievement Chaos Theory and small cleanup 2011-06-23 11:56:05 +02:00
click 158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
QAston 677cbbb93a Scripts: Fix some crashes occuring due to unsafe use of AuraScript::GetCaster() method.
There's "returns unit which casted the aura or NULL if not avalible" written in description of the method, but who cares...
2011-06-11 12:42:01 +02:00
Manuel 507dcdf563 Scripts/Nexus: Remove a few warnings from the Malygos script
Signed-off-by: click <clickvd@gonnamakeyou.com>
2011-05-31 06:26:37 +02:00
QAston 79aa5233d7 Scripts/AuraScripts: Use AfterEffectApply and AfterEffectRemove hooks in scripts, where they fit better than On* hooks. 2011-05-25 19:12:41 +02:00
Shauren 24a8cc24da Core/Achievements: Implemented ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS 2011-05-14 12:26:49 +02:00
Az@zel 52bc1e5fd3 Core/Misc: more warning fixes (some of them were real logical flaws - comparison of unrelated types) (Thanks to Tassader for pointing out that one line was completely unnecessary) 2011-05-11 12:32:54 +06:00
Az@zel f73c6c40bb Core/Misc: fix compiler warnings 2011-05-11 11:12:26 +06:00
click 2717129d0d Core: Clean up whitespace and tabs 2011-05-09 10:59:54 +02:00
Shauren 551889c42f Core: More warning fixes 2011-05-07 20:09:45 +02:00
Shauren 7905200eba Core: Warning fixes 2011-05-07 19:08:50 +02:00
johnholiver a1c708d62c Scripts/Oculus: Fix Eregos loot. 2011-05-05 18:18:02 -03:00
leak 1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Shauren d73ffc9e81 Core/Vehicles:
* Added generic solution for vehicle accessories not relying on AI calls
* Only accessories marked as minion will be respawned when the vehicle enters evade mode
* Notify the summoner's AI when vehicle accessory fails to install and despawns
2011-04-22 21:59:37 +02:00
Shauren 3fcb49c685 Core/Scripts: Removed double calls to InstanceScript's Initialize methods 2011-04-03 21:24:22 +02:00
Manuel 21a2c56af3 Scripts/Eye of Eternity: Implemented script for Malygos encounter, please report any issue you find.
Thanks for the help to Machiavelli and Shauren.

Signed-off-by: Manuel <manue.l@live.com.ar>
2011-03-26 21:36:06 -03:00
Shauren 2f79b0f266 Core: Removed all double (and more) empty lines 2011-03-21 10:52:14 +01:00
Shauren c2c40a4750 Scripts: Removed duplicate target selection function (SelectUnit), there is only SelectTarget now 2011-03-09 21:32:04 +01:00
Shauren 9710c41a40 More warning fixes 2011-03-08 19:11:02 +01:00
Shauren 4b4d3e7450 Core/Creatures: Implemented UNIT_FLAG_PASSIVE 2011-03-06 12:22:04 +01:00
Shauren c2b0bcbd6c Core/Instances: Implemented DungeonEncounter.dbc for creating completed encounters mask to use in packets
Core/Dungeon Finder: Implemented new way of giving random dungeon rewards, linked to DungeonEncounter.dbc
2011-02-03 22:20:40 +01:00
Manuel fad1acfbcf Scripts/Oculus: Fixed issues in scripts after recent changes in Oculus.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-30 15:22:36 -03:00
Manuel 187f34248d Scripts/Oculus: Implemented AI for Boss Ley-Guardian Eregos.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-26 16:57:59 -03:00
Manuel 140c0d8109 Scripts/Oculus: Make Urom's event state available for condition system.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-26 16:53:48 -03:00
leak 137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Manuel 20a970f96b Core/Scripts/Oculus: Fixed typo thanks to Shauren.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-24 20:13:34 -03:00
Manuel 177e3903e5 Core/Scripts/Oculus: Improved Arcane Beam ability of Azure Ring Captain (Varos Encounter)
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-24 18:57:32 -03:00
Manuel 70a45be159 Core/Scripts/Oculus: Improved Energize Core ability of Boss Varos. Thanks to Xanadu, Gyullo and Josh.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-24 18:57:11 -03:00
Manuel cd946a22de Core/Scripts/Oculus: Switched ScriptedAI to BossAI.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-24 18:56:45 -03:00
Manuel 0197c4e322 Core/Scripts/Oculus: Implemented worldstates related to Varos.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-24 18:56:26 -03:00
Manuel 76e4b6dda4 Core/Scripts/Oculus: Implemented AI for boss Varos Cloudstrider <Azure-Lord of the Blue Dragonflight>.
Signed-off-by: Manuel <manue.l@live.com.ar>
2011-01-20 12:37:41 -03:00
Machiavelli 957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
leak 6fe19b5a86 Core/Scripts: Split OnCreatureCreate() and OnGameObjectCreate() into two virtual functions each.
Note to scripters: be aware that you will need to hook into the Remove functions if you want to do stuff at GO/creature removal.
Closes issue 5011.

--HG--
branch : trunk
2010-12-05 18:04:10 +01:00
linencloth 8fae0c176d Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility

--HG--
branch : trunk
2010-11-16 01:13:04 +01:00
Shocker 63aa6e44fb Core/Scripts: Small, insignificant cleanups
--HG--
branch : trunk
2010-09-21 04:57:08 +03:00
Spp e252b8abe7 Core: Fix more warnings
--HG--
branch : trunk
2010-08-30 23:07:14 +02:00
Spp 405f312918 Core: Fix more warnings
--HG--
branch : trunk
2010-08-30 15:25:15 +02:00
Liberate f67441b863 Fixes gossip scripts or points of interests of npc's with a Scriptname assigned to them.
This fixes guards in Major cities.
Thanks to Aokromes for testing.
Thanks to click for converting all the scripts to work with this change.

--HG--
branch : trunk
2010-08-29 00:57:51 +02:00
azazel 5fa14f58dc Core/Cleanup:
* move repeating code into separate method for storing locale strings in ObjectMgr (copy/paste sucks, you know)
* fix 'signed/unsigned' warnings (at least in VS)
* fix some other warnings and cleanup relative code

--HG--
branch : trunk
2010-08-26 15:54:56 +06:00
azazel 341e6303ef Core:
* add helping methods for manipulating unit's health and use it where applicable
* fix some conversion warnings and cleanup code (formatting, CRLF, tabs to spaces)

--HG--
branch : trunk
2010-08-26 01:20:57 +06:00
silinoron 062f4267b5 Fix instance script for the Nexus.
Fixes issue #3572
Thanks seaofgreen@gmx.net

--HG--
branch : trunk
2010-08-23 11:23:22 -07:00
azazel 399e35f8f5 Core:
* fix "warning C4305: 'initializing' : truncation from 'double' to 'float'" warnings
* fix some other warnings here and there

--HG--
branch : trunk
2010-08-22 23:46:40 +06:00