Lua Event? menu

Shout-Out

User Tag List

Thread: Lua Event?

Results 1 to 12 of 12
  1. #1
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Event?

    is it possible to make a certain phase for a boss that would last x number of seconds and then return tho the previous phase with lua?

    if so could you tell me the syntax and the lua command.

    if you can answer my question I will +RepX2

    Lua Event?
  2. #2
    Abstraction's Avatar Member
    Reputation
    32
    Join Date
    May 2008
    Posts
    472
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you could, im not so good with LUA, but it should be like something "return previous session" in LUA form.... something like that. :P

  3. #3
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that does not sound like anything I ever heard before and I script lua....

    still need help!

  4. #4
    Abstraction's Avatar Member
    Reputation
    32
    Join Date
    May 2008
    Posts
    472
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I was trying to help. :x

  5. #5
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it is alright.

    ps still need help.

  6. #6
    Abstraction's Avatar Member
    Reputation
    32
    Join Date
    May 2008
    Posts
    472
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WAIT I have an idea!

    Maybe after you do that 'certain phase' put the same thing you did before the 'certain phase' then gtg? So like...

    EX:
    First Phase
    'Certain Phase'
    First phase again.

  7. #7
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes but this is the part I really need.

    that would last x number of seconds
    I understand the other part.

  8. #8
    Abstraction's Avatar Member
    Reputation
    32
    Join Date
    May 2008
    Posts
    472
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah... damn okay, I cant get that one. =/

  9. #9
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    help!!!!!!!!!!!!!!!!!!!!!

  10. #10
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, this could work:

    The Boss should say "Phase1!" at the beginning...after 30 sec he went to Phase2 and say "Phase2!". After 7 sec he went again to Phase1 and so on^^

    Code:
    function BossPhase1(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("Boss_phase2", 30000, 0)
    pUnit:SendChatMessage(14, 0, "Phase 1!", 100, 1)
    end
    
    function Boss_phase2(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "Phase 2!", 100, 1)
    pUnit:RegisterEvent("BossPhase1", 7000, 0)
    end
    
    RegisterUnitEvent(YOURNPCID, 1, "BossPhase1")
    i didnt have a core atm, so try it out.

  11. #11
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol that could work but why dont we not spam with zeros, grats to you but to clear it up a little try this, plus stages dont need to be stated with messages you could just start the event^^ a spell might be sexy oo i have a sexy little one ^^

    Code:
    function Boss_OnCombat(pUnit,Event)
    target = pUnit:GetMainTank()
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("Boss_phase2", 30000, 1)
    target:CastSpell(1) -- you will like this one ^^
    end
    
    function Boss_phase2(pUnit,Event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "Phase 2!", 100, 1)
    pUnit:RegisterEvent("BossPhase1", 30000, 1)
    end
    
    RegisterUnitEvent(YOURNPCID, 1, "Boss_OnCombat")
    Other than that very sexy
    Last edited by Scubast3ve; 04-23-2009 at 11:42 AM.

  12. #12
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks both of you +Rep to both!

    cooldown sorry....

Similar Threads

  1. [Release] Lua Event - Treasure Hunting
    By stoneharry in forum WoW EMU General Releases
    Replies: 11
    Last Post: 06-22-2009, 01:13 PM
  2. [Contest Winner][AzolexX] Zombie LUA Event - Blizzlike as Possible
    By Hellgawd in forum WoW EMU General Releases
    Replies: 36
    Last Post: 02-26-2009, 07:36 AM
  3. [Question] Quest Trigger > Lua Event
    By Zudrik in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 02-06-2009, 10:59 AM
  4. [Release] Temple of the Lunar (not just a boss fight) [Lua++][Event]
    By stoneharry in forum WoW EMU General Releases
    Replies: 16
    Last Post: 10-27-2008, 10:08 AM
  5. [Release] Portal Lua Event
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 28
    Last Post: 02-04-2008, 09:46 AM
All times are GMT -5. The time now is 01:37 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