Script problem | '>' expected near pUnit? menu

User Tag List

Results 1 to 9 of 9
  1. #1
    setuxas's Avatar Member
    Reputation
    20
    Join Date
    May 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script problem | '>' expected near pUnit?

    Can anybody help me. I made this boss Spirit of Melgen <The Fallen Nethermancer> I made a script for him too , but the script isn't working and in arcemu world it shows| '>' expected near pUnit| Here's the script

    Code:
    function Spirit_of_Melgen_OnCombat(pUnit, Event)
    	pUnit: SendChatMessage(13, 0, "Your pathetic souls , lifes , even essences will soon belong to me...")
    	pUnit: RegisterEvent("Phase_1", 1000, 0)
    
    end
    
    function Spirit_of_Melgen_Phase_1(pUnit, Event)
    	if pUnit: GetHealthPct() < 99 then
    	pUnit: RemoveEvents();
    	pUnit: FullCastSpellOnTarget(39329, pUnit: GetRandomPlayer(0))
    	pUnit: SendChatMessage(13, 0, "Do you really think you can whistand the power of nethermancer Melgen?!")
    	pUnit: RegisterEvent("Phase_2", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_2(pUnit, Event)
    	if pUnit: GetHealthPct() < 98 then
    	pUnit: RemoveEvents();
    	pUnit: CastSpell(42023)
    	pUnit: SendChatMessage(13, 0, "Arrgghahahaha! Fools!")
    	pUnit: RegisterEvent("Phase_3", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_3(pUnit, Event)
    	if pUnit: GetHealthPct() < 97 then
    	pUnit: RemoveEvents();
    	pUnit: FullCastSpellOnTarget(39329, pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOntarget(46161. pUnit: GetRandomPlayer(0))
    	pUnit: SendChatMessage(13, 0, "Be eaten by the void itself!")
    	pUnit: RegisterEvent("Phase_4", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_4(pUnit, Event)
    	if  pUnit: GetHealthPct() < 95 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "This was a just a boring test , the real game begins here! Arrgghahahaha!!!")
    	pUnit: SetModel (525)
    	pUnit: SetScale (3)
    	pUnit: CastSpell (43426)
    	pUnit: FullCastSpellOnTarget (37138, pUnit: GetMainTank())
    	pUnit: RegisterEvent("Phase_5", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_5(pUnit, Event)
    	if pUnit: GetHealthPct() < 93 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Ice heed my call!!!")
    	pUnit: CastSpell (37730)
    	pUnit: CastSpell (33239)
    	pUnit: RegisterEvent("Phase_6", 1000, 0)
    end
    end
    end
    
    function Spirit_of_Melgen_Phase_6(pUnit, Event)
    	if pUnit: GetHealthPct() < 92 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Face your doom!!!")
    	pUnit: CastSpell (37730)
    	pUnit: CastSpell (33239)
    	pUnit: CastSpell (43426)
    	pUnit: FullCastSpellOnTarget (37138, pUnit: GetMainTank())
    	pUnit: RegisterEvent("Phase_7", 1000, 0)
    end
    end
    
    fuction Spirit_of_Melgen_Phase_7(pUnit, Event)
    	if pUnit: GetHealthPct() < 90 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "From water to poison , from evil to pure evil. I'm gonna show you what fear truly is and the true form of Poison. Arrrgghahahaha!!!")
    	pUnit: SetModel (11172)
    	pUnit: SetScale (4)
    	pUnit: CastSpell (54098)
    	pUnit: CastSpell (54122)
    	pUnit: RegisterEvent("Phase_8", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_8(pUnit, Event)
    	if pUnit: GetHealthPct() < 88 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Fools! Now you will feel the terrible wrath of Melgen!!!")
    	pUnit: FullCastSpellOnTarget (43364, pUnit: GetMainTank())
    	pUnit: CastSpell (38219)
    	pUnit: RegisterEvent("Phase_9", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_9(pUnit, Event)
    	if pUnit: GetHealthPct() < 87 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Poison , consume them!!!!!")
    	pUnit: CastSpell (54098)
    	pUnit: CastSpell (54122)
    	pUnit: FullCastSpellOnTarget (43364, pUnit: GetMainTank())
    	pUnit: CastSpell (38219)
    	pUnit: RegisterEvent("Phase_10", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_10(pUnit, Event)
    	if pUnit: GetHealthPct() < 85 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (17045)
    	pUnit: SetScale (5)
    	pUnit: SendChatMessage(13, 0, "Blood is my friend and it shall be your undoing mongrels!")
    	pUnit: FullCastSpellOnTarget (41238, pUnit: GetMainTank())
    	pUnit: CastSpell (41068)
    	pUnit: RegisterEvent("Phase_11", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_11(pUnit, Event)
    	if pUnit: GetHealthPct() < 84 then
    	pUnit: RemoveEvents ();
    	pUnit: SendChatMessage(13, 0, "I will rip the flesh out of you!")
    	pUnit: FullCastSpellOnTarget (41072, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (3264)
    	pUnit: RegisterEvent("Phase_12", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_12(pUnit, Event)
    	if pUnit: GetHealthPct() < 83 then
    	pUnit: RemoveEvents ();
    	pUnit: SendChatMessage(13, 0, "Now is the time for your heart to explode!")
    	pUnit: FullCastSpellOnTarget (41072, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (3264)
    	pUnit: FullCastSpellOnTarget (41238, pUnit: GetMainTank())
    	pUnit: CastSpell (41068)
    	pUnit: RegisterEvent("Phase_13", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_13(pUnit, Event)
    	if pUnit: GetHealthPct() < 80 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (1204)
    	pUnit: SetScale (2)
    	pUnit: SendChatMessage(13, 0, "Die in my fiery hands!")
    	pUnit: FullCastSpellOnTarget (38010, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (59469)
    	pUnit: RegisterEvent("Phase_14", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_14(pUnit, Event)
    	if pUnit: GetHealthPct() < 78 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (3)
    	pUnit: SendChatMessage(13, 0, "Give up!")
    	pUnit: FullCastSpellOnTarget (41596, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (36876)
    	pUnit: RegisterEvent("Phase_15", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_15(pUnit, Event)
    	if pUnit: GetHealthPct() < 77 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (4)
    	pUnit: SendChatMessage(13, 0, "Flame , cut them in half!")
    	pUnit: FullCastSpellOnTarget (38010, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (59469)
    	pUnit: FullCastSpellOnTarget (41596, pUnit: GetMainTank())
    	pUnit: CastSpell (36876)
    	pUnit: RegisterEvent("Phase_16", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_16(pUnit, Event)
    	if pUnit: GetHealthPct() < 75 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (20431)
    	pUnit: SetScale (2)
    	pUnit: SendChatMessage(13, 0, "Behold the fel flame!")
    	pUnit: FullCastSpellOnTarget (38742, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (40631)
    	pUnit: RegisterEvent("Phase_17", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_17(pUnit, Event)
    	if pUnit: GetHealthPct() < 73 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (3)
    	pUnit: SendChatMessage(13, 0, "Soon my hands of death will engulf you all!")
    	pUnit: FullCastSpellOnTarget (46101, pUnit: GetMainTank(0))
    	pUnit: CastSpell (38813)
    	pUnit: RegisterEvent("Phase_18", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_18(pUnit, Event)
    	if pUnit: GetHealthPct() < 72 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (4)
    	pUnit: SendChatMessage(13, 0, "Fel , empower me with your strengh to destroy!")
    	pUnit: FullCastSpellOnTarget (38742, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (40631)
    	pUnit: FullCastSpellOnTarget (46101, pUnit: GetMainTank())
    	pUnit: CastSpell (38813)
    	pUnit: RegisterEvent("Phase_19", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_19(pUnit, Event)
    	if pUnit: GetHealthPct() < 70 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (453)
    	pUnit: SendChatMessage(13, 0, "Beware, I'm the earth itself!")
    	pUnit: CastSpell (64650)
    	pUnit: CastSpell (54193)
    	pUnit: CastSpell (63547)
    	pUnit: CastSpell (39050)
    	pUnit: RegisterEvent("Phase_20", 1000, 0)
    end
    end
    
    
    function Spirit_of_Melgen_Phase_20(pUnit, Event)
    	if pUnit: GetHealthPct() < 60 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (21130)
    	pUnit: SendChatMessage(13, 0, "Wind will mean you doom!")
    	pUnit: CastSpell (39261)
    	pUnit: CastSpell (43620)
    	pUnit: FullCastSpellOnTarget (46568 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (6982)
    	pUnit: CastSpell (10092)
    	pUnit: RegisterEvent("Phase_21", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_21(pUnit, Event)
    	if pUnit: GetHealthPct() < 45 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (5494)
    	pUnit: SendChatMessage(13, 0, "Storm heed my call!")
    	pUnit: CastSpell (38145)
    	pUnit: FullCastSpellOnTarget (63673 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (28299 pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOnTarget (56694 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (43983)
    	pUnit: RegisterEvent("Phase_22", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_22(pUnit, Event)
    	if pUnit: GetHealthPct() < 20 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (16216)
    	pUnit: SendChatMessage(13, 0, "Now for some extra arcane fun! Arrrgghahahaha!!!!!")
    	pUnit: CastSpell (34172)
    	pUnit: FullCastSpellOnTarget (40940 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (37271 pUnit: GetRandomPlayer(0))
    	pUnit: Castspell (21147)
    	pUnit: CastSpell (38539)
    	pUnit: RegisterEvent("Phase_23", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_23(pUnit, Event)
    	if pUnit: GetHealthPct() < 10 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (10)
    	pUnit: SetModel (23428)
    	pUnit: SendChatMessage(13, 0, "Now you made me angry. You wanted my true form you got it! Now bow before the god of void!!!")
    	pUnit: CastSpell (38627)
    	pUnit: FullCastSpellOnTarget (46161 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (33047 pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOnTarget (46289 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (38524)
    	pUnit: RegisterEvent("Phase_24", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Start(pUnit, Event)
    	pUnit:RegisterEvent("phase_1",1000, 0)
    end
    
    function Spirit_of_Melgen_OnKill(pUnit,Event)
    	pUnit:SendChatMessage(13, 0, "Pathetic Soul...")
    end
    
    RegisterUnitEvent(32001, 1, "Spirit_of_Melgen_Start")
    RegisterUnitEvent(32001, 3, "Spirit_of_Melgen_OnKill")
    RegisterUnitEvent(32001, 1, "Spirit_of_Melgen_OnCombat")

    Script problem | '&gt;' expected near pUnit?
  2. #2
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your "if" statements are wrong.

    You wrote:
    if pUnit:...== true then

    You have to write:
    if (pUnit:...== true) then

  3. #3
    setuxas's Avatar Member
    Reputation
    20
    Join Date
    May 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rep for trying but nothing :/ same problem

  4. #4
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.

    But I suppose you got a Consol Window that gives you this error. Can you Screenshot it, and put it in here? Then its easier to track aswell.

  5. #5
    setuxas's Avatar Member
    Reputation
    20
    Join Date
    May 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sry it isn't attaching so i will write the error

    LuaEngine: SSV Spirit of Melgen.lua...
    failed. <could not load>
    scripts\SSV Spirit of Melgen.lua:29: '>' expected near 'pUnit'

  6. #6
    setuxas's Avatar Member
    Reputation
    20
    Join Date
    May 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that is what is writen in arcemu world while loading

  7. #7
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Code:
    function Spirit_of_Melgen_OnCombat(pUnit, Event)
    	pUnit: SendChatMessage(13, 0, "Your pathetic souls , lifes , even essences will soon belong to me...")
    	pUnit: RegisterEvent("Phase_1", 1000, 0)
    
    end
    
    function Spirit_of_Melgen_Phase_1(pUnit, Event)
    	if pUnit: GetHealthPct() < 99 then
    	pUnit: RemoveEvents();
    	pUnit: FullCastSpellOnTarget(39329, pUnit: GetRandomPlayer(0))
    	pUnit: SendChatMessage(13, 0, "Do you really think you can whistand the power of nethermancer Melgen?!")
    	pUnit: RegisterEvent("Phase_2", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_2(pUnit, Event)
    	if pUnit: GetHealthPct() < 98 then
    	pUnit: RemoveEvents();
    	pUnit: CastSpell(42023)
    	pUnit: SendChatMessage(13, 0, "Arrgghahahaha! Fools!")
    	pUnit: RegisterEvent("Phase_3", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_3(pUnit, Event)
    	if pUnit: GetHealthPct() < 97 then
    	pUnit: RemoveEvents();
    	pUnit: FullCastSpellOnTarget(39329, pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOntarget(46161, pUnit: GetRandomPlayer(0))
    	pUnit: SendChatMessage(13, 0, "Be eaten by the void itself!")
    	pUnit: RegisterEvent("Phase_4", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_4(pUnit, Event)
    	if  pUnit: GetHealthPct() < 95 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "This was a just a boring test , the real game begins here! Arrgghahahaha!!!")
    	pUnit: SetModel (525)
    	pUnit: SetScale (3)
    	pUnit: CastSpell (43426)
    	pUnit: FullCastSpellOnTarget (37138, pUnit: GetMainTank())
    	pUnit: RegisterEvent("Phase_5", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_5(pUnit, Event)
    	if pUnit: GetHealthPct() < 93 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Ice heed my call!!!")
    	pUnit: CastSpell (37730)
    	pUnit: CastSpell (33239)
    	pUnit: RegisterEvent("Phase_6", 1000, 0)
    end
    end
    end
    
    function Spirit_of_Melgen_Phase_6(pUnit, Event)
    	if pUnit: GetHealthPct() < 92 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Face your doom!!!")
    	pUnit: CastSpell (37730)
    	pUnit: CastSpell (33239)
    	pUnit: CastSpell (43426)
    	pUnit: FullCastSpellOnTarget (37138, pUnit: GetMainTank())
    	pUnit: RegisterEvent("Phase_7", 1000, 0)
    end
    end
    
    fuction Spirit_of_Melgen_Phase_7(pUnit, Event)
    	if pUnit: GetHealthPct() < 90 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "From water to poison , from evil to pure evil. I'm gonna show you what fear truly is and the true form of Poison. Arrrgghahahaha!!!")
    	pUnit: SetModel (11172)
    	pUnit: SetScale (4)
    	pUnit: CastSpell (54098)
    	pUnit: CastSpell (54122)
    	pUnit: RegisterEvent("Phase_8", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_8(pUnit, Event)
    	if pUnit: GetHealthPct() < 88 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Fools! Now you will feel the terrible wrath of Melgen!!!")
    	pUnit: FullCastSpellOnTarget (43364, pUnit: GetMainTank())
    	pUnit: CastSpell (38219)
    	pUnit: RegisterEvent("Phase_9", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_9(pUnit, Event)
    	if pUnit: GetHealthPct() < 87 then
    	pUnit: RemoveEvents();
    	pUnit: SendChatMessage(13, 0, "Poison , consume them!!!!!")
    	pUnit: CastSpell (54098)
    	pUnit: CastSpell (54122)
    	pUnit: FullCastSpellOnTarget (43364, pUnit: GetMainTank())
    	pUnit: CastSpell (38219)
    	pUnit: RegisterEvent("Phase_10", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_10(pUnit, Event)
    	if pUnit: GetHealthPct() < 85 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (17045)
    	pUnit: SetScale (5)
    	pUnit: SendChatMessage(13, 0, "Blood is my friend and it shall be your undoing mongrels!")
    	pUnit: FullCastSpellOnTarget (41238, pUnit: GetMainTank())
    	pUnit: CastSpell (41068)
    	pUnit: RegisterEvent("Phase_11", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_11(pUnit, Event)
    	if pUnit: GetHealthPct() < 84 then
    	pUnit: RemoveEvents ();
    	pUnit: SendChatMessage(13, 0, "I will rip the flesh out of you!")
    	pUnit: FullCastSpellOnTarget (41072, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (3264)
    	pUnit: RegisterEvent("Phase_12", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_12(pUnit, Event)
    	if pUnit: GetHealthPct() < 83 then
    	pUnit: RemoveEvents ();
    	pUnit: SendChatMessage(13, 0, "Now is the time for your heart to explode!")
    	pUnit: FullCastSpellOnTarget (41072, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (3264)
    	pUnit: FullCastSpellOnTarget (41238, pUnit: GetMainTank())
    	pUnit: CastSpell (41068)
    	pUnit: RegisterEvent("Phase_13", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_13(pUnit, Event)
    	if pUnit: GetHealthPct() < 80 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (1204)
    	pUnit: SetScale (2)
    	pUnit: SendChatMessage(13, 0, "Die in my fiery hands!")
    	pUnit: FullCastSpellOnTarget (38010, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (59469)
    	pUnit: RegisterEvent("Phase_14", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_14(pUnit, Event)
    	if pUnit: GetHealthPct() < 78 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (3)
    	pUnit: SendChatMessage(13, 0, "Give up!")
    	pUnit: FullCastSpellOnTarget (41596, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (36876)
    	pUnit: RegisterEvent("Phase_15", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_15(pUnit, Event)
    	if pUnit: GetHealthPct() < 77 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (4)
    	pUnit: SendChatMessage(13, 0, "Flame , cut them in half!")
    	pUnit: FullCastSpellOnTarget (38010, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (59469)
    	pUnit: FullCastSpellOnTarget (41596, pUnit: GetMainTank())
    	pUnit: CastSpell (36876)
    	pUnit: RegisterEvent("Phase_16", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_16(pUnit, Event)
    	if pUnit: GetHealthPct() < 75 then
    	pUnit: RemoveEvents ();
    	pUnit: SetModel (20431)
    	pUnit: SetScale (2)
    	pUnit: SendChatMessage(13, 0, "Behold the fel flame!")
    	pUnit: FullCastSpellOnTarget (38742, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (40631)
    	pUnit: RegisterEvent("Phase_17", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_17(pUnit, Event)
    	if pUnit: GetHealthPct() < 73 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (3)
    	pUnit: SendChatMessage(13, 0, "Soon my hands of death will engulf you all!")
    	pUnit: FullCastSpellOnTarget (46101, pUnit: GetMainTank(0))
    	pUnit: CastSpell (38813)
    	pUnit: RegisterEvent("Phase_18", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_18(pUnit, Event)
    	if pUnit: GetHealthPct() < 72 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (4)
    	pUnit: SendChatMessage(13, 0, "Fel , empower me with your strengh to destroy!")
    	pUnit: FullCastSpellOnTarget (38742, pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (40631)
    	pUnit: FullCastSpellOnTarget (46101, pUnit: GetMainTank())
    	pUnit: CastSpell (38813)
    	pUnit: RegisterEvent("Phase_19", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_19(pUnit, Event)
    	if pUnit: GetHealthPct() < 70 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (453)
    	pUnit: SendChatMessage(13, 0, "Beware, I'm the earth itself!")
    	pUnit: CastSpell (64650)
    	pUnit: CastSpell (54193)
    	pUnit: CastSpell (63547)
    	pUnit: CastSpell (39050)
    	pUnit: RegisterEvent("Phase_20", 1000, 0)
    end
    end
    
    
    function Spirit_of_Melgen_Phase_20(pUnit, Event)
    	if pUnit: GetHealthPct() < 60 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (21130)
    	pUnit: SendChatMessage(13, 0, "Wind will mean you doom!")
    	pUnit: CastSpell (39261)
    	pUnit: CastSpell (43620)
    	pUnit: FullCastSpellOnTarget (46568 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (6982)
    	pUnit: CastSpell (10092)
    	pUnit: RegisterEvent("Phase_21", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_21(pUnit, Event)
    	if pUnit: GetHealthPct() < 45 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (5494)
    	pUnit: SendChatMessage(13, 0, "Storm heed my call!")
    	pUnit: CastSpell (38145)
    	pUnit: FullCastSpellOnTarget (63673 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (28299 pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOnTarget (56694 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (43983)
    	pUnit: RegisterEvent("Phase_22", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_22(pUnit, Event)
    	if pUnit: GetHealthPct() < 20 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (5)
    	pUnit: SetModel (16216)
    	pUnit: SendChatMessage(13, 0, "Now for some extra arcane fun! Arrrgghahahaha!!!!!")
    	pUnit: CastSpell (34172)
    	pUnit: FullCastSpellOnTarget (40940 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (37271 pUnit: GetRandomPlayer(0))
    	pUnit: Castspell (21147)
    	pUnit: CastSpell (38539)
    	pUnit: RegisterEvent("Phase_23", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Phase_23(pUnit, Event)
    	if pUnit: GetHealthPct() < 10 then
    	pUnit: RemoveEvents ();
    	pUnit: SetScale (10)
    	pUnit: SetModel (23428)
    	pUnit: SendChatMessage(13, 0, "Now you made me angry. You wanted my true form you got it! Now bow before the god of void!!!")
    	pUnit: CastSpell (38627)
    	pUnit: FullCastSpellOnTarget (46161 pUnit: GetMainTank())
    	pUnit: FullCastSpellOnTarget (33047 pUnit: GetRandomPlayer(0))
    	pUnit: FullCastSpellOnTarget (46289 pUnit: GetRandomPlayer(0))
    	pUnit: CastSpell (38524)
    	pUnit: RegisterEvent("Phase_24", 1000, 0)
    end
    end
    
    function Spirit_of_Melgen_Start(pUnit, Event)
    	pUnit:RegisterEvent("phase_1",1000, 0)
    end
    
    function Spirit_of_Melgen_OnKill(pUnit,Event)
    	pUnit:SendChatMessage(13, 0, "Pathetic Soul...")
    end
    
    RegisterUnitEvent(32001, 1, "Spirit_of_Melgen_Start")
    RegisterUnitEvent(32001, 3, "Spirit_of_Melgen_OnKill")
    RegisterUnitEvent(32001, 1, "Spirit_of_Melgen_OnCombat")
    You had a DOT instead of a COMMA on row 29. Should be fixed now.

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  8. #8
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, thats right ^^

  9. #9
    setuxas's Avatar Member
    Reputation
    20
    Join Date
    May 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx you all problem solved

Similar Threads

  1. '<eof>' expected near 'end'
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-22-2008, 06:45 AM
  2. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  3. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
  4. Lua scripts problem
    By Mr.Ice.Cold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-02-2008, 11:44 AM
  5. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
All times are GMT -5. The time now is 03:33 PM. 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