[Lua] Make mobs channel spell then cast? menu

User Tag List

Results 1 to 13 of 13
  1. #1
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Make mobs channel spell then cast?

    How do i make a monster i created channel a spell then cast it (ex. fireball) ??

    btw to chrispe, the ade didn't work.... it gave me an error when i tried to update a monster i created with it

    These ads disappear when you log in.

  2. #2
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ade works perfectly for me, maybe you have to old db or to old version of ade,

    Anyway, to get a monster to cast fireball (without hitting himself)
    like the castspell command does, use this:

    Unit:FullCastSpellOnTarget(SPELL_ID_HERE)
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

  3. #3
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let say i want the mob to cast a priest shield on himself... how would i do that?

  4. #4
    Arthas117's Avatar Contributor
    Reputation
    151
    Join Date
    Mar 2007
    Posts
    483
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think it should work with
    unit:FullCastSpell(Spell_id)

    i'm a noob of lua scripting, but i think it uses it on the unit thats getting scripted (casts spell on itself) and if you wanna cast it at a target...
    pUnit:FullCastSpell(Spell_ID)

  5. #5
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i need it to cast this on itself.
    20697

    Power Word: Shield - Spells - World of Warcraft

    the

    function SunfuryGuard_Shield(Unit)
    pUnit:CastSpell(20697)
    end


    didnt work

  6. #6
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Unit:FullCastSpellOnTarget(SPELL_ID_HERE) for mob to cast on other


    Unit:CastSpell(SPELL_ID_HERE) to cat on himself (like heal, shield ++)


    i actually used Unit:FullCastSpellOnTarget(SPELL_ID_HERE)

    to make a mob run around in instance and heal me all the time lol
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

  7. #7
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by blah7 View Post
    i need it to cast this on itself.
    20697

    Power Word: Shield - Spells - World of Warcraft

    the

    function SunfuryGuard_Shield(Unit)
    pUnit:CastSpell(20697)
    end


    didnt work

    function SunfuryGuard_Shield(Unit)
    Unit:CastSpell(20697)
    Unit:SendChatMessage(12, 0, "Try breake through my shield!!!")
    end
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

  8. #8
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the error i get
    http://img185.imageshack.us/img185/4834/errorluaaa8.jpg


    this is my script.... my mob will only cast blast nova and the avatar....

    he wont cast firebolt or shield....


    function SunfuryGuard_AvatarofFlame(Unit)
    Unit:CastSpell(15636)
    Unit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!")
    end

    function SunfuryGuard_Firebolt(Unit)
    Unit:FullCastSpellOnTarget(36906)
    Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
    end

    function SunfuryGuard_Blastwave(Unit)
    Unit:FullCastSpell(3627
    Unit:SendChatMessage(12, 0, "The earth will melt under you!!")
    end

    function SunfuryGuard_Shield(Unit)
    pUnit:CastSpell(20697)
    end


    function SunfuryGuard_OnCombat(Unit, Event)
    Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
    Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0)
    Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0)
    Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0)
    Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0)
    end

    function SunfuryGuard_OnDied(Unit)
    Unit:SendChatMessage(11, 0, "Guards! Get him.... ughh..")
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat")
    RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")

  9. #9
    Shao111's Avatar Knight-Lieutenant
    Reputation
    33
    Join Date
    Jul 2007
    Posts
    281
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:



    Code:
    function SunfuryGuard_AvatarofFlame(pUnit, event)
    pUnit:CastSpell(15636)
    pUnit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!")
    end
     
    function SunfuryGuard_Firebolt(pUnit, event)
    pUnit:FullCastSpellOnTarget(36906)
    pUnit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
    end
     
    function SunfuryGuard_Blastwave(Unit)
        Unit:FullCastSpell(36278)
        Unit:SendChatMessage(12, 0, "The earth will melt under you!!")
    end
     
    function SunfuryGuard_Shield(Unit)
        Unit:CastSpell(20697)
    end
     
     
    function SunfuryGuard_OnCombat(pUnit, Event)
        Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
        Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0)
        Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0)
        Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0)
        Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0)
    end
     
    function SunfuryGuard_OnDied(Unit)
        Unit:SendChatMessage(11, 0, "Guards!  Get him.... ughh..")
        Unit:RemoveEvents()
    end
     
    RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat")
    RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")

  10. #10
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now he doesn't cast anything

  11. #11
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can also try:

    function SunfuryGuard_AvatarofFlame(Unit)
    Unit:CastSpell(15636)
    Unit:SendChatMessage(12, 0, "I'll melt the flesh off your bones!")
    end

    function SunfuryGuard_Firebolt(Unit)
    Unit:FullCastSpellOnTarget(36906)
    Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
    end

    function SunfuryGuard_Blastwave(Unit)
    Unit:CastSpell(3627
    Unit:SendChatMessage(12, 0, "The earth will melt under you!!")
    end

    function SunfuryGuard_Shield(Unit)
    Unit:CastSpell(20697)
    end


    function SunfuryGuard_OnCombat(Unit, Event)
    Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
    Unit:RegisterEvent("SunfuryGuard_AvatarofFlame",50000, 0)
    Unit:RegisterEvent("SunfuryGuard_Firebolt",15000, 0)
    Unit:RegisterEvent("SunfuryGuard_Blastwave",25000, 0)
    Unit:RegisterEvent("SunfuryGuard_Shield",40000, 0)
    end

    function SunfuryGuard_OnDied(Unit)
    Unit:SendChatMessage(12, 0, "Guards! Get him.... ughh..")
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(101018, 1, "SunfuryGuard_OnCombat")
    RegisterUnitEvent(101018, 4, "SunfuryGuard_OnDied")



    this one worked for me
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

  12. #12
    blah7's Avatar Member
    Reputation
    6
    Join Date
    Aug 2006
    Posts
    59
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The shield works now... but the firebolt still doesn't work

    http://img185.imageshack.us/img185/4834/errorluaaa8.jpg

  13. #13
    knaur's Avatar Elite User
    Reputation
    400
    Join Date
    Nov 2007
    Posts
    634
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function SunfuryGuard_Firebolt(Unit, event, miscunit, misc)
    Unit:FullCastSpellOnTarget(36906,Unit:GetClosestPlayer())
    Unit:SendChatMessage(12, 0, "I'll tear your limb from limb!!")
    end


    also normal firebolt rank 8 (lvl 6 are 27267 not 36906
    try that if the other fails
    ------------------------------------------------------
    Knaur - Founder of The Norwegian Elite Team

Similar Threads

  1. [LUA] Custom NPC's don't cast spells or talk
    By Evilbuffy in forum WoW EMU Questions & Requests
    Replies: 15
    Last Post: 04-07-2009, 06:59 AM
  2. [Guide] How to make Mob say/yell something when...[No LUA needed!]
    By Appled in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 10-25-2008, 08:13 AM
  3. [Lua] Make mobs with sound. And a trigger question.
    By sammiboy in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-26-2008, 09:04 AM
  4. [Guide][LUA] Make a mob speak/use spell on a %!
    By Meltoor in forum WoW EMU Guides & Tutorials
    Replies: 14
    Last Post: 02-29-2008, 10:41 PM
  5. [GUIDE] - Scripting for Antrix, Making Mobs Talk, Cast Spells, etc
    By Greed in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 12-10-2007, 07:51 PM
All times are GMT -5. The time now is 10:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search