[Question] Make a Mob Cast a Spell When Critted? menu

Shout-Out

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    kevinno's Avatar Member
    Reputation
    46
    Join Date
    Oct 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Make a Mob Cast a Spell When Critted?

    On blizzard server's there is a mob that casts a spell whenever he is critically hit. This is because if he is critted, the player will be then killed by that spell.

    How is this done?

    Is there an Lua command?

    Or is it done with C++?


    Try not for the one word awnsers guys :yuck:
    -Thanks in advance and +Rep if it is solved

    [Question] Make a Mob Cast a Spell When Critted?
  2. #2
    rancor26's Avatar Member
    Reputation
    6
    Join Date
    Mar 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last edited by rancor26; 05-25-2008 at 02:33 AM.

  3. #3
    kevinno's Avatar Member
    Reputation
    46
    Join Date
    Oct 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. But i was looking for more of an Lua alternative, or C++ if need be.

    What you linked me to is interesting, i tried it and it didn't work. However i probally made a mistake.

    Does anyone else have any solutions?

  4. #4
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you should ask TheSpidey. Hes pretty good with c++, and im pretty sure this is impossible with lua
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  5. #5
    imsosorrygms's Avatar Member
    Reputation
    2
    Join Date
    Apr 2008
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually im sure u can do it with lua but when i look after it i cant find it so i think u need to add functions to do it with lua

  6. #6
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe lua++ but normal lua.. hmm xE
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  7. #7
    Greeko's Avatar Banned
    Reputation
    47
    Join Date
    Feb 2008
    Posts
    366
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, i thinks it possible to do it with lua++, even with normal lua i think
    Yeah, you should ask TheSpidey, he is really good with C++ etc..

  8. #8
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can use (C++) OnTargetCritHit ill setup a creature script with this for you

    edit: just re-read 1st post and saw you wanted player crit, fixed post, anyone know the npc id so i can find out more about him? like what spell he casts and such
    Last edited by doublehex; 05-25-2008 at 11:55 AM.


  9. #9
    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)
    Seems like doublehex is on it

    What creature is this?

  10. #10
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ive never seen a creature like it before, im searching around on the online database and havent found anything yet.


  11. #11
    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)
    Looks like this is caused by a spell rather than a special AI.

  12. #12
    kevinno's Avatar Member
    Reputation
    46
    Join Date
    Oct 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, Heres my Situation....
    High Overlord Saurfang Casts these following spells on blizzard servers...
    -26339 WHENEVER HE IS CRITTICALLY HIT on the player that crit him.
    -14100 Every 30 seconds
    -15749 If the main tank tries to run
    -16044 Every 6 seconds, insane amounts of damage as told
    -24573 500% damage strike, unknown cast periods




    Heres my Lua Script without spell 26339 (When he is critted)

    Code:
     
    function Saurfang_OnCombat(Unit, Event) 
    Unit:SendChatMessage(13, 0, "Lok'Tar!")
    end
    function Saurfang_Cleave(pUnit, Event) 
    pUnit:CastSpellOnTarget(16044, pUnit:GetClosestPlayer()) 
    end
    function Saurfang_TerrifyingRoar(pUnit, Event) 
    pUnit:CastSpell(14100, pUnit:GetRandomPlayer(0)) 
    end
    function Saurfang_ShieldCharge(pUnit, Event) 
    pUnit:CastSpellOnTarget(15749, pUnit:GetRandomPlayer(4)) 
    end
    function Saurfang_MortalStrike(pUnit, Event) 
    pUnit:CastSpellOnTarget(24573, pUnit:GetMainTank()) 
    end
     
    function Saurfang_OnDied(Unit, Event) 
    print SAURFANG HAS BEEN SLAIN. HOW IS THIS POSSIBLE!!!!!
    Unit:RemoveEvents()
    end
    function Saurfang_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I hope your're counting, Brox.") 
    end
    RegisterUnitEvent(14720, 1, "Saurfang_OnCombat")
    RegisterUnitEvent(14720, 2, "_OnLeaveCombat")
    RegisterUnitEvent(14720, 3, "Saurfang_OnKilledTarget")
    RegisterUnitEvent(14720, 4, "Saurfang_OnDied")
    So now im wondering, can i keep this script and add another? (like C++ or Lua++?)
    +Rep to all the people who have been helping me btw

  13. #13
    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)
    You should make a C++ script.
    Check the Creature AI to see if there's an event on player crits creature. There should be.

  14. #14
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea i think its
    void OnTargetCritHit(Unit* mTarget, float fAmount)


  15. #15
    kevinno's Avatar Member
    Reputation
    46
    Join Date
    Oct 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    C++ is abit out of my reach, unless someone makes one for me...

    As for the AI, i tried that, yet the mob then refuesed to do ALL fighting actions.
    You can see my reply to http://www.mmowned.com/forums/ascent...ls-no-lua.html

    on that forum.
    Heres what i said.

    Well... I did
    Entry, Type, Event, Chance, Maxcount, Spell, Spelltype, Targettype, Cooldown, FloatMisc1, Misc2
    14720, 4, 13, 100, 0, 26339, 8, 0, 0, 0, 0
    Entry of Saurfang, 4= A Spell, 13=UnitCrit(when he is critted), 100=100% chance to proc when critted, 0 can proc infinite times, 26339=Spell that will be used when critted, 8= It's a damage spell, 0=A null target-The one who crits them?, 0= No cooldown on the proc.

    What's the solution? The mob now doesnt even perform fighting, he runs to the target when aggroed and then stands there.
    /help x1000

Page 1 of 2 12 LastLast

Similar Threads

  1. [Trinity] Making a portal cast a spell
    By schexyp in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-19-2010, 09:39 AM
  2. [ArcEmu] (Question) About boss/Mobs cast times.
    By Ellenor in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 05-16-2010, 10:36 PM
  3. [LUA] Let a mob cast a spell, On another mob
    By Skatee in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 07-13-2009, 09:54 AM
  4. Replies: 9
    Last Post: 09-20-2008, 07:53 PM
  5. [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
All times are GMT -5. The time now is 11:31 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