[Guide]More LUA ascent 2.3 scripts menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    zerohero's Avatar Member
    Reputation
    3
    Join Date
    May 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what are some options for : \/

    Step 3: function Name_Event (pUnit, Event) = When it happend i.e. OnCombat(it also doesnt matter what you put here like above)

    Oher than oncombat, its there on on 50% hp?

    [Guide]More LUA ascent 2.3 scripts
  2. #17
    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)
    what is before the parentheses doesnt matter, your just naming the function, but try to not have spaces


  3. #18
    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)
    heres what i want to do i need a script like the spawn one when one dies but only if one iss still alive

    ill make it easy on you ill youse names

    if spider dies spawn spider a only if maker a is alive is there a way to do that?

  4. #19
    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)
    wait what do you mean, like spawn spider2 when spider1 dies, but only if the spider1 is alive? thats kinda redundant isnt it?


  5. #20
    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)
    spawn spider1 when spider1 dies only if bug1 is alive

    (im using it as a machine that makes the spiders)

  6. #21
    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)
    ah I see, let me think


  7. #22
    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)
    ok, i think i got it:

    Code:
    function spiderSpawn(unit)
          x = unit:GetX()
          y = unit:GetY()
          z = unit:GetZ()
          o = unit:GetO()
    
          unit:SpawnCreature(spider ID,x,y,z,o,faction,milliseconds)
    end
    
    function healthCheck(unit)
        hp = unit:GetHealthPct()
    end
    
    function spiderMain(unit)
         unit:RegisterEvent("healthCheck",1000,0)
         
         while hp > 1 do
               unit:RegisterEvent("spiderSpawn",10000,1)
         end
    end
    RegisterUnitEvent(Bug ID,1,"spiderMain")


  8. #23
    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)
    thank you so much i +rep now i can make my last quest on t-9

  9. #24
    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)
    np, tell if it works or not


  10. #25
    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)
    ok so its not working for some reason so i ditched it and i came back to ask for help because im now making abetter instance can you please highlight in red what i should change?

  11. #26
    Zombienation's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, I've recently started scripting and I'm making a boss fight and he spawns elementals who after 3 mins are going to "self destruct" and I was wondering if there was a script that would instantly kill the elemental after it casts the spell. If anyone out there could possibly help me, that would be awesome! Thank you!

  12. #27
    Sarios's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the script i have from the "BT raid" i think is all in C++ and is created by a guy called "M4ksiu" and is only the Illidan Figth lol i tested it and works fine, i was wondering iff is able to change the phases in any way...like the "text" that Illidan says and the sounds(the time and the moments) he spawns to mutch sometimes

  13. #28
    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)
    @Zombienation: You can set the dspawn time of the elementals to about .1 second after they cast the spell


Page 2 of 2 FirstFirst 12

Similar Threads

  1. [GUIDE] More Advanced Lua
    By Scubast3ve in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 06-18-2012, 11:29 PM
  2. [Guide] Another LUA Scripting Guide
    By Bapes in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 05-08-2008, 05:01 PM
  3. [Guide] Explaination of Ascent Files: Ascent.conf
    By [ Prototype ] in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 12-10-2007, 06:34 PM
  4. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  5. [Guide] Gastricpenguin's Ascent Repack
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 39
    Last Post: 11-14-2007, 03:03 PM
All times are GMT -5. The time now is 10:59 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