[Guide] Lua Scripting Guide is here [Updating] menu

User Tag List

Page 1 of 7 12345 ... LastLast
Results 1 to 15 of 94
  1. #1
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Lua Scripting Guide is here [Updating]

    Hello people, i am learning how to make some .lua Scripts, here is some


    -== How to make a Npc Cast a spell ==-



    Ok first here is a Template to use for it \/

    Everything in red u need to change
    How to use template look below

    Code:
    function NpcName_Event (pUnit, Event)
    	pUnit:CastSpell (Spell ID)
    end  
    RegisterUnitEvent (Npc Spawn ID, 1, "NpcName_Event")
    Step 1 : All the things in red is the things u need to put in your self

    Step 2 : Open a note Pad or Txt Document and Copy and Paste that Template into it and then start modifying it with Steps below

    Step 3 : function NpcName_Event (pUnit, Event) = The Name of your Npc

    Step 4 : function NpcName_Event (pUnit, Event) = The event, meaning like the name of the spell Etc

    Step 5 : pUnit:CastSpell (Spell ID) = The Id of the Spell that you wont your Npc To cast

    Step 6 : RegisterUnitEvent (Npc Spawn ID, 4, "NpcName_Event") = The Spawn ID of your Npc that you wont to cast the Spell

    Step 7 : RegisterUnitEvent (Npc Spawn ID, 4, "NpcName_Event") = The same ass "Step 3" and "Step 4"

    And now Naming it

    Naming it is the hard part well kinda not really. Now when your done Modifying it go to File > Save as > and put it as all Files and call it like (If you are doing it for a mob called Slayer i would call it Slayer.lua) So like in "Step 3" The Name of your Npc just name it That and put a .lua at the end of it so it will be like " Slayer.lua "

    Saving It : save it to your Desktop or some were u know were it is

    Step 10 : Now were u Have to put it u must put it in your Server's Ascent scripts Folder i am using Ac web so it would be in the folder \/

    C:\AC Web Ultimate Repack\Ascent\scripts

    If u don't have a scripts folder make 1 and just put that Notepad in that Folder and then in your Ascent cmd box type
    reloadscripts or in game type .reloadscripts or restart your server

    And then your Done


    -== Make a npc Talk when in Enter Combat Etc ==-


    Ok first here is a Template to use for it \/

    Everything in red u need to change
    How to use template look below


    Code:
    function NpcName_Event (pUnit, Event)
    	pUnit:SendChatMessage (Type, Language, "What you wont your Npc to say")
    end
    RegisterUnitEvent (Npc Spawn ID, When, "Name_Event")
    Step 1 : All the things in red is the things u need to put in your self

    Step 2 : Open a note Pad or Txt Document and Copy and Paste that Template into it and then start modifying it with Steps below

    Step 3 : function NpcName_Event (pUnit, Event) = the Name of the Npc that you wont to talk on the Event

    Step 4 : function NpcName_Event (pUnit, Event) = the event of when the Npc will say what you wont it to say (Like Entercombat, Leavecombat, die, Etc)

    Step 5 : pUnit:SendChatMessage (Type, Language, "What you wont your Npc to say") = the Type of text \/

    Code:
    -1 = ADDON
     0 = SAY
     1 = PARTY
     2 = RAID
     3 = GUILD
     4 = OFFICER
     5 = YELL
     6 = WHISPER
     7 = WHISPER_INFORM
     8 = EMOTE
     9 = TEXT_EMOTE
    10 = SYSTEM
    11 = MONSTER_SAY
    12 = MONSTER_YELL
    13 = MONSTER_WHISPER
    14 = CHANNEL
    16 = CHANNEL_JOIN
    17 = CHANNEL_LEAVE
    18 = CHANNEL_LIST
    19 = CHANNEL_NOTICE
    20 = CHANNEL_NOTICE_USER
    21 = AFK
    22 = DND
    23 = COMBAT_LOG
    24 = IGNORED
    25 = SKILL
    32 = LOOT
    83 = BATTLEGROUND_EVENT
    87 = RAIDLEADER
    88 = RAIDWARNING
    Step 6 : pUnit:SendChatMessage (Type, Language, "What you wont your Npc to say") = the Type of Language \/

    Code:
     0 = UNIVERSAL
     1 = ORCISH
     2 = DARNASSIAN
     3 = TAURAHE
     6 = DWARVISH
     7 = COMMON
     8 = DEMONIC
     9 = TITAN
    10 = THELASSIAN
    11 = DRACONIC
    12 = KALIMAG
    13 = GNOMISH
    14 = TROLL
    33 = GUTTERSPEAK
    35 = DRAENEI
    Step 7 : pUnit:SendChatMessage (Type, Language, "What you wont your Npc to say") = The words that you wont your Npc to say when it enter combat Leaves combat Dies Etc

    Step 8 : RegisterUnitEvent (Npc Spawn ID, When, "Name_Event") = The Spawn id of the Npc that you wont these words to come otu of

    Step 9 : RegisterUnitEvent (Npc Spawn ID, When, "Name_Event") = When the Npc will say this Text \/
    Code:
    
    1 = Enter Combat
    2 = Leave Combat
    3 = Killed Target
    4 = Died
    5 = AI Tick
    6 = Spawn
    7 = Gossip Talk
    8 = Reach Waypoint
    9 = On Leave Limbo
    10 = Player Enters Range
    
    Step 10 : RegisterUnitEvent (Npc Spawn ID, When, "Name_Event") = The name of the Npc like in "Step 3"

    Step 11 : RegisterUnitEvent (Npc Spawn ID, When, "Name_Event") = the Event of the Npc when it talks, it must be the same as "Step 4"


    And now Naming it

    Naming it is the hard part well kinda not really. Now when your done Modifying it go to File > Save as > and put it as all Files and call it like (If you are doing it for a mob called Slayer i would call it Slayer.lua) So like in "Step 3" The Name of your Npc just name it That and put a .lua at the end of it so it will be like " Slayer.lua "


    Saving It : save it to your Desktop or some were u know were it is

    Step 12 : Now were u Have to put it u must put it in your Server's Ascent scripts Folder i am using Ac web so it would be in the folder \/

    C:\AC Web Ultimate Repack\Ascent\scripts

    If u don't have a scripts folder make 1 and just put that Notepad in that Folder and then in your Ascent cmd box type
    reloadscripts or in game type .reloadscripts or restart your server

    And then your Done



    -==Make a npc change size when every==--



    Ok first here is a Template to use for it \/

    Everything in red u need to change
    How to use template look below


    Code:
    function WhenScale(pUnit, Event)
        pUnit:SetScale(Size);
    end
    RegisterUnitEvent(Npc Spawn ID,When,"WhenScale")
    Step 1 : All the things in red is the things u need to put in your self

    Step 2 : Open a note Pad or Txt Document and Copy and Paste that Template into it and then start modifying it with Steps below

    Step 3 : function WhenScale(pUnit, Event) = When the Npc will Change Size (So if it was oncombat, i would put there "OnCombatScale" Etc


    Step 4 : pUnit:SetScale(Size); = The Size of your Npc will be
    When he gets to the Stage ( Chose from 0.1 - 200, any high might crash Server)


    Step 5 : RegisterUnitEvent(Npc Spawn ID,When,"WhenScale") = The Spawn Id of the Npc that you wont to grow

    Step 6 : RegisterUnitEvent(Npc Spawn ID,When,"WhenScale") = When they Npc will grow chose one from below \/

    Code:
    
    1 = Enter Combat
    2 = Leave Combat
    3 = Killed Target
    4 = Died
    5 = AI Tick
    6 = Spawn
    7 = Gossip Talk
    8 = Reach Waypoint
    9 = On Leave Limbo
    10 = Player Enters Range
    
    Step 7 : RegisterUnitEvent(Npc Spawn ID,When,"WhenScale") = When the Npc will Change Size (So if it was oncombat, i would put there "OnCombatScale" Etc The same ass what you put in "Step 3"



    And now Naming it

    Naming it is the hard part well kinda not really. Now when your done Modifying it go to File > Save as > and put it as all Files and call it like (If you are doing it for a mob called Slayer i would call it Slayer.lua) So like in "Step 3" The Name of your Npc just name it That and put a .lua at the end of it so it will be like " Slayer.lua "


    Saving It : save it to your Desktop or some were u know were it is

    Step 8 : Now were u Have to put it u must put it in your Server's Ascent scripts Folder i am using Ac web so it would be in the folder \/

    C:\AC Web Ultimate Repack\Ascent\scripts

    If u don't have a scripts folder make 1 and just put that Notepad in that Folder and then in your Ascent cmd box type
    reloadscripts or in game type .reloadscripts or restart your server

    And then your Done




    This was all done by me don't take it any Were else unless you ask

    Also this guide will be updata sooner or later, when i get more info
    Last edited by Illidan1; 03-01-2008 at 06:13 AM.

    [Guide] Lua Scripting Guide is here [Updating]
  2. #2
    The Kingofbeast's Avatar Active Member
    Reputation
    38
    Join Date
    Oct 2007
    Posts
    306
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    NICE MAN! I like that I'ma put it into my server

  3. #3
    777devil777's Avatar Member
    Reputation
    66
    Join Date
    Sep 2007
    Posts
    396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Aw mi gawd Illidin changed his avatar and siggu... Inc name change.

    On topic, very nice.

    "I am a hacker, and this is my manifesto. You may stop this individual, but you can't stop us all... after all, we're all alike."

  4. #4
    EatUrBrains's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2007
    Posts
    504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Wo0T Nice Guide Ill try it out

  5. #5
    Dee2001's Avatar Member
    Reputation
    8
    Join Date
    Aug 2007
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Nice
    Keep it up

  6. #6
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Thanks guys, and yeah i might get a name changed to Shan'do

  7. #7
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    this is the sex and dont name change :O i will 4get who u are :P
    If you need me you have my skype, if you don't have my skype then you don't need me.

  8. #8
    nether drake's Avatar Member
    Reputation
    13
    Join Date
    Apr 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    your old guide about scripting is easier....
    I have 38 Title do you have more...?

  9. #9
    C.C.'s Avatar Contributor
    Reputation
    101
    Join Date
    May 2007
    Posts
    214
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Nice job Illidan1 +Rep

    -Richmen6

  10. #10
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Yes it i nether drake, but they are GM script's not .lua, these are for the new Revisions
    Because The don't support. gm Files any more, they only support. .lua files

    And 2dgreen, ask to a Admin to cancel my Name change im of to bed

  11. #11
    Ebon's Avatar Contributor
    Reputation
    218
    Join Date
    Sep 2007
    Posts
    604
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Off-Topic, but you want a name change to Shan'do... yay for lore, by the way, nice guide .


  12. #12
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    lol yeah Shan'do = Honored Teacher
    Thanks for the Replays

    Btw this is my 1000 post


  13. #13
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    Updated, added the following \/


    -==Make a npc change size when every==--

  14. #14
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    man i love your work i was wondering if i could put some it in my webpage to help out gms on how to run a server? credit will be given of corse

  15. #15
    nether drake's Avatar Member
    Reputation
    13
    Join Date
    Apr 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Guide] Lua Scripting Guide is here [Updating]

    what is the diffrent between lua scripts and gm scripts?

    btw , Shan'do looks old and chinese :P choose a name more better than shan'do
    I have 38 Title do you have more...?

Page 1 of 7 12345 ... LastLast

Similar Threads

  1. [Guide]Lua Scripts
    By Jgro1413 in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 06-21-2008, 09:53 PM
  2. Lua Scripting Guide
    By [Shon3m] in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 06-16-2008, 02:03 PM
  3. [Guide] Another LUA Scripting Guide
    By Bapes in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 05-08-2008, 05:01 PM
  4. LuA SCRIPTING (guide)
    By Dee2001 in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 03-05-2008, 11:43 AM
  5. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
All times are GMT -5. The time now is 07:12 AM. 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