[LUA] Simple Boss script menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] Simple Boss script

    Heya!

    So I thought also start contributing something to you guys ... and girls?.

    Very Simple and customable Lua script for bosses or whatever. Just took some mins.

    All in RED do you need to edit.

    XXX is the name of the mob. Can be anything. (Recommed having the same name on all of them.)

    0000 is the NPC ID. Example = 17854. Must be same everywhere. (Search for ID at wowhead or such.)

    YYYY is the ID the Mob will transform into at 75% hp. Just like NPC ID. Must be same everywhere.(Search for ID at wowhead here also.)

    Here you go:
    Code:
    function XXX_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "In the name of Death, You will die!")
    end
    
    function XXX_FireBall(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(31620, pUnit:GetRandomPlayer(7)) 
    end
    
    function XXX_FireVolley(pUnit, Event) 
    pUnit:CastSpell(37109, pUnit:GetRandomPlayer(0)) 
    end
    
    function XXX_Transform(pUnit, Event) 
    if pUnit:GetHealthPct() < 75 then 
    pUnit:RemoveEvents(); 
    pUnit:FullCastSpell(0)
    pUnit:SetModel(YYYY)
    end 
    end
    
    function OnLeave_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "You're not prepared!") 
    end
    
    function OnDeath_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(11, 0, "You ...... How?") 
    end
    
    function KilledTarget_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Mhmm ... Death!") 
    end
    
    RegisterUnitEvent(0000, 1, "EnterCombat_OnCombat")
    RegisterUnitEvent(0000, 2, "OnLeave_OnLeaveCombat")
    RegisterUnitEvent(0000, 3, "KilledTarget_OnKilledTarget")
    RegisterUnitEvent(0000, 4, "OnDeath_OnDied")
    For those who doesn´t know how you use Lua's. Just put it in the ''scripts'' folder in your compile/server folder. And for those who doesn´t know how to even make a Lua file. Just copy this Lua code I made and paste it into a text document. Then edit the extension to LUA.

    Feel free to rep ... Since I could use some. :yuck:

    Thanks.


    Last edited by sammiboy; 09-22-2008 at 10:25 AM. Reason: .
    Also Knowned as Samloo


    [LUA] Simple Boss script
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Very customable +Rep

  3. #3
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks stoneharry.
    Also Knowned as Samloo


  4. #4
    mcclouder's Avatar Member
    Reputation
    3
    Join Date
    Jul 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice, could use this to alot of stuff! (wish I was better at lua scripting though)

    +rep !! thanks

  5. #5
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mcclouder ... But please .. when you say +rep, Then also rep me. (Click the +rep button ...)

    Some more feedback please.

    Oh and will release more and alot better Lua's in the very near future.
    Also Knowned as Samloo


  6. #6
    treeko11's Avatar Member
    Reputation
    11
    Join Date
    Jan 2008
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do not ask for Rep.

  7. #7
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by treeko11 View Post
    Do not ask for Rep.
    Hah .. I haven't, but since mcclouder said +rep. I just told him if you say +rep then also click the button. So stop being lame and read instead. -.-
    Also Knowned as Samloo


  8. #8
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I'm on Sammiboy's side here People are to strict about saying +Rep, geeze

  9. #9
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This seems familiar somehow....

    Then again most of the Boss LUA's are almost the same...

    +Rep for the effort

  10. #10
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Will perhaps post one more Lua today so I can get off the leecher status.
    Last edited by sammiboy; 09-24-2008 at 04:28 AM. Reason: ... No?
    Also Knowned as Samloo


  11. #11
    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)
    +Rep for your try
    *swosh no longer leacher*
    [/COLOR]

  12. #12
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yay! Thanks. Oh and Exacute .. I can alot better than this, hah. Made this in like 5 mins.
    Also Knowned as Samloo


  13. #13
    insaneblade87's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Runing into a Issue everything work's accept i get Tried to Call Invalid LUA Function EnterCombat_OnCombat From Ascent <Unit>

    for the spell part

    he say's the Msg's bout all

  14. #14
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't really understand what you are trying to say or what the problem is ... ^^
    Also Knowned as Samloo


  15. #15
    insaneblade87's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tried to Call Invalid LUA Function EnterCombat_OnCombat From Ascent <Unit>

    that run's when he trys to use the spells pop's up in arcemu world

    i have 100's others that work just your's doesent seem to

Page 1 of 2 12 LastLast

Similar Threads

  1. [2.4][LUA] The Boss Scripts!
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 30
    Last Post: 10-07-2008, 05:17 PM
  2. [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
  3. LUA Boss Script
    By Lindoz12 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-04-2008, 02:45 PM
  4. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  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 10:28 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