Why this script doesnt work properly? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Maisteri's Avatar That spoiler guy
    Reputation
    441
    Join Date
    Aug 2007
    Posts
    893
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why this script doesnt work properly?

    Code:
    function Moroes_OnCombat(Unit, event)
    Unit:PlaySoundToSet(9211)
    Unit:SendChatMessage(12,0,"Hmm, unannounced visitors? Preparations must be made.")
    Unit:RegisterEvent("Moroes_Blind",8000,0)
    Unit:RegisterEvent("Moroes_Vanish",14500,0)
    Unit:RegisterEvent("Moroes_Garrote",15001,0)
    end
    
    function Moroes_Blind(pUnit, event)
    pUnit:FullCastSpellOnTarget(34654, pUnit:GetMainTank())
    end
    
    function Moroes_Vanish(Unit, event, miscunit, misc)
    print "Moroes Vanish"
    Unit:FullCastSpell(41476)
    Unit:PlaySoundToSet(9215)
    Unit:SendChatMessage(11, 0, "Now, where was I? Oh yes...")
    end
    
    function Moroes_Garrote(pUnit, event)
    local plr = pUnit:GetRandomPlayer(0)
    if (plr ~= nil) then
    pUnit:FullCastSpellOnTarget(37066, plr)
    end
    end
    
    function Moroes_PartTwo(Unit, event)
    Unit:RegisterEvent("Moroes_Blind",8000,0)
    Unit:RegisterEvent("Moroes_Vanish",14500,0)
    Unit:RegisterEvent("Moroes_Garrote",15001,0)
    end
    
    function Moroes_Blind(pUnit, event)
    pUnit:FullCastSpellOnTarget(34654, pUnit:GetMainTank())
    end
    
    function Moroes_Vanish(Unit, event, miscunit, misc)
    print "Moroes Vanish"
    Unit:FullCastSpell(41476)
    Unit:PlaySoundToSet(9316)
    Unit:SendChatMessage(11, 0, "You rang?")
    end
    
    function Moroes_Garrote(pUnit, event)
    local plr = pUnit:GetRandomPlayer(0)
    if (plr ~= nil) then
    pUnit:FullCastSpellOnTarget(37066, plr)
    end
    end
    
    function Moroes_OnDied(Unit)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12,0,"How terribly clumsy of me...")
    Unit:PlaySoundToSet(9213)
    end
    
    function Moroes_OnKilledTarget(Unit)
    Unit:SendChatMessage(12,0,"I've gone and made a mess.")
    Unit:PlaySoundToSet(9315)
    end
    
    function Moroes_OnLeaveCombat(Unit)
    Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(15687,1,"Moroes_OnCombat")
    RegisterUnitEvent(15687,2,"Moroes_PartTwo")
    RegisterUnitEvent(15687,3,"Moroes_OnLeaveCombat")
    RegisterUnitEvent(15687,4,"Moroes_OnKilledTarget")
    RegisterUnitEvent(15687,5,"Moroes_OnDied")
    Is there something wrong with this because Moroes keeps garroting himself :S

    Why this script doesnt work properly?
  2. #2
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe a confliction cause you have two functions title

    Moroes_Garrote
    Lunar Gaming - Reaching For The Stars

  3. #3
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah. When you do that you call the first function

Similar Threads

  1. [PQR] Why this Script dont work?
    By lekken in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 05-24-2014, 11:51 AM
  2. [C++ Script] Guildhouse system script doesnt work
    By Nic03 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-19-2013, 12:53 PM
  3. [ArcEmu] Item script doesnt work properly.
    By Uppercutter in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 05-05-2011, 03:48 PM
  4. [Lua Script] Can you help me why this doesn't work?
    By LlamaFridge in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 08-24-2010, 03:18 PM
  5. Lua script doesnt work (trying to script Kurinnaxx)
    By zlo in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 08-14-2008, 04:35 PM
All times are GMT -5. The time now is 05:42 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