LuA Script Template! HighLighTed included menu

These ads disappear when you log in.

Results 1 to 9 of 9
  1. #1
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    LuA Script Template! HighLighTed included

    Intro ::

    This is just a quick template on how to make a lua boss script which
    uses spells of your own choice in a certain time. Does not have phases
    This guide is just for lazy people who does not wish to read Text of walls from
    LuA guides.





    ___________________________________________________________________________



    function Boss_ChaosBlast(pUnit, Event) Ex. Bossname_spellname no name!
    pUnit:FullCastSpellOnTarget(37675, target) The number is the spell id, you put in
    pUnit:SendChatMessage(12, 0, "Feel the Chaos!") What the boss says when he casts the spell.
    end function Boss_ShadowBurst(pUnit, Event)
    pUnit:CastSpell(34436)
    pUnit:SendChatMessage(12, 0, "Hmm, I can feel the power!") <same as above
    end
    function Boss_Flamebreak(pUnit, Event)
    pUnit:CastSpell(16785)
    pUnit:SendChatMessage(12, 0, "Don't run away from me!") <same as above
    end
    function Boss_DarkBarrage(pUnit, Event)
    local plr = pUnit:GetMainTank()
    if (plr ~= nil) then
    pUnit:CastSpellOnTarget(40585, plr) <same as above
    end
    end
    function Boss_VileBeam(pUnit, Event)
    local plr = pUnit:GetMainTank()
    if (plr ~= nil) then
    pUnit:FullCastSpellOnTarget(40860, plr) <same as above
    end
    end
    function Engar_OnEnterCombat(pUnit, Event) <-enter boss name in red.
    pUnit:SendChatMessage(12, 0, "I am Legend's Top Offcier, you think you will have a chance?")
    pUnit:RegisterEvent("Boss_ChaosBlast",22000, 0)
    pUnit:RegisterEvent("Boss_VileBeam",20000, 0)
    pUnit:RegisterEvent("Boss_ShadowBurst",10000, 0)
    pUnit:RegisterEvent("Boss_Flamebreak",15000, 0)
    pUnit:RegisterEvent("Boss_DarkBarrage",19000, 0) <the 19000 etc is when does he cast it, ex. 1000 = 1 sec
    end
    function Engar_OnLeaveCombat(pUnit, Event)
    pUnit:RemoveEvents()
    end
    functionEngar_KilledTarget(pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Hahaha, fools, Engar loses to no one!") <-what he say when he kill player
    pUnit:RemoveEvents()
    end
    function Engar_OnDied(pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Legend . . . will . . . not be . . . defeated . . .") <-what he say when dead.
    pUnit:RemoveEvents()
    end
    RegisterUnitEvent(444010, 1, "Engar_OnEnterCombat")
    RegisterUnitEvent(444010, 2, "Engar_OnLeaveCombat")
    RegisterUnitEvent(444010, 3, "Engar_OnKilledTarget")
    RegisterUnitEvent(444010, 4, "Engar_onDied")



    __________________________________________________________________________
    yellow = just example and what each function do. so dont put them in the script.

    afterwards, save it in notepad, save it as BOSS_name.lua
    and put it in your scripts folder in your ascent folder.





    I kinda rushed through this teaching one of my friend.
    Engar is just a example boss.
    Last edited by Strupantwn; 06-24-2008 at 02:20 AM.

    These ads disappear when you log in.

  2. #2
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    again with the lua guide / templates ..... am i supposed to woot? well at least your not leaching i guess.

  3. #3
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    All I found was one template for LUA in this whole entire forum. Just though that the
    Lazy guys would want to use Templates instead of reading hours and hours learning
    LuA from your guide just to make one boss.

    Like I said, this is for lazy people who does not like text of walls.
    and the other Template I found was kinda bad and had lots of errors with
    [color/] added into it by accident.

    I am not saying that your guide sucks, but instead I think your guide is amazing.
    I am just saying that most people don't like reading text of walls.

  4. #4
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Ahh well yeah thats a good point sorry about the flame im half dead atm due to overdoing it on devloping for people!

  5. #5
    technique!'s Avatar Private
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Cheers! There's some great stuff. I haven't taken anytime to learn LUA yet :/

    thanks,
    technique!

  6. #6
    Skype's Avatar Master Sergeant
    Reputation
    133
    Join Date
    Dec 2007
    Posts
    116
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    An interesting Tactic there, But i think if people wanted to learn LUA they wont do it in just one glance. If someone wants to learn LUA they need to be seriosu.
    That template may really only help a few people that can learn like that, the rest of us cant possibly learn LUA on just a template.
    =S

    Also runiker was a bit angry because he posted a LUA guide himself a while back, and it was a good one, only that this site has a tendancy to swollow up any guide weather good or bad and no one will ever remember, so its kinda a slap in the face for him to have another guide out there when his really was a wall ot text with effort behind it.
    Same thing with sectorSeven's guide.
    I whould be ticked off if someone posted a skimpier guide to GMing while mine is floating around here somewhere.

    xD

    If you can recreatre a LUA guide that tops this one you have my rep cookie =D
    http://www.mmowned.com/forums/ascent...lua-101-a.html
    Or this one
    http://www.mmowned.com/forums/emulat...-commands.html
    I have a knack for knowing where guides are hiding in MMOwned =P

    Like i said there is a reason lazy people dont know LUA =P
    Last edited by Skype; 07-24-2008 at 04:20 PM.


  7. #7
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Alright, let me tell you how much people you can find that do not understand nothing of
    those LuA Guides even though they are very detailed and a lot of effort, but some
    (Lazy guys) would not understand and will not be able to know where to put each
    function and line etc. If his angry then pretty much everybody in this whole forum is
    also, like you just linked, Sector7 made a LuA guide which provided very detailed of
    LuA and then Rudik made another LuA guide for LuA, I don't see why I can't put
    this here.

    Also, I am not doing this for ReP, I was just giing a template to aother person on AiM so I
    though I would'e just drop one down here helping the leechers easier with a template
    which takes them about 3 min to make a quick and easy boss script.
    If Rudik made his guide just for ReP then I have nothing to do with it, I don't see why
    I can't POST something easier to follow real quick even though it's just a template to
    help leechers with the scripting. If his angry about me posting this here because
    he does not want to waste his effort on his guide for ReP then I have no power over that.

    If people really want to read a DETAILED guide on LuA, I am SURE they will click on
    Rudiks LuA Guide because his title explains it well that it's a text of wall.

    If people really don't want to read that much and is in a hurry kind of guy, then
    he will read MY guide that saids TEMPLATE in the title.

  8. #8
    mager1794's Avatar Lieutenant Commander
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Like i said there is a reason lazy people dont know LUA =P
    that is friggen offensive im lazy as crap and i know LUA get oyur facts strait lolol : )
    Lunar Gaming - Reaching For The Stars

  9. #9
    Rudik's Avatar Private
    Reputation
    21
    Join Date
    Jun 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    Uhh

    Why is everyone saying my name, i did something?

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
  3. Lua Scripts!
    By danis in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 12-15-2007, 03:16 PM
  4. How To LUA Script
    By Skuxta in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 12-13-2007, 04:24 AM
  5. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
All times are GMT -5. The time now is 11:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search