[Need help] What's wrong with this script? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Need help] What's wrong with this script?

    Hi, I'm making my repack, as some of you might know...

    And I'm making a "Allidari Lair", as you might also know...

    And my first boss is Arthas...

    And I allready got problems...

    Lets begin with Arthas, the boss....

    Code:
     function Kazzak_Enrage(Unit, event, miscunit, misc)
        if Unit:GetHealthPct() < 30 and Didthat == 0 then
            Unit:FullCastSpell(40327)
            Didthat = 1
        else
        end
    end
    
    function Arthas_Dark_Glare(Unit, event, miscunit, misc)
        print "Arthas Dark Glare"
        Unit:FullCastSpellOnTarget(26029,Unit:GetClosestPlayer())
        Unit:SendChatMessage(11, 0, "The Dark Glare consume you all!")
    end
    
    function Arthas_Finger_of_Death(Unit, event, miscunit, misc)
        print "Arthas Finger of Death"
        Unit:FullCastSpellOnTarget(32111,Unit:GetRandomPlayer())
        Unit:SendChatMessage(11, 0, "Taste the Finger of Death!!")
    end
    
    function Arthas_Whirlwind(Unit, event, miscunit, misc)
        print "Arthas Whirlwind"
        Unit:FullCastSpellOnTarget(40219,Unit:GetRandomPlayer())
        Unit:SendChatMessage(11, 0, "Taste the power of the frostmourne!!")
    end
    
    function Arthas_Spirit_Fall(Unit, event, miscunit, misc)
        print "Arthas Spirit Fall"
        Unit:FullCastSpell(40314)
        Unit:SendChatMessage(11, 0, "May the spirits kill you all!")
    end
    
    function Arthas_Reign_Of_Chaos(Unit, event, miscunit, misc)
        print "Arthas Rain of Chaos"
        Unit:FullCastSpellOnTarget(40946,Unit:GetClosestPlayer())
        Unit:SendChatMessage(11, 0, "I won't do the same mistake as my father!!")
    end
    
    function Arthas_Void_Bolt(Unit, event, miscunit, misc)
        print "Arthas Void Bolt"
        Unit:FullCastSpellOnTarget(39329,Unit:GetClosestPlayer())
        Unit:SendChatMessage(11, 0, "My void bolts will crush you all!!")
    end
    
    function Arthas_Flame_Crash(Unit, event, miscunit, misc)
        print "Arthas Flame Crash"
        Unit:FullCastSpell(40832)
        Unit:SendChatMessage(11, 0, "Taste the Flames of Sulfuron!! Ops, that's Ragnaros speak..")
    end
    
    function Arthas(unit, event, miscunit, misc)
        print "Arthas"
        unit:RegisterEvent("Kazzak_Enrage",1000,1)
        unit:RegisterEvent("Arthas_Dark_Glare",10000,0)
        unit:RegisterEvent("Arthas_Finger_of_Death",17000,0)
        unit:RegisterEvent("Arthas_Whirlwind",23000,0)
        unit:RegisterEvent("Arthas_Spirit_Fall",27000,0)
        unit:RegisterEvent("Arthas_Reign_of_Chaos",33000,0)
        unit:RegisterEvent("Arthas_Void_Bolt",37000,0)
        unit:RegisterEvent("Arthas_Flame_Crash",600000,1)
    end
    
    RegisterUnitEvent(232323,1,"Arthas")
    
    function Arthas_And_Blazer(pUnit, Event)
        
        x = pUnit:GetX(-1514.589966);
        y = pUnit:GetY(-451.562988);
        z = pUnit:GetZ(69,445702);
        o = pUnit:GetO(0,814188);
        
        pUnit:SpawnCreature(6543221, -1514.58996, -451.562988, 69.445702, 0.814188,1741,900000)
    end
        RegisterUnitEvent(232323, 6, "Arthas_And_Blazer")
        function Arthas_speak_one(Unit, event, miscunit, misc)
        pUnit:SendChatMessage(11, 0, "Well.. If you're his messager-boy, oh please tell him..<laughs> I'm about to take his seat!")
        Unit:RegisterEvent("Arthas_speak_one", 10, 0)
        function Arthas_speak_two(Unit, event, miscunit, misc)
        end
        Unit:RegisterEvent("Arthas_speak_two", 30, 0)
    function Arthas_speak_three(Unit, event, miscunit, misc)
        pUnit:SendChatMessage(11, 0, "Ah, as you wish...")
        pUnit:SendChatMessage(9, 0, "Arthas puts on his lil crown.")
        pUnit:GetMainTank()
        pUnit:SendChatMessage(12, 0, "I HAVE AN SUMMONING TO ATTEND TO!")
    end
        Unit:RegisterEvent("Arthas_Speak_three", 10, 0)
    
    
    
    function Arthas_Illidan_Comes
        pUnit:CastSpell (40647)
        pUnit:SendChatMessage(11, 0, "Enough! The summoning is allready complete! Kill me, but you can't save Azeroth from the summoning!")
        pUnit:CastSpell (40647)
    end
        Unit:RegisterEvent("Arthas_Illidan_comes", 359980, 0)
        x = pUnit:GetX()
        y = pUnit:GetY()
        z = pUnit:GetZ()
        o = pUnit:GetO()
        pUnit:SpawnCreature(987654321, -1514.58996, -451.562988, 69.445702, 0.814188, 1741, 900000)
        pUnit:CastSpell (40647)
    end
        Unit:RegisterEvent("Arthas_Illidan_Comes", 360000, 0)
        function Arthas_speak_four
        pUnit:SendChatMessage(11, 0, "Illidan... I though you where at our side...")
        pUnit:CastSpell (40647)
    end
        Unit:RegisterEvent("Arthas_Speak_four", 360020, 0)
        function Arthas_Speak_Four
        pUnit:SendChatMessage(11, 0, "I have destroyed you before, Illidan. You know it doesn't make sense if you leave us.")
        
    end 
        Unit:RegisterEvent("Arthas_Speak_five", 360040, 0)
        pUnit:SendChatMessage(12, 0, "The power of Death shall crush you!!")
    end
         unit:RegisterEvent("Arthas_Speak_Five", 40000, 0)
    function Arthas_Death
        Unit:SendChatMessage(11, 0, "Blazer, you don't know the other secret of your blade... The sword that you're wielding, is a key. Using it, you would not only undo a summoning, but also rescue the suffering of your dear friend, Yimo...Now...It's time for me to...leave...")
        x = pUnit:GetX()
        y = punit:GetY()
        z = punit:getZ()
        o = pUnit:GetO()
        pUnit:SpawnCreature(1121337, -1514.58996, -451.562988, 69.445702, 0.814188, 1741, 9000000)
    end
         Unit:RegisterUnitEvent(232323, 4, Arthas_Death)
    And it fails loading, because something's wrong... Yeah i'm a noob of lua scripting, whats the problem?

    Lets continue with the small helpers...(like Akama and Maiev in Illidan event)

    Code:
    function Ashbringer_speak_one
         Unit:SendChatMessage(12, 0, "Arthas! God is pissed of at you, and I am here to make you pay!")
    end
         unit:RegisterEvent("Ashbringer_speak_one",1,1)
    
    function Ashbringer_speak_two
         Unit:SendChatMessage(11, 0, "Oh, yes of course, but pleeease! Take on that lil crown of yours, I didn't come here to play!")
    end
         unit:RegisterEvent("Ashbringer_speak_two",20,1)
    
    function Ashbringer_Flamestrike
         Unit:SendChatMessage(11, 0, "Feel the great power of Retribution!")
         Unit:FullCastSpell(22275)
    end
    function Ashbringer_Pyroblast
         Unit:SendChatMessage(11, 0, "Power to retribution!")
    function Illidan_speak_one
    Unit:SendChatMessage(12, 0, "You forgot the lil secret, Arthas.")
    end
    unit:RegisterEvent("Illidan_speak_one",1,1)

    function Illidan_speak_two
    Unit:SendChatMessage(11, 0, "Everything that hurts you may make you stronger... And I have felt alots of pain from yours, Lich King...")
    end
    unit:RegisterEvent("Illidan_speak_two",12,1)
    function Illidan_speak_three
    Unit:SendChatMessage(12, 0, "Nothing you ever do will make sense. You are not prepared!")
    end
    Unit:RegisterEvent("Illidan_speak_three", 30,1)

    [/code]
    What's wrong?

    Ps. can someone also help me with this script?
    [code]
    function Lokirah_Enrage(Unit, event, miscunit, misc)
    if Unit:GetHealthPct() < 30 and Didthat == 0 then
    Unit:FullCastSpell(34971)
    Didthat = 1
    else
    end
    end

    function Lokirah_Flame_Crash(Unit, event, miscunit, misc)
    print "Lokirah Flame Crash"
    Unit:FullCastSpellOnTarget(40832,Unit:GetClosestPlayer())
    Unit:SendChatMessage(12, 0, "May the flames crush you all!")
    end

    function Lokirah_Shadowbolt_Whirl(Unit, event, miscunit, misc)
    print "Lokirah Shadowbolt Whirl "
    Unit:FullCastSpellOnTarget(32111,Unit:GetRandomPlayer())
    Unit:SendChatMessage(11, 0, "")
    end

    function Lokirah_Aura_of_Death(Unit, event, miscunit, misc)
    print "Lokirah Aura of Death"
    Unit:FullCastSpellOnTarget(41142,Unit:GetRandomPlayer())
    Unit:SendChatMessage(11, 0, "The Aura of Death will crush you all!")
    end

    function Lokirah_Agnozing_Flames(Unit, event, miscunit, misc)
    print "Lokirah Agnozing Flames"
    Unit:FullCastSpell(40932)
    Unit:SendChatMessage(11, 0, "My flames are Agnozing! Taste it!")
    end

    function Arthas_Reign_Of_Chaos(Unit, event, miscunit, misc)
    print "Arthas Rain of Chaos"
    Unit:FullCastSpellOnTarget(40946,Unit:GetClosestPlayer)
    Unit:SendChatMessage(11, 0, "Rain of Chaos, Aid me!")
    end

    function Arthas_Void_Bolt(Unit, event, miscunit, misc)
    print "Arthas Void Bolt"
    Unit:FullCastSpellOnTarget(39329,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "My void bolts will crush you all!!")
    end

    function Arthas_Flame_Crash(Unit, event, miscunit, misc)
    print "Arthas Flame Crash"
    Unit:FullCastSpell(40832)
    Unit:SendChatMessage(11, 0, "Taste the Flames of Sulfuron!! Ops, that's Ragnaros speak..")
    end

    function Lokirah(unit, event, miscunit, misc)
    print "Lokirah"
    unit:RegisterEvent("Lokirah_Enrage",1000,1)
    unit:RegisterEvent("Lokirah_Flame_Crash",10000,0)
    unit:RegisterEvent("Lokirah_Shadowbolt_Wirl",17000,0)
    unit:RegisterEvent("Lokirah_Aura_Of_Death",23000,0)
    unit:RegisterEvent("Lokirah_Agnozing_Flames",27000,0)
    unit:RegisterEvent("Lokirah_Reign_of_Chaos",33000,0)
    unit:RegisterEvent("Lokirah_Void_Bolt",37000,0)
    unit:RegisterEvent("Lokirah_Flame_Crash",600000,1)
    function Lokirah_Flight(Unit, Event, Miscunit, misc)
    print "Lokirah Flight"
    Unit:EmoteState(254)
    Unit:SendChatMessage(12, 0, "I will not be touched by you, gnomes!")
    Unit:FullCastSpell(40585)
    Unit:FullCastSpell(40585)
    Unit:FullCastSpell(40585)
    Unit:FullCastSpell(4107
    Unit:FullCastSpell(40585)
    Unit:FullCastSpell(4107
    Unit:EmoteState(293)
    end
    Unit:RegisterEvent("Lokirah_Flight", 40000, 0)
    function Lokirah_DemonForm
    Unit:EmoteState(293)
    Unit:SetModelID(21322)
    Unit:SetScale(4)
    Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
    Unit:FullCastSpell(40511)
    Unit:FullCastSpell(4107
    Unit:FUllCastSpell(41117)
    Unit:FullCastSpell(41131)
    Unit:EmoteState(0)
    Unit:SetModelID(21137)
    Unit:SetScale(1)
    end
    Unit:RegisterEvent("Lokirah_DemonForm", 45000, 0)
    function Lokirah_DemonForm
    Unit:EmoteState(293)
    Unit:SetModelID(21322)
    Unit:SetScale(4)
    Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
    Unit:FullCastSpell(40511)
    Unit:FullCastSpell(4107
    Unit:FUllCastSpell(41117)
    Unit:FullCastSpell(41131)
    Unit:EmoteState(0)
    Unit:SetModelID(21137)
    Unit:SetScale(1)
    end
    Unit:RegisterEvent("Lokirah_DemonForm", 50000, 0)
    function Lokirah_DemonForm
    Unit:EmoteState(293)
    Unit:SetModelID(21322)
    Unit:SetScale(4)
    Unit:SendChatMessage(12, 0, "You wanted more, Behold the Power of the demon within!")
    Unit:FullCastSpell(40511)
    Unit:FullCastSpell(4107
    Unit:FUllCastSpell(41117)
    Unit:FullCastSpell(41131)
    Unit:EmoteState(0)
    Unit:SetModelID(21137)
    Unit:SetScale(1)
    end
    Unit:RegisterEvent("Lokirah_DemonForm", 55000)
    function Lokirah_OnAggro
    Unit:SendChatMessage(12, 0, "I hate to see how much you hate me... You will be one of my prisoners, and become corrupted for all future!")
    x = pUnit:GetX(1644.842896);
    y = pUnit:GetY(-3082.187500);
    z = pUnit:GetZ(88.13549;
    o = pUnit:GetO(5.742047);

    Unit:SpawnCreature(133464, 1638.699951, -3077.959961, 87.655098, 5.389270,1741,9999999999)
    end
    Unit:RegisterEvent(13399, 1, Lokirah_OnAggro)
    function Lokirah_Dies
    Unit:SendChatMessage(11, 0, "I hate to say it... But you downed me...")
    Unit:SetModelID(20122)
    Unit:FullCastSpell(34971)
    Unit:RegisterEvent(13399, 4, Lokirah_Dies)
    +rep to anyone that can help me

    World best PvP Paladin=Me? GG ;D


    [Need help] What's wrong with this script?
  2. #2
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,647
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BLAZER
    OMGZORZZOROZZOZRZOZORZOZORZ
    Looks nice but I can't help you Im newb with LUA, or well, im newb with all languages


  3. #3
    Cheesy's Avatar Member
    Reputation
    85
    Join Date
    May 2007
    Posts
    314
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Every script is

    function Arthas_Void_Bolt(Unit, event, miscunit, misc)
    print "Arthas Void Bolt"
    Unit:FullCastSpellOnTarget(39329,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "My void bolts will crush you all!!")
    end

    Change the 0 to respective event. Not sure about them tho, but that seems wrong
    I 'R' EPICNESS!

  4. #4
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty, gonna test if works now

    World best PvP Paladin=Me? GG ;D


  5. #5
    Arthas117's Avatar Knight-Champion
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by EcHoEs View Post
    BLAZER
    OMGZORZZOROZZOZRZOZORZOZORZ
    Looks nice but I can't help you Im newb with LUA, or well, im newb with all languages
    ye, its blazer, i've became a neard of tales of the past III :P

    World best PvP Paladin=Me? GG ;D


Similar Threads

  1. [Lua Script] What is wrong with this script!?
    By Cuodin in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 04-05-2011, 10:00 AM
  2. What is wrong with this item teleportation Lua script ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 08-13-2009, 08:50 AM
  3. What is wrong with this script?
    By XxCyanidexX in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 03-01-2009, 12:13 PM
  4. What is Wrong with my Script
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-23-2008, 07:37 PM
  5. [helpzerz] What is wrong with this lua script?
    By w21froster in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-21-2008, 09:45 PM
All times are GMT -5. The time now is 12:17 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search