Commit Graph
168 Commits
Author SHA1 Message Date
Trazom62 eccf5bf547 Refactor Creature::SelectNearestTarget(float dist)
This function is used in many scripts to find the nearest enemy within the given distance.
However, it had an implicit limit to the ATTACK_DISTANCE. so in many case the "dist" was in fact just ignored.
In other case, the ATTACK_DISTANCE is required. So 2 functions are necessary to avoid ambiguities.

The refactoring is the split of the function in 2: SelectNearestTarget and SelectNearestTargetInAttackDistance.

--HG--
branch : trunk
2010-04-25 12:59:27 +02:00
Spp a12c0aef85 Fix compile ¬¬
+ Code Style (for, if, while)

--HG--
branch : trunk
2010-04-24 17:48:52 +02:00
Spp 450c6af43b Code Style: Remove trailing spaces and tab to spaces
--HG--
branch : trunk
2010-04-19 17:13:20 +02:00
Spp be01821050 More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
2010-04-19 17:03:10 +02:00
Spp 41817b259b Grizzly Hills: Fix phase error
--HG--
branch : trunk
2010-04-19 16:44:35 +02:00
Spp d2bd9dc1f5 Naxxramas: Sapphiron: Fix phase errors
--HG--
branch : trunk
2010-04-19 16:44:11 +02:00
Spp 67b09b024a Ulduar: Boss Algalon: Respawn time was negative
--HG--
branch : trunk
2010-04-19 16:42:48 +02:00
Spp 20f644e283 Utgarde Pinnacle: boss_ymiron: Fix say (wrong types)
--HG--
branch : trunk
2010-04-19 16:40:54 +02:00
Spp fdb8e15b99 Utgarde Pinnacle: Fix reset timers in mob_frenzied_worgenAI
--HG--
branch : trunk
2010-04-19 10:59:04 +02:00
Spp 74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
_manuel_ f928c04734 Improvements in npc_warmage_violetstandAI
--HG--
branch : trunk
2010-04-18 10:56:12 -03:00
[email protected]> 1ba710a7bd Add Visual chains spell for FJOLA LIGHTBANE and EYDIS DARKBANE
--HG--
branch : trunk
2010-04-17 20:30:04 -02:30
Spp 08785d63ab Fix bad use of worldstates table in last commit
--HG--
branch : trunk
2010-04-15 10:18:38 +02:00
Rat 6bcb297de4 *code cleanup
*totally destroyed m_creature, use "me" for future coding

--HG--
branch : trunk
2010-04-14 23:07:41 +02:00
Trazom62 4d40a20803 Fix VH : add 3 missing portals. Thanks spgm.
Fixes issue #798.

--HG--
branch : trunk
2010-04-12 15:13:04 +02:00
Tartalo e2ed15655b Nexus: Add missing copyright note
--HG--
branch : trunk
2010-04-11 22:30:51 +02:00
Spp 65c3e979e2 Tab to Spaces and remove of trailing spaces
--HG--
branch : trunk
2010-04-11 20:20:38 +02:00
Tartalo d5c1138a53 Nexus: Hack for servers that allow two side groups to be able to kill the
faction-dependent npcs.

--HG--
branch : trunk
2010-04-11 17:59:59 +02:00
Trazom62 73345c9e3c Fix achievement Three Faced.
--HG--
branch : trunk
2010-04-11 15:43:53 +02:00
Spp ed72b887a0 Tab to spaces
--HG--
branch : trunk
2010-04-11 07:24:25 +02:00
Spp 0e55db3117 Azjol Nerub: Anub'arak and Krikthir script texts
Patch by terrorbringer
Closes issue 1570

--HG--
branch : trunk
2010-04-10 19:03:35 +02:00
Trazom62 9d3c7c4ab0 Fix Crash in FoS.
Fixes issue #1566.

+ add support of minimum distance criteria in SelectTarget.

--HG--
branch : trunk
2010-04-10 13:52:33 +02:00
Rat 4a8bf5900d *modified spelldifficulty handler to work with all spell casts for creatures that are in instances thanks to Shauren for help
*modified most of the scripts to use normal_mode spell for casting (code was autogenerated, post errors if any)
*added sql for all modded spells (autogenerated..)

--HG--
branch : trunk
2010-04-10 10:20:01 +02:00
Rat 4bd2379c6f *add example difficulty spells for magus telestra
--HG--
branch : trunk
2010-04-09 10:57:42 +02:00
Trazom62 d93e4079f7 Script Instance Forge of Souls.
Script based on proposal of Synric on trinitycore forum (submitted by Skarabex on GC).
Fix EventMap::DelayEvents
Fixes issue #1310.

--HG--
branch : trunk
2010-04-08 21:03:26 +02:00
Spp 4635fbc020 Code Style (game + scripts only):
"!=" --> " != " (when needed)
"  !=" --> " !="
"!=  " --> "!= "

--HG--
branch : trunk
2010-04-08 08:20:08 +02:00
Spp 46f0674e23 Code Style (game + scripts only):
">=" --> " >= " (when needed)
"  >=" --> " >="
">=  " --> ">= "
"<=" --> " <= " (when needed)
"  <=" --> " <="
"<=  " --> "<= "
" ==" --> " =="
"==  " --> "== "

--HG--
branch : trunk
2010-04-07 23:56:35 +02:00
Spp 2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp 49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp 2e127f7a30 Code style (game + scripts only):
"while(" --> "while ("

--HG--
branch : trunk
2010-04-07 19:13:19 +02:00
Spp 182e9a20b1 Code style (game + scripts only):
"for(" --> "for ("

--HG--
branch : trunk
2010-04-07 19:12:44 +02:00
Spp b27ce42704 Code Style: Remove trailing spaces
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
Spp f490ad5ac2 Code Style: tab to spaces
--HG--
branch : trunk
2010-04-07 17:24:07 +02:00
Anubisss fa3aa746ac Remove some pointers and use GUIDs in borean_tundra.
--HG--
branch : trunk
2010-04-07 13:17:24 +02:00
Tartalo 599ffd8bb9 Boran Tundra, Quest 11648, The Art of Persuassion: Fix pCaster pointer, by microbius51
Cleanup the script

--HG--
branch : trunk
2010-04-07 10:33:58 +02:00
Tartalo 0ae812b7bd Gundrak, Drakkari Colossus: Fix logic, by [email protected]
Fixes issue #1313.

--HG--
branch : trunk
2010-04-07 10:18:54 +02:00
Tartalo b58dc98b2b Utgarde Keep, Utgarde Pinnacle: Cleanup Svala Sorrowgrave
Better handling of sacrifice target storing his GUID on ScriptedInstance to
share it between npcs.

--HG--
branch : trunk
2010-04-07 01:04:38 +02:00
Tartalo 668dd91368 Ulduar, Halls of Lightning: Ionar disperses only once.
3.3.2 Blizzlike change

--HG--
branch : trunk
2010-04-07 00:21:31 +02:00
Tartalo 7c389f4c39 Ulduar, Halls of Lightning: Cleanup Ionar's script
--HG--
branch : trunk
2010-04-07 00:18:53 +02:00
[email protected]> 971d617e9e Add Spells to Coldarra Warmages to target Tansisus Shield Bunnys same as Violet Stand.
Also required: http://trinitydatabase.org/index.php?/topic/15320-fix-for-transis-shield-bunnys-coldarra/

--HG--
branch : trunk
2010-04-05 22:09:36 -02:30
[email protected]> 9629a340c6 Fix script to have less calls
--HG--
branch : trunk
2010-04-05 11:34:30 -02:30
silverice a795a1110c probably fix crash with boss_paletressAI::MovementInform
to our script writers: please, turn on the brain

--HG--
branch : trunk
2010-04-05 13:50:13 +03:00
[email protected]> 85d3dc8b71 Valiance keep Cannoneer script to activate cannon.
--HG--
branch : trunk
2010-04-03 14:01:00 -02:30
Trazom62 bcfd44f978 Fix Script HoL/Ionar.
Fixes issue #1132.

--HG--
branch : trunk
2010-04-03 16:51:56 +02:00
Trazom62 6b6ee726dd Script Instance Pit of Saron.
First basic script based on proposal of Synric on trinitycore forum (submitted by Skarabex on GC).
Still WiP with lots of work. In particular, the faction based npc/mob will have to be fixed when they will be spawned in TDB.
Fixes issue #1308.

--HG--
branch : trunk
2010-04-03 09:04:02 +02:00
_manuel_ 21a5f99201 Corrected gossip script npc_hira_snowdawn. Thanks to wowgargamel.
--HG--
branch : trunk
2010-04-02 14:46:11 -03:00
Anubisss 08b4748e62 Use GUIDs instead of "global" pointers in zone scripts.
This commit is like that: 7714 / rce505237e4aa

And use const_iterators where it is possible.

--HG--
branch : trunk
2010-04-02 15:41:37 +02:00
Anubisss f78b766705 Use ToTempSummon() in a case instead of a C style cast.
Use correct Unit::GetCreature() instead of Unit::GetUnit() with casting the object to Creature pointer.
Remove some usless casts.
Fix a possible crash in pyrewood_ambushAI.

TODO: Remove ugly cast macros(like CAST_PLR(), CAST_CRE()) from scripts and use the correct ToX() functions(like ToPlayer(), ToCreature()).

--HG--
branch : trunk
2010-04-01 19:09:56 +02:00
_manuel_ 9f544d2f93 Implemented script for vendor/trainer Hira Snowdawn.
--HG--
branch : trunk
2010-04-01 12:58:02 -03:00