HalestormXV Sentinos
Posts : 43 Join date : 2008-03-21
| Subject: [RELEASE] Medivh Sun Mar 23, 2008 9:39 am | |
| Here is the Medivh script I told you about a while ago. I am still working on it. Now this script will not work simply because I scripted bugs to cause error on load up into it. I am linking this to show you all an outline of what you can do. If you can decode the bugs out of it I give you props however still give credit where credit is due - Code:
-
/*-------------------------------------------------------------------------- --HALESTORM'S MEDIVH SCRIPT STILL UNDER CONSTRUCTION. IF USED GIVE PROPER CREDIT-- ----------------------------------------------------------------------------------
---------------------------------RANDOM FUNCTION---------------------------------- function Medivh_Fireball.1(pUnit, event) sTimer=math.random(1, 6)
if sTimer == 1 then pUnit:FullCastSpellOnTarget(40877, pUnit:GetRandomPlayer()) end
if sTimer == 2 then pUnit:FullCastSpellOnTarget(42502, pUnit:GetRandomPlayer()) end
if sTimer == 3 then pUnit:FullCastSpellOnTarget(38534, pUnit:GetRandomPlayer(0)) end
if sTimer == 4 then pUnit:FullCastSpellOnTarget(40877, pUnit:GetRandomPlayer(0)) pUnit:RegisterEvent("Medivh_Fireball1",timer,1) end
if sTimer == 5 then pUnit:FullCastSpellOnTarge(32337, pUnit:GetRandomPlayer(0)) end
if sTimer == 6 then, pUnit:FullCastSpellOnTarget(39252, pUnit:GetRandomPlayer(0)) end end ---------------------------------------------------------------------------------- --//////////////////////////////////////////////////////////////////////////////-- ---------------------------------------------------------------------------------- ---------------------------------MEDIVH VOLLEY------------------------------------ function Medivh_Volley(pUnit, event) vTimer=math.random(7, 9)
if vTimer == 7 then pUnit:FullCastSpellOnTarget(37109, pUnit: GetMainTank()) --Fireball Volley pUnit:PlaySoundToSet(10355) pUnit:SendChatMessage(12., 0., "And so it ends.") end
if vTimer == 8 then pUnit:FullCastSpellOnTarget(39340, pUnit: GetMainTank()) -Toxic Volley pUnit:PlaySoundToSet(10358) pUnit:SendChatMessage(12, 0, "Time for an alternative scenario.") end
if wTimer == 9 then pUnit:FullCastSpellOnTarget(28407, pUnit: GetMainTank()) --Shadow Volley pUnit:PlaySoundToSet(10359) pUnit:SendChatMessage(12, 0, "Once must not become to complacent.") end end ---------------------------------------------------------------------------------- --//////////////////////////////////////////////////////////////////////////////-- ---------------------------------------------------------------------------------- ---------------------------------MEDIVH GOES NUT--------------------------------- function Medivh_GoesNut(pUnit, event) if pUnit:GetHealthPct() < 90 then pUnit:RemoveEvents() pUnit:PlaySoundToSet(8928) pUnit:FullCastSpell(32964) pUnit:FullCastSpell(40952) pUnit:FullCastSpell(40952) pUnit:FullCastSpell(40952) pUnit:FullCastSpell(40868) pUnit:FullCastSpell(40868) pUnit:FullCastSpell(40868) pUnit:FullCastSpell(40868) pUnit:FullCastSpellOnTarget(38634, pUnit: GetRandomPlayer(0)) pUnit:FullCastSpellOnTarget(38634, pUnit: GetRandomPlayer(0)) pUnit:FullCastSpellOnTarget(38634, pUnit: GetRandomPlayer(0)) pUnit:FullCastSpell(29973) pUnit:PlaySoundToSet(8922) pUnit:RegisterEvent("Medivh_Volley",15001,0) pUnit:RegisterEvent("Medivh_GoesNuts",60000,0) pUnit:RegisterEvent("Medivh_Fireball1",3000,0) end --end ---------------------------------------------------------------------------------- --//////////////////////////////////////////////////////////////////////////////-- ----------------------------------------------------------------------------------
function Medivh_OnCombat(Unit, event) Unit:PlaySoundtToSet(10338) Unit:SendChatMessage(12,0,"Very well. Let the game begin!") Unit:RegisterEvent("Medivh,_Volley",15001,0) Unit:RegisterEvent("Medivh._GoesNuts",60000,0) Unit:RegisterEvent("Medivvh_Fireball1",3000,0) end
function Medivh_OnDie (Unit, event) Unit:PlaySoundToSet(10441) pUnit:SendChatMessage(12, 0, "No! Damn this feeble mortal coil!") end
RegisterUnitEvent(57, 1, "Medivh_OnCombat") RegisterUnitEvent(57, 3, "Medivh_OnDie")
---------------------------------------------------------------------------------- --HALESTORM'S MEDIVH SCRIPT STILL UNDER CONSTRUCTION. IF USED GIVE PROPER CREDIT-- ----------------------------------------------------------------------------/* | |
|