[Help] Lua Failure menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Lua Failure

    Lol, sorry I been asking so much shit lately xD

    But my first boss script isn't working. I works down to the 50%, as in, everything before that works, but everthing after doesn't. No yell, no sound, no change in skills, nothing. If anyone could take a look at this, and maybe find the problem, I would greatly appreciate it.


    Code:
    function VarousCloudstrider_OnCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13649)
    	pUnit:SendChatMessage(14, 0, "There will be no mercy!")
    	pUnit:RegisterEvent("VarousCloudstrider_ThunderClap", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_AmplifyMagic", 6000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_EnergizeCores", 16000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase2",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase3",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
    end
    
    function VarousCloudstrider_ThunderClap(pUnit, Event) 
    	pUnit:CastSpell(58975) 
    end
    
    function VarousCloudstrider_AmplifyMagic(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(59371, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_EnergizeCores(pUnit, Event) 
    	pUnit:CastSpell(50785, pUnit:GetRandomPlayer(0)) 
    end
    
    function AzureRingCaptian_Spawn(pUnit, Event) 
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 30000) 
    end
    
    function VarousCloudstrider_BroodPower(pUnit, Event) 
    	pUnit:CastSpell(22642) 
    end
    
    function VarousCloudstrider_ArcaneBlast(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(37126, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_ArcaneDischarge(pUnit, Event) 
    	pUnit:CastSpell(31472) 
    end
    
    function VarousCloudstrider_ArcaneBarrier(pUnit, Event) 
    	pUnit:CastSpell(36481) 
    end
    
    function AzureRingCaptain2_Spawn2(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1123.51, 1021.58, 606.02, 2.14, 22, 20000)
    end
    
    function AzureRingCaptain3_Spawn3(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 20000)
    end
    
    function AzureRingCaptain4_Spawn4(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1121.07, 1080.54, 606.02, 4.26, 22, 20000)
    end
    
    function VarousCloudstrider_CrystalPrison(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(32361, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_Enlarge(pUnit, Event) 
    	pUnit:CastSpell(25462) 
    end
    
    function VarousCloudstrider_Phase2(pUnit, Event) 
    	if pUnit:GetHealthPct() < 75 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13650)
    	pUnit:SendChatMessage(14, 0, "Blast them! Destroy them!")
    	pUnit:FullCastSpell(0)
    	pUnit:RegisterEvent("AzureRingCaptian_Spawn",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_BroodPower", 9000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBlast", 13000, 0)
    	end 
    end
    
    function VarousCloudstrider_Phase3(pUnit, Event) 
    	if pUnit:GetHealthPct() < 50 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13652)
    	pUnit:SendChatMessage(14, 0, "Strike now! Obliterate them!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(23487)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneDischarge", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBarrier", 10000, 0)
    	end 
    end
    
    function VarousCloudstrider_Phase4(pUnit, Event) 
    	if pUnit:GetHealthPct() < 35 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13651)
    	pUnit:SendChatMessage(14, 0, "Take no prisoners! Attack!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(27033)
    	pUnit:RegisterEvent("AzureRingCaptian2_Spawn2",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian3_Spawn3",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian4_Spawn4",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_Enlarge", 60000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_CrystalPrison", 15000, 0)
    	end 
    end
    
    function VarousCloudstrider_OnLeaveCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13654)
    	pUnit:SendChatMessage(14, 0, "The Oculus is ours!")
    	pUnit:RemoveEvents() 
    	pUnit:SetModel (27033) 
    end
    
    function VarousCloudstrider_OnDied(pUnit, Event)
    	pUnit:PlaySoundToSet(13655)
    	pUnit:SendChatMessage(14, 0, "They are... too strong... under estimated... aargh.. fortitude...")
    	pUnit:RemoveEvents()
    end
    
    function VarousCloudstrider_OnKilledTarget(pUnit, Event) 
    	pUnit:PlaySoundToSet(13653)
    	pUnit:SendChatMessage(14, 0, "You were warned...")
    end
    
    RegisterUnitEvent(145005, 1, "VarousCloudstrider_OnCombat")
    RegisterUnitEvent(145005, 2, "VarousCloudstrider_OnLeaveCombat")
    RegisterUnitEvent(145005, 3, "VarousCloudstrider_OnKilledTarget")
    RegisterUnitEvent(145005, 4, "VarousCloudstrider_OnDied")
    Repzor for teh helpzor :hsugh:

    [Help] Lua Failure
  2. #2
    Roger Fang's Avatar Banned
    Reputation
    17
    Join Date
    Aug 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function VarousCloudstrider_OnCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13649)
    	pUnit:SendChatMessage(14, 0, "There will be no mercy!")
    	pUnit:RegisterEvent("VarousCloudstrider_ThunderClap", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_AmplifyMagic", 6000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_EnergizeCores", 16000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase2",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase3",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
    end
    
    function VarousCloudstrider_ThunderClap(pUnit, Event) 
    	pUnit:CastSpell(58975) 
    end
    
    function VarousCloudstrider_AmplifyMagic(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(59371, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_EnergizeCores(pUnit, Event) 
    	pUnit:CastSpell(50785, pUnit:GetRandomPlayer(0)) 
    end
    
    function AzureRingCaptian_Spawn(pUnit, Event) 
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 30000) 
    end
    
    function VarousCloudstrider_BroodPower(pUnit, Event) 
    	pUnit:CastSpell(22642) 
    end
    
    function VarousCloudstrider_ArcaneBlast(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(37126, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_ArcaneDischarge(pUnit, Event) 
    	pUnit:CastSpell(31472) 
    end
    
    function VarousCloudstrider_ArcaneBarrier(pUnit, Event) 
    	pUnit:CastSpell(36481) 
    end
    
    function AzureRingCaptain2_Spawn2(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1123.51, 1021.58, 606.02, 2.14, 22, 20000)
    end
    
    function AzureRingCaptain3_Spawn3(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 20000)
    end
    
    function AzureRingCaptain4_Spawn4(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1121.07, 1080.54, 606.02, 4.26, 22, 20000)
    end
    
    function VarousCloudstrider_CrystalPrison(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(32361, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_Enlarge(pUnit, Event) 
    	pUnit:CastSpell(25462) 
    end
    
    function VarousCloudstrider_Phase2(pUnit, Event) 
    	if pUnit:GetHealthPct() < 75 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13650)
    	pUnit:SendChatMessage(14, 0, "Blast them! Destroy them!")
    	pUnit:FullCastSpell(0)
    	pUnit:RegisterEvent("AzureRingCaptian_Spawn",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_BroodPower", 9000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBlast", 13000, 0)
    	end 
    
    function VarousCloudstrider_Phase3(pUnit, Event) 
    	if pUnit:GetHealthPct() < 50 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13652)
    	pUnit:SendChatMessage(14, 0, "Strike now! Obliterate them!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(23487)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneDischarge", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBarrier", 10000, 0)
    	end 
    
    function VarousCloudstrider_Phase4(pUnit, Event) 
    	if pUnit:GetHealthPct() < 35 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13651)
    	pUnit:SendChatMessage(14, 0, "Take no prisoners! Attack!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(27033)
    	pUnit:RegisterEvent("AzureRingCaptian2_Spawn2",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian3_Spawn3",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian4_Spawn4",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_Enlarge", 60000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_CrystalPrison", 15000, 0)
    	end 
    
    function VarousCloudstrider_OnLeaveCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13654)
    	pUnit:SendChatMessage(14, 0, "The Oculus is ours!")
    	pUnit:RemoveEvents() 
    	pUnit:SetModel (27033) 
    end
    
    function VarousCloudstrider_OnDied(pUnit, Event)
    	pUnit:PlaySoundToSet(13655)
    	pUnit:SendChatMessage(14, 0, "They are... too strong... under estimated... aargh.. fortitude...")
    	pUnit:RemoveEvents()
    end
    
    function VarousCloudstrider_OnKilledTarget(pUnit, Event) 
    	pUnit:PlaySoundToSet(13653)
    	pUnit:SendChatMessage(14, 0, "You were warned...")
    end
    
    RegisterUnitEvent(145005, 1, "VarousCloudstrider_OnCombat")
    RegisterUnitEvent(145005, 2, "VarousCloudstrider_OnLeaveCombat")
    RegisterUnitEvent(145005, 3, "VarousCloudstrider_OnKilledTarget")
    RegisterUnitEvent(145005, 4, "VarousCloudstrider_OnDied")
    You do this completely differently to the way I code Lua but I think that should work for you. It should atleast flow on past 75% etc
    Last edited by Roger Fang; 01-31-2009 at 07:43 AM.

  3. #3
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It didn't work ><

    Keeps saying that another 'end' is required at the end of each phase basically.

  4. #4
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for double post here, but, Problem Fixed.

    I remade my script from scratch and I got it all down fine xD

    Thanks for the help though.

  5. #5
    VendoR's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function VarousCloudstrider_OnCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13649)
    	pUnit:SendChatMessage(14, 0, "There will be no mercy!")
    	pUnit:RegisterEvent("VarousCloudstrider_ThunderClap", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_AmplifyMagic", 6000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_EnergizeCores", 16000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase2",1000,0)
    end
    
    function VarousCloudstrider_ThunderClap(pUnit, Event) 
    	pUnit:CastSpell(58975) 
    end
    
    function VarousCloudstrider_AmplifyMagic(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(59371, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_EnergizeCores(pUnit, Event) 
    	pUnit:CastSpell(50785, pUnit:GetRandomPlayer(0)) 
    end
    
    function AzureRingCaptian_Spawn(pUnit, Event) 
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 30000) 
    end
    
    function VarousCloudstrider_BroodPower(pUnit, Event) 
    	pUnit:CastSpell(22642) 
    end
    
    function VarousCloudstrider_ArcaneBlast(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(37126, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_ArcaneDischarge(pUnit, Event) 
    	pUnit:CastSpell(31472) 
    end
    
    function VarousCloudstrider_ArcaneBarrier(pUnit, Event) 
    	pUnit:CastSpell(36481) 
    end
    
    function AzureRingCaptain2_Spawn2(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1123.51, 1021.58, 606.02, 2.14, 22, 20000)
    end
    
    function AzureRingCaptain3_Spawn3(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 20000)
    end
    
    function AzureRingCaptain4_Spawn4(pUnit, Event)
    	pUnit:SpawnCreature(28236, 1121.07, 1080.54, 606.02, 4.26, 22, 20000)
    end
    
    function VarousCloudstrider_CrystalPrison(pUnit, Event) 
    	pUnit:FullCastSpellOnTarget(32361, pUnit:GetRandomPlayer(0)) 
    end
    
    function VarousCloudstrider_Enlarge(pUnit, Event) 
    	pUnit:CastSpell(25462) 
    end
    
    function VarousCloudstrider_Phase2(pUnit, Event) 
    	if pUnit:GetHealthPct() < 75 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13650)
    	pUnit:SendChatMessage(14, 0, "Blast them! Destroy them!")
    	pUnit:FullCastSpell(0)
    	pUnit:RegisterEvent("AzureRingCaptian_Spawn",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_BroodPower", 9000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBlast", 13000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase3",1000,0)
    	end 
    end
    
    function VarousCloudstrider_Phase3(pUnit, Event) 
    	if pUnit:GetHealthPct() < 50 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13652)
    	pUnit:SendChatMessage(14, 0, "Strike now! Obliterate them!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(23487)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneDischarge", 12000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_ArcaneBarrier", 10000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
    	end 
    end
    
    function VarousCloudstrider_Phase4(pUnit, Event) 
    	if pUnit:GetHealthPct() < 35 then 
    	pUnit:RemoveEvents(); 
    	pUnit:PlaySoundToSet(13651)
    	pUnit:SendChatMessage(14, 0, "Take no prisoners! Attack!")
    	pUnit:FullCastSpell(0)
    	pUnit:SetModel(27033)
    	pUnit:RegisterEvent("AzureRingCaptian2_Spawn2",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian3_Spawn3",1000,1)
    	pUnit:RegisterEvent("AzureRingCaptian4_Spawn4",1000,1)
    	pUnit:RegisterEvent("VarousCloudstrider_Enlarge", 60000, 0)
    	pUnit:RegisterEvent("VarousCloudstrider_CrystalPrison", 15000, 0)
    	end 
    end
    
    function VarousCloudstrider_OnLeaveCombat(pUnit, Event) 
    	pUnit:PlaySoundToSet(13654)
    	pUnit:SendChatMessage(14, 0, "The Oculus is ours!")
    	pUnit:RemoveEvents() 
    	pUnit:SetModel (27033) 
    end
    
    function VarousCloudstrider_OnDied(pUnit, Event)
    	pUnit:PlaySoundToSet(13655)
    	pUnit:SendChatMessage(14, 0, "They are... too strong... under estimated... aargh.. fortitude...")
    	pUnit:RemoveEvents()
    end
    
    function VarousCloudstrider_OnKilledTarget(pUnit, Event) 
    	pUnit:PlaySoundToSet(13653)
    	pUnit:SendChatMessage(14, 0, "You were warned...")
    end
    
    RegisterUnitEvent(145005, 1, "VarousCloudstrider_OnCombat")
    RegisterUnitEvent(145005, 2, "VarousCloudstrider_OnLeaveCombat")
    RegisterUnitEvent(145005, 3, "VarousCloudstrider_OnKilledTarget")
    RegisterUnitEvent(145005, 4, "VarousCloudstrider_OnDied")

    You did not need to register all of the phases on combat, that will bug it . Insted register phase after phase, and everything should be alright try that next time.

Similar Threads

  1. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
  2. [Help] LUA Script + GO info
    By Hellgawd in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-12-2008, 05:06 AM
  3. help .lua portal
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-26-2008, 11:14 AM
  4. help .lua portal help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 01-24-2008, 03:21 PM
  5. [HELP] Lua DLL Error
    By Rouslan in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-12-2008, 02:02 PM
All times are GMT -5. The time now is 01:01 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search