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

Shout-Out

User Tag List

Page 3 of 7 FirstFirst 1234567 LastLast
Results 31 to 45 of 94
  1. #31
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for condor:

    you make 2 seperate functions with the same name and you could also shorten it, you should make it look like this:
    Code:
    function Guard_Entercombat (pUnit, Event)
        pUnit:SendChatMessage (12, 0, "You fool ! Leave this place imidiatly !")
    end
    RegisterUnitEvent(858742,1, "Guard_Entercombat")
    RegisterUnitEvent(858743,1, "Guard_Entercombat")
     
    function Guard_Enterrange (pUnit, Event)
        pUnit:SendChatMessage (11, 0, "Hi there.")
    end
    RegisterUnitEvent(858742, 7,"Guard_Enterrange")
    RegisterUnitEvent(858743, 7,"Guard_Enterrange")
    And the reason why it wouldnt say anything was you have to use 11 for monster_say and 12 for monester_yell. And for 10 for enter combat, that doesnt work for words, use 7 for on gossip.
    Last edited by Pragma; 12-24-2007 at 04:21 PM.


    [Guide] Lua Scripting Guide is here [Updating]
  2. #32
    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)
    still doesnt work :s

  3. #33
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Erm What do i do if i dont have a scripts folder? I have a scripts_bin

  4. #34
    umandez's Avatar Member
    Reputation
    6
    Join Date
    May 2007
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you just add a folder called scripts

  5. #35
    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)
    Originally Posted by umandez View Post
    you just add a folder called scripts
    That doesn't seem to work either bro :P.


  6. #36
    umandez's Avatar Member
    Reputation
    6
    Join Date
    May 2007
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok what core are u useing these .lua script will only work with Ascent cores above Rev 2400 so make sure u have that

  7. #37
    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)
    Yeah, Ebon, What Revision and Repack you using?

  8. #38
    umandez's Avatar Member
    Reputation
    6
    Join Date
    May 2007
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    + also u need to make sure u have got the .lua engine enabled there is a guide around on the forums

  9. #39
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why is this: function ChkaliostheCorrupted_Shadowfury (pUnit, Event)
    pUnit:CastSpell (30414)
    end
    RegisterUnitEvent (1000000, 1, "ChkaliostheCorrupted_Shadowfury")

    not working? and also function ChkaliostheCorrupted_SeedofCorruption (pUnit, Event)
    pUnit:CastSpell (27243)
    end
    RegisterUnitEvent (1000000, 10, "ChkaliostheCorrupted_SeedofCorruption") is not working.. any idea why?

  10. #40
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to Arugos:
    Well it should work except for the second one, because where you put 10 it means when the person enters the range at which tpoint ascent loads the spawned NPC it doesnt mean he casts it when the player comes in 10 yards


  11. #41
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk ty but do you know how to make the npc cast the spell from script 1 , more than 1 time? like every 15 seconds and also at a random target ?

  12. #42
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well an easier way to do that is go inside your database and go into aiagents and do it that way, just look at the column names and itll come to ya, when you get to spell types and stuff i cant help ya cause i havent memorized them


  13. #43
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh and also with that script my mob is casting the spell on himself , what if i want a damaging spell ?

  14. #44
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ive had that happen too, make the script look like this:

    function ChkaliostheCorrupted_Shadowfury (pUnit, Event)
    tarGet = pUnit:GetClosestPlayer()
    pUnit:CastSpellOnTarget (30414,tarGet)
    end
    RegisterUnitEvent (1000000, 1, "ChkaliostheCorrupted_Shadowfury")


  15. #45
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty very much dude

Page 3 of 7 FirstFirst 1234567 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 11:29 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search