how to lua script! menu

User Tag List

Results 1 to 15 of 15
  1. #1
    runemaster's Avatar Banned
    Reputation
    25
    Join Date
    Dec 2007
    Posts
    291
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to lua script!

    hey guys time for me to cough up something else.....


    anyway here it is

    HOW TO SCRIPT VIA LUA!@!!!@!11

    I WILL FORMAT IT BASICALLY FILL IN THE BLANK TO MAKE IT EASIER.

    OK HERE WE GO

    FIRST AFTER FUNCTION always put the bosses name

    function bosses name_OnCombat(Unit, Event)

    next is how the guy says it , what form of speech 11 is sya 12 is yell and 13 is alert or something that no one uses......

    Unit:SendChatMessage(11, 0, "thing he says on combat")


    now, the bosses name, the name of the spell, the spell name can be anything TBH as long as you know what it is. then how many seconds till hee casts it, like 5 means every 5 seconds.
    now the last number means how many times he will cast it, put 1000 or something if u want him to keep doing it

    Unit:RegisterEvent("bosses name_spellname1", how many seconds till it casts, x ammount of times)

    same thing here

    Unit:RegisterEvent("bosses name_spellname2", how many seconds till it casts, 7)
    end

    again, same thing here except for the [Units,event thing]

    GetRandomPlayer(0)) means get any random player
    GetRandomPlayer(4)) means get any random player with mana
    GetRandomPlayer(5)) anyone with rage
    GetRandomPlayer(6)) anyone with energy
    GetRandomPlayer(7)) random non maintank

    also,
    FullCastSpellOnTarget part.

    FullCastSpellOnTarget casts a spell on a specific target!
    CastSpellOnTarget casts without a casting bar
    CastSpell is any AoE


    function bosses name_spellname1(pUnit, Event)
    pUnit:FullCastSpellOnTarget(spellID, pUnit:GetRandomPlayer(0))
    end

    function bosses name_spellname2(pUnit, Event)
    pUnit:CastSpell(spellID, pUnit:GetRandomPlayer(0))
    end

    this is simple, just fill in the blank and thing he says on death, when he kills you and when he enters combat.

    function bosses name_OnDied(Unit, Event)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "thing he says when dies")
    end

    function bosses name_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "thing he says when he kills a player")
    end

    RegisterUnitEvent(npc ID, 1, "bosses name_OnCombat")
    RegisterUnitEvent(npc ID, 3, "bosses name_OnKilledTarget")
    RegisterUnitEvent(npc ID, 4, "bosses name_OnDied")


    thats all for now guys, ^^ hopefully you learned a bit of the basics from me now!! hehe shoudl look like this when completed.

    Code:
    function bosses name_OnCombat(Unit, Event) 
    Unit:SendChatMessage(11, 0, "thing he says on combat")
    Unit:RegisterEvent("bosses name_spellname1", how many seconds till it casts, 7)
    Unit:RegisterEvent("bosses name_spellname2", how many seconds till it casts, 7)
    end
    
    function bosses name_spellname1(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(spellID, pUnit:GetRandomPlayer(0)) 
    end
    
    function bosses name_spellname2(pUnit, Event) 
    pUnit:CastSpell(spellID, pUnit:GetRandomPlayer(0)) 
    end
    
    
    
    function bosses name_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "thing he says when dies") 
    end
    
    function bosses name_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "thing he says when he kills a player") 
    end
    
    RegisterUnitEvent(npc ID, 1, "bosses name_OnCombat")
    
    RegisterUnitEvent(npc ID, 3, "bosses name_OnKilledTarget")
    RegisterUnitEvent(npc ID, 4, "bosses name_OnDied")

    how to lua script!
  2. #2
    Ollox's Avatar Member
    Reputation
    5
    Join Date
    Oct 2007
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very, very usefull thanks i'll +rep you tomorro because i rep a dude today lmao.
    Lua knowledge [||||||||||]

  3. #3
    runemaster's Avatar Banned
    Reputation
    25
    Join Date
    Dec 2007
    Posts
    291
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks ^^ i only want to help. maybe get some rep in, who knows^^ im tired of being nearly the only scripter on my server so i feel like teaching the basics to the people who decide to start one of their own.

    theres like a million guides how to make a server, get it off hamachi, signs, gameobjects, w/e

    only like 3 guides to scripting here though, which is the most useful TBH.


    thanks

    ~~runemaster

  4. #4
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most useful guide Ive found thank! +rep

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

    Thanks

    This guide has shown me so much, and i thank you greatly for helping me understand the world of scripting ..

  6. #6
    runemaster's Avatar Banned
    Reputation
    25
    Join Date
    Dec 2007
    Posts
    291
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    np man.


    feel free to tell others to read this! ^^

  7. #7
    joestyle2's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great Job!

    +Rep

  8. #8
    runemaster's Avatar Banned
    Reputation
    25
    Join Date
    Dec 2007
    Posts
    291
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TY mate. ^^ just wish more people would want help. oh well.....lol

  9. #9
    runemaster's Avatar Banned
    Reputation
    25
    Join Date
    Dec 2007
    Posts
    291
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lalalalalala also a bump

  10. #10
    Confucius's Avatar Panda of Worlds The Idiot

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1389
    Join Date
    Oct 2007
    Posts
    2,591
    Thanks G/R
    267/283
    Trade Feedback
    7 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work +rep (2x) if I can

  11. #11
    darkriderking's Avatar Active Member
    Reputation
    35
    Join Date
    Nov 2007
    Posts
    403
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +rep great guide

  12. #12
    darkmagishin's Avatar Active Member
    Reputation
    16
    Join Date
    May 2008
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do i make it stop between talking?

    like make it say

    "hello"

    then 20 seconds later, it says

    "good bye"

  13. #13
    hampe95's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi ppl am very new to scripting and private servers could u help me out how do i get Lua and how do i install it and some basic help plz i +rep you if i get the help i need:P

  14. #14
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For some reason my scripts won't load. I am using ArcEMU, and as far as I can tell there is no message in the console saying anything about it. I have placed all the files in the correct folder, and not even the original scripts are loaded, any idea why? +Rep if you can figure it out.



  15. #15
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please help me. :P



Similar Threads

  1. Replies: 1
    Last Post: 03-23-2008, 11:34 PM
  2. How to make lua scripted portals
    By *Alexz* in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 02-18-2008, 06:05 PM
  3. How to fix this LUA Script???
    By marcosgue in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-08-2008, 07:51 AM
  4. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
  5. How To LUA Script
    By Skuxta in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 12-13-2007, 04:24 AM
All times are GMT -5. The time now is 02: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