What is Wrong with my Script menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is Wrong with my Script

    My NPC hits himself for some reason... FullCastSpellOnTarget Works, but i got rid of that because it errors ascent, saying Bad Agruement On FullCastSpellOnTarget..

    Its a Simple Script/..
    function Felrogue_Strike(pUnit, Event)
    pUnit:CastSpell(36838, pUnit:GetMainTank())
    end

    function Felrogue_Hemo(pUnit, Event)
    pUnit:CastSpell(45897, pUnit:GetMainTank())
    end

    function Felrogue_OnCombat(pUnit, Event)
    pUnit:RegisterEvent("Felrogue_Strike", 10000, 0)
    pUnit:RegisterEvent("Felrogue_Hemo", 8000, 0)
    end

    function Felrogue_OnKilledTarget(pUnit, Event)
    end

    function Felrogue_OnDeath(pUnit, Event)
    pUnit:RemoveEvents()
    end

    RegisterUnitEvent(40004, 1, "Felrogue_OnCombat")
    RegisterUnitEvent(40004, 2, "Felrogue_OnKilledTarget")
    RegisterUnitEvent(40004, 4, "Felrogue_OnDeath")
    Thank You
    Last edited by Juicyz; 05-23-2008 at 12:42 PM.

    DA Gift From Mr. Blain

    What is Wrong with my Script
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CastSpell gets only one argument - the id - and makes the unit cast on himself.
    Try CastSpellOnTarget.

Similar Threads

  1. [Lua Script] What is wrong with this script!?
    By Cuodin in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 04-05-2011, 10:00 AM
  2. [Lua Script] What's wrong with my script?
    By sora2810 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 12-05-2010, 10:13 PM
  3. What is wrong with this script?
    By XxCyanidexX in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 03-01-2009, 12:13 PM
  4. [helpzerz] What is wrong with this lua script?
    By w21froster in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-21-2008, 09:45 PM
  5. [Need help] What's wrong with this script?
    By Arthas117 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 01-10-2008, 02:04 PM
All times are GMT -5. The time now is 07:27 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search