[lua] simple but dont work -.- menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [lua] simple but dont work -.-

    Well i got this lua and its supposted to do following things.

    You spawn a trigger first. Then you spawn an acolyte. On spawn the acolyte cast a channel spell on the trigger and a invis spell (invis only once) //Working part

    When the acolytes are done casting they are supposted to cast it agian //non working part...

    +rep x2 if i can

    function Acolyte_OnSpawn(pUnit, Event)
    Acolyte = pUnit
    pUnit:FullCastSpellOnTarget(32759, Portal_ads)
    pUnit:FullCastSpellOnTarget(30402, Portal_ads)
    pUnit:RegisterEvent("Acolyte_continue",13000, 0)
    end

    function Portal_ads_OnSpawn(pUnit, Event)
    Portal_ads = pUnit
    end

    function Acolyte_continue(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:FullCastSpellOnTarget(32759, Portal_ads)
    end

    RegisterUnitEvent(40002, 18, "Acolyte_OnSpawn")
    RegisterUnitEvent(400003, 18, "Portal_ads_OnSpawn")

    [lua] simple but dont work -.-
  2. #2
    jfigal's Avatar Member
    Reputation
    3
    Join Date
    Jun 2007
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want it to cast the channel spell twice, then you have the spell id on the bottom one wrong. 32759 is the id of the invis spell.

    Video Invis - Thottbot: World of Warcraft

    So... your script should look like this for it to cast the channel spell twice.

    Code:
    function Acolyte_OnSpawn(pUnit, Event)
    Acolyte = pUnit
    pUnit:FullCastSpellOnTarget(32759, Portal_ads)
    pUnit:FullCastSpellOnTarget(30402, Portal_ads)
    pUnit:RegisterEvent("Acolyte_continue",13000, 0)
    end
    
    function Portal_ads_OnSpawn(pUnit, Event)
    Portal_ads = pUnit
    end
    
    function Acolyte_continue(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:FullCastSpellOnTarget(30402, Portal_ads)
    end
    
    RegisterUnitEvent(40002, 18, "Acolyte_OnSpawn")
    RegisterUnitEvent(400003, 18, "Portal_ads_OnSpawn")
    Hope that works for you!

  3. #3
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gonna test that if it works i give ya 2+rep :P

  4. #4
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works as far as i can see 2+rep

    Sorry for not have responded for 1 week. My computer went down..

Similar Threads

  1. Yet another lua dont work (teleporter)
    By Tikki100 in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 06-30-2009, 05:10 PM
  2. [LUA] Another lua dont work >: (
    By Tikki100 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-19-2009, 11:52 AM
  3. [LUA] Gamble script dont work :(
    By Tikki100 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 06-08-2009, 06:31 AM
  4. QUEST Lua Boss dont work!
    By Tikki100 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 04-15-2009, 10:31 AM
  5. Replies: 8
    Last Post: 01-06-2009, 06:08 PM
All times are GMT -5. The time now is 01:06 PM. 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