[Help] LuA Boss menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Corosive720's Avatar Member
    Reputation
    11
    Join Date
    Nov 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] LuA Boss

    Alright im using a program called GamerX's LuA Script Generator Anyways i just created my first LuA file with it and i get this error when it loads

    Failed.[Could not load]
    scripts/Boss_doomfire_father.lua:18: '<eof>' expected near 'end'

    Here is my lua Script

    Code:
    function _OnCombat(Unit, Event) 
    Unit:SendChatMessage(11, 0, "You dare Challenge me? Well this will be a quick fight!")
    end
    
    function doomfire_cleave(pUnit, Event) 
    pUnit:CastSpellOnTarget(40504, pUnit:GetRandomPlayer(0)) 
    end
    
    function doomfire_cripple(pUnit, Event) 
    pUnit:CastSpellOnTarget(11443, pUnit:GetMainTank()) 
    end
    
    function doomfire_reinoffire(pUnit, Event) 
    pUnit:CastSpell(38741, pUnit:GetRandomPlayer(0)) 
    end
    
    Unit:SendChatMessage(12, 0, "I knew you people where to weak to fight me! Now Begone i don't ever want to see you again!") 
    end
    
    function _OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "I have fallen, Forgive me") 
    end
    
    function _OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(13, 0, "Ha! I knew i could kill you. Who else is up next?") 
    end
    
    RegisterUnitEvent(40008, 1, "_OnCombat")
    RegisterUnitEvent(40008, 2, "_OnLeaveCombat")
    RegisterUnitEvent(40008, 3, "_OnKilledTarget")
    RegisterUnitEvent(40008, 4, "_OnDied")
    Any help on this would be greatly appreciated and i will +rep for anyone that helps me figure this out.. Its my first time at the program so i might have done something in the program itself to mess it up.. but anyways thanks in advance

    [Help] LuA Boss
  2. #2
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first: - u need a function over your text
    function _OnLeaveCombat(pUnit, Event)
    Unit:SendChatMessage(12, 0, "I knew you people where to weak to fight me! Now Begone i don't ever want to see you again!")
    end

    second, after the oncombat one, you have to register
    function doomfire_cleave(pUnit, Event)
    pUnit:CastSpellOnTarget(40504, pUnit:GetRandomPlayer(0))
    end

    function doomfire_cripple(pUnit, Event)
    pUnit:CastSpellOnTarget(11443, pUnit:GetMainTank())
    end

    function doomfire_reinoffire(pUnit, Event)
    pUnit:CastSpell(38741, pUnit:GetRandomPlayer(0))
    end
    .. else they wont be used

  3. #3
    Free Hugs's Avatar Contributor
    Reputation
    116
    Join Date
    May 2007
    Posts
    425
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, but thats a little extra, you COULD have only said the function, he only really asked for that.
    MMOKings - The #1 safest place to buy WoW Gold

  4. #4
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and? my answer were more helpfull and did so theres wont be a question more ;P

  5. #5
    Corosive720's Avatar Member
    Reputation
    11
    Join Date
    Nov 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to be a noob but could you like put it into a completed LuA for me so i can use it and see?

  6. #6
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should work, it will make it cast cleave spell 6 times at all, and it have cooldown on 6000 before he cast it again, it will cast cripple 5 times with 1000 Cooldown, and it will cast rein of fire 14 times, 3000 Cooldown..

    Code:
    function _OnCombat(Unit, Event) 
    Unit:SendChatMessage(11, 0, "You dare Challenge me? Well this will be a quick fight!")
    Unit:RegisterEvent("doomfire_cleave", 6000, 6)
    Unit:RegisterEvent("doomfire_cripple", 1000, 5)
    Unit:RegisterEvent("doomfire_reinoffire", 3000, 14)
    end
    
    function doomfire_cleave(pUnit, Event) 
    pUnit:CastSpellOnTarget(40504, pUnit:GetRandomPlayer(0)) 
    end
    
    function doomfire_cripple(pUnit, Event) 
    pUnit:CastSpellOnTarget(11443, pUnit:GetMainTank()) 
    end
    
    function doomfire_reinoffire(pUnit, Event) 
    pUnit:CastSpell(38741, pUnit:GetRandomPlayer(0)) 
    end
    
    function _OnLeaveCombat(pUnit, Event)
    Unit:SendChatMessage(12, 0, "I knew you people where to weak to fight me! Now Begone i don't ever want to see you again!") 
    end
    
    function _OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "I have fallen, Forgive me") 
    end
    
    function _OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(13, 0, "Ha! I knew i could kill you. Who else is up next?") 
    end
    
    RegisterUnitEvent(40008, 1, "_OnCombat")
    RegisterUnitEvent(40008, 2, "_OnLeaveCombat")
    RegisterUnitEvent(40008, 3, "_OnKilledTarget")
    RegisterUnitEvent(40008, 4, "_OnDied")
    If u want it to cast it more times, edit the black, if u want to change the cooldown between it cast, change the darkgreen

  7. #7
    Corosive720's Avatar Member
    Reputation
    11
    Join Date
    Nov 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks +rep

  8. #8
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no prob m8
    [/COLOR]

  9. #9
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my advise cossy is just learn LUA its simple and easy dont use generators they always fail
    Lunar Gaming - Reaching For The Stars

  10. #10
    Rian22's Avatar Member
    Reputation
    6
    Join Date
    Jul 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Offtopic

    Originally Posted by mager1794 View Post
    my advise cossy is just learn LUA its simple and easy dont use generators they always fail
    SOrry this is offtopic, but your signature says you have a little skill in C++? Could you please tell me a guide or something where you learned what knowledge you have...?

  11. #11
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i havn't updated my signature i learned C++ on my own but i wrote a guide for people to try to learn it go check out the emulator server guides section its called "stepping into C++"
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. [Help] Lua boss script
    By Reflection in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 08-01-2008, 12:24 PM
  2. [HELP] LUA Boss Script
    By Babbaa in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 07-30-2008, 07:21 AM
  3. [Help] LUA boss script error.
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-09-2008, 08:23 PM
  4. [help] LUA boss script
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-08-2008, 07:11 PM
  5. [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
All times are GMT -5. The time now is 03:26 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