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

User Tag List

Page 2 of 7 FirstFirst 123456 ... LastLast
Results 16 to 30 of 94
  1. #16
    lazzer's Avatar Member
    Reputation
    1
    Join Date
    Dec 2006
    Posts
    25
    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]

    hmmm... i have a problem.. ive made a simple Lua scripts for Shade of Aran "boss in kara" making him cast fireball rank 14

    Code:
    function ShadeofAran_Fireball (pUnit, Event)
     pUnit:CastSpell (38692)
    end  
    RegisterUnitEvent (16524, 4, "ShadeofAran_Fireball")
    my ascent core says
    Code:
    N LuaEngineMgr : Spawning 1 Lua Engines...
    N LuaEngine : Loading scripts...
    N LuaEngine : shadeofaran.lua...
    and then goes on, but in-game Aran aint casting? can anyone tell me whats wrong? xD

    ~Lazzer~

    [Guide] Lua Scripting Guide is here [Updating]
  2. #17
    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]

    The Spaces between it is wrong, try make it perfect like the one in main post

  3. #18
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    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]

    lua scripts work on newer ascent revisions and gm scripts don´t :P

  4. #19
    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]

    Originally Posted by lazzer View Post
    hmmm... i have a problem.. ive made a simple Lua scripts for Shade of Aran "boss in kara" making him cast fireball rank 14

    Code:
    function ShadeofAran_Fireball (pUnit, Event)
     pUnit:CastSpell (38692)
    end  
    RegisterUnitEvent (16524, 4, "ShadeofAran_Fireball")
    ~Lazzer~

    Lazzer put this into a note pad and call it
    what every with a .lua at the end


    Code:
    function ShadeofAran_Fireball (pUnit, Event)
              pUnit:CastSpell (38692)
    end  
    RegisterUnitEvent (16524, 4, "ShadeofAran_Fireball")

  5. #20
    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]

    Originally Posted by nether drake View Post
    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
    Well... .lua work's... .gm doesn't. And Shan'do = Lore O.o. It's not bad. Would be great with Italic's too!


  6. #21
    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]

    Indeed it would Ebon, but im staying with Illidan

  7. #22
    Ballwinkle's Avatar Contributor Authenticator enabled
    Reputation
    124
    Join Date
    Mar 2007
    Posts
    662
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

    how do i make it so when i click on an object i port somwere?

  8. #23
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm Could you make a script when it gets to a certain Percentage of HP and it spawns Monsters?

    Just Asking cause i want to do that..that would be sweet



  9. #24
    Bloop's Avatar Member
    Reputation
    1
    Join Date
    Sep 2006
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Illidan1 View Post
    Lazzer put this into a note pad and call it
    what every with a .lua at the end

    Code:
    function ShadeofAran_Fireball (pUnit, Event)
              pUnit:CastSpell (38692)
    end  
    RegisterUnitEvent (16524, 4, "ShadeofAran_Fireball")
    Wouldnt this only cast the spell when he dies?

  10. #25
    Condor's Avatar Contributor
    Reputation
    96
    Join Date
    May 2007
    Posts
    184
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a script to make an npc do an emote ? i want some npc's that dance...

  11. #26
    Tom_2001's Avatar Member
    Reputation
    177
    Join Date
    Oct 2007
    Posts
    609
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet man this is really good but i don't think im going to use it. oh yeah, don't change your name :P it will confuse people :P

  12. #27
    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)
    Conder, in the Table "creature_spawns"
    Is a format called "emote_state", change that to
    One of the Numbers in this list

    List thanks to Gastricpenguin


    ONESHOT = Only happens once
    STATE = Continuous



    Code:
    0 : ONESHOT_NONE
    1 : ONESHOT_TALK(DNR)
    2 : ONESHOT_BOW
    3 : ONESHOT_WAVE(DNR)
    4 : ONESHOT_CHEER(DNR)
    5 : ONESHOT_EXCLAMATION(DNR)
    6 : ONESHOT_QUESTION
    7 : ONESHOT_EAT
    10 : STATE_DANCE
    11 : ONESHOT_LAUGH
    12 : STATE_SLEEP
    13 : STATE_SIT
    14 : ONESHOT_RUDE(DNR)
    15 : ONESHOT_ROAR(DNR)
    16 : ONESHOT_KNEEL
    17 : ONESHOT_KISS
    18 : ONESHOT_CRY
    19 : ONESHOT_CHICKEN
    20 : ONESHOT_BEG
    21 : ONESHOT_APPLAUD
    22 : ONESHOT_SHOUT(DNR)
    23 : ONESHOT_FLEX
    24 : ONESHOT_SHY(DNR)
    25 : ONESHOT_POINT(DNR)
    26 : STATE_STAND
    27 : STATE_READYUNARMED
    28 : STATE_WORK
    29 : STATE_POINT(DNR)
    30 : STATE_NONE
    33 : ONESHOT_WOUND
    34 : ONESHOT_WOUNDCRITICAL
    35 : ONESHOT_ATTACKUNARMED
    36 : ONESHOT_ATTACK1H
    37 : ONESHOT_ATTACK2HTIGHT
    38 : ONESHOT_ATTACK2HLOOSE
    39 : ONESHOT_PARRYUNARMED
    43 : ONESHOT_PARRYSHIELD
    44 : ONESHOT_READYUNARMED
    45 : ONESHOT_READY1H
    48 : ONESHOT_READYBOW
    50 : ONESHOT_SPELLPRECAST
    51 : ONESHOT_SPELLCAST
    53 : ONESHOT_BATTLEROAR
    54 : ONESHOT_SPECIALATTACK1H
    60 : ONESHOT_KICK
    61 : ONESHOT_ATTACKTHROWN
    64 : STATE_STUN
    65 : STATE_DEAD
    66 : ONESHOT_SALUTE
    68 : STATE_KNEEL
    69 : STATE_USESTANDING
    70 : ONESHOT_WAVE_NOSHEATHE
    71 : ONESHOT_CHEER_NOSHEATHE
    92 : ONESHOT_EAT_NOSHEATHE
    93 : STATE_STUN_NOSHEATHE
    94 : ONESHOT_DANCE
    113 : ONESHOT_SALUTE_NOSHEATH
    133 : STATE_USESTANDING_NOSHEATHE
    153 : ONESHOT_LAUGH_NOSHEATHE
    173 : STATE_WORK_NOSHEATHE
    193 : STATE_SPELLPRECAST
    213 : ONESHOT_READYRIFLE
    214 : STATE_READYRIFLE
    233 : STATE_WORK_NOSHEATHE_MINING
    234 : STATE_WORK_NOSHEATHE_CHOPWOOD
    253 : STATE_APPLAUD
    254 : ONESHOT_LIFTOFF
    273 : ONESHOT_YES(DNR)
    274 : ONESHOT_NO(DNR)
    275 : ONESHOT_TRAIN(DNR)
    293 : ONESHOT_LAND
    313 : STATE_AT_EASE
    333 : STATE_READY1H
    353 : STATE_SPELLKNEELSTART
    373 : STATE_SUBMERGED
    374 : ONESHOT_SUBMERGE
    375 : STATE_READY2H
    376 : STATE_READYBOW
    377 : ONESHOT_MOUNTSPECIAL
    378 : STATE_TALK
    379 : STATE_FISHING
    380 : ONESHOT_FISHING
    381 : ONESHOT_LOOT
    382 : STATE_WHIRLWIND
    383 : STATE_DROWNED
    384 : STATE_HOLD_BOW
    385 : STATE_HOLD_RIFLE
    386 : STATE_HOLD_THROWN
    387 : ONESHOT_DROWN
    388 : ONESHOT_STOMP
    389 : ONESHOT_ATTACKOFF
    390 : ONESHOT_ATTACKOFFPIERCE
    391 : STATE_ROAR
    392 : STATE_LAUGH
    393 : ONESHOT_CREATURE_SPECIAL
    Expanded list for 2.3:

    Code:
    394 : ONESHOT_JUMP_LAND_RUN
    395 : ONESHOT_JUMP_END
    396 : ONESHOT_TALK_NOSHEATHE
    397 : ONESHOT_POINT_NOSHEATHE
    398 : STATE_CANNIBALIZE
    399 : ONESHOT_JUMP_START
    400 : STATE_DANCE_SPECIAL
    401 : ONESHOT_DANCE_SPECIAL
    402 : ONESHOT_CUSTOMSPELL01
    403 : ONESHOT_CUSTOMSPELL02
    404 : ONESHOT_CUSTOMSPELL03
    405 : ONESHOT_CUSTOMSPELL04
    406 : ONESHOT_CUSTOMSPELL05
    407 : ONESHOT_CUSTOMSPELL06
    408 : ONESHOT_CUSTOMSPELL07
    409 : ONESHOT_CUSTOMSPELL08
    410 : ONESHOT_CUSTOMSPELL09
    411 : ONESHOT_CUSTOMSPELL10
    412 : STATE_EXCLAIM
    415 : STATE_SIT_CHAIR_MEDIUM
    422 : STATE_SPELLEFFECT_HOLD

  13. #28
    Intel's Avatar Member
    Reputation
    7
    Join Date
    Dec 2007
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahh cool man when will u make more

  14. #29
    Anetheiros's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great guide

  15. #30
    Condor's Avatar Contributor
    Reputation
    96
    Join Date
    May 2007
    Posts
    184
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured the emote part out, but now i have the feeling i'm the onlyone where the lua scripts dont work :s

    function Guard_Entercombat (pUnit, Event)
    pUnit:SendChatMessage (5, 0, "You fool ! Leave this place imidiatly !")
    end
    RegisterUnitEvent (858742, 1, "Guard_Entercombat")

    function Guard_Entercombat (pUnit, Event)
    pUnit:SendChatMessage (5, 0, "You fool ! Leave this place imidiatly !")
    end
    RegisterUnitEvent (858743, 1, "Guard_Entercombat")

    function Guard_Enterrange (pUnit, Event)
    pUnit:SendChatMessage (0, 0, "Hi there.")
    end
    RegisterUnitEvent (858742, 10, "Guard_Enterrange")

    function Guard_Enterrange (pUnit, Event)
    pUnit:SendChatMessage (0, 0, "Hi there.")
    end
    RegisterUnitEvent (858743, 10, "Guard_Enterrange")
    Saved as UNIT - Northshire - Guard_talk.lua and it doesnt do anything :s
    Last edited by Condor; 12-15-2007 at 02:32 PM.

Page 2 of 7 FirstFirst 123456 ... 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 05:32 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