LUA Prob menu

User Tag List

Thread: LUA Prob

Results 1 to 3 of 3
  1. #1
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Prob

    My mob i made that suppose to cast certain spells he cast it on himself rather than an enemy..How can i fix? Heres my lua


    Code:
    function amnem1_CheckD(Unit)
        if Unit:GetHealthPct() < 10 then
            Unit:FullCastSpellOnTarget(41481)
            Unit:SendChatMessage(12, 0, "Let the fire purge you!")
        end
    end
    
    function amnem1_Chill(Unit)
        Unit:FullCastSpellOnTarget(38009)
        Unit:SendChatMessage(12, 0, "MUHAHAHA")
    end
    
    function amnem1_Shadow(Unit)
        Unit:FullCastSpellOnTarget(29928)
        Unit:SendChatMessage(12, 0, "Did I Scare you?")
    end
    
    function amnem1_OnCombat(Unit, Event)
        Unit:SendChatMessage (11, 0, "For the Holy")
        Unit:RegisterEvent("amnem1_CheckA",25000, 0)
        Unit:RegisterEvent("amnem1_CheckB",20000, 0)
        Unit:RegisterEvent("amnem1_CheckC",25000, 0)
        Unit:RegisterEvent("amnem1_CheckD",20000, 0)
        Unit:RegisterEvent("amnem1_Chill",20000, 0)
        Unit:RegisterEvent("amnem1_Shadow",31000, 0)
    end
    
    function amnem1_OnLeaveCombat(Unit)
        Unit:RemoveEvents()
    end
    
    function amnem1_KilledTarget(Unit)
        Unit:SendChatMessage(12, 0, "Enjoy Hell")
        Unit:CastSpell(41272)
        Unit:RemoveEvents()
    end
    
    function amnem1_OnDied(Unit)
        Unit:SendChatMessage(12, 0, "I will see you in Hell.")
        Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(133892, 1, "amnem1_OnCombat")
    RegisterUnitEvent(133892, 2, "amnem1_OnLeaveCombat")
    RegisterUnitEvent(133892, 3, "amnem1_OnKilledTarget")
    RegisterUnitEvent(133892, 4, "amnem1_OnDied")
    Last edited by Mr.Ice.Cold; 02-15-2008 at 07:34 PM.

    LUA Prob
  2. #2
    Xcynic's Avatar Contributor
    Reputation
    252
    Join Date
    Jul 2007
    Posts
    359
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As far as I know, you can only put AOE spells on .lua bosses. Any other spell would reflect to him self. So change those to AOE spells, like Blizzard but more powerful and the spells will work.

    I dont know how to fix so that they can cast normal spells aswell...

  3. #3
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would "Punit" Work?

Similar Threads

  1. lua prob!
    By icp54656 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-25-2008, 01:21 PM
  2. + rep 4 some1 how helps me with ce prob
    By kirby12 in forum World of Warcraft General
    Replies: 2
    Last Post: 06-01-2007, 06:04 PM
  3. Video Prob..
    By Adosi in forum World of Warcraft General
    Replies: 5
    Last Post: 03-21-2007, 03:20 PM
  4. o m g(a Family prob! help:P
    By mchugh in forum Community Chat
    Replies: 42
    Last Post: 01-23-2007, 09:08 PM
  5. For those of u having prob with Tsearch
    By Fluffhead in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 09-14-2006, 03:28 AM
All times are GMT -5. The time now is 10:14 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