Why doesnt my NPC talk? menu

Shout-Out

User Tag List

Results 1 to 14 of 14
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why doesnt my NPC talk?

    function corcombat(Unit, event, miscunit, misc)
    print "Coruppter enterd combat"
    Unit:RegisterEvent("cor_enrage",8000,0)
    Unit:RegisterEvent("cor_speak",1000,1)
    end

    function cor_enrage(Unit, event, miscunit, misc)
    if Unit:GetHealthPct() < 28 then
    print "Corupter engraging"
    Unit:CastSpell(14204)
    else
    end
    end

    function cor_leavecombat(Unit, event, miscunit, misc)
    unit:RemoveEvents()
    end

    function cor_speak(Unit, Event)
    Unit:SendChatMessage(12, 0, "For the love of Leeroy no more raiders!")
    end

    RegisterUnitEvent(150018,1,"corcombat")
    RegisterUnitEvent(150018, 2, "cor_leavecombat")
    Any ideas why he isnt talking?
    Last edited by controlsx2; 05-22-2008 at 11:30 AM.

    Why doesnt my NPC talk?
  2. #2
    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)
    Code:
    function Cor_Enrage(Unit, event, miscunit, misc)
        if Unit:GetHealthPct() < 28 and Didthat == 0 then
            Unit:CastSpell(14204)
            Didthat = 1
        else
        end  
    
    function Cor_leavecombat(Unit, event, miscunit, misc)
        unit:RemoveEvents()
    end
     
    function Cor_OnCombat(Unit, Event)
    Unit:SendChatMessage(12, 0, "For the love of Leeroy no more raiders!")
    end   
    
    Function Cor(Unit, event, miscunit, misc)
    print "Cor"
    Unit:RegisterEvent("Cor_Enrage",1000,1)
    end
    
    RegisterUnitEvent(150018,1,"Cor_OnCombat")
    RegisterUnitEvent(150018, 2, "Cor_leavecombat")
    Your script was totally screwed up so i made some changes and.. Well, here it is:P
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  3. #3
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How is it totally screwed?
    The function Cor isnt called tehre how will he enrage?
    I didnt put the didthat in bacuse the spell is only for 15 seconds i need it to last until end of fight so i have him recast.
    Also why did you put didthat in if you only told it to execute once?
    Last edited by controlsx2; 05-22-2008 at 11:56 AM.

  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)
    HIHI last time im helpin you:b
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  5. #5
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol, last time your helping me? When have you helped me you gave me a script that does nothing other then break the one thing thats actully working.

    All i asked was why do yo say its screwed and why did you use Didthat if you only told it to happen once?

    Why is that cause to not help somone in the future?
    Last edited by controlsx2; 05-22-2008 at 11:33 AM.

  6. #6
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    b!atch, your script was screwed, function Cor was not registered. Therefore Cor_Enrage was not registered. Fixed the script. Try it now, and post if it works ^^

    function corcombat(Unit, Event)
    print "Corrupter Entered Combat"
    Unit:RegisterEvent("cor_register", 1000, 1)
    Unit:RegisterEvent("cor_speak", 1000, 1)
    end

    function cor_register(Unit, Event)
    if Unit:GetHealthPct() < 28 then
    print "Corrupter Enrage Registered"
    Unit:RegisterEvent("cor_enrage", 15000, 1)
    else
    end
    end

    function cor_enrage(Unit, Event)
    Unit:CastSpell(14204)
    end

    function cor_leavecombat(Unit, Event)
    Unit:RemoveEvents()
    end

    function cor_speak(Unit, Event)
    Unit:SendChatMessage(12, 0, "For the love of Leeroy no more raiders!")
    end

    RegisterUnitEvent(150018,1,"corcombat")
    RegisterUnitEvent(150018, 2, "cor_leavecombat")
    Last edited by EcHoEs; 05-22-2008 at 11:48 AM.


  7. #7
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I havent tested yet (not at my PC) but anwser me this. the function Cor is never called so how will it enrage

  8. #8
    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)
    controlsx2 Its your attitude, You're rude.


    Ok i did forget some stuff in my script, But i dont see how

    function corcombat(Unit, event, miscunit, misc)
    print "Coruppter enterd combat"
    Unit:RegisterEvent("cor_enrage",8000,0)
    Unit:RegisterEvent("cor_speak",1000,1)
    end

    would work...

    I still think controlsx2 is a butthead tho

    its not even registered! xE
    Last edited by b!atch; 05-22-2008 at 12:00 PM.
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  9. #9
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In my script now (I edited) there is no function Cor.

    b!atch, your script was screwed aswell. You were being rude aswell, saying that you wont help him. Where's your attitude?


  10. #10
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im sorry you feel that way B!atch. Ive been working on this for weeks i finally had enrage working to be told its totally screwed. I was just frustrated. I hope we can forget about it, i need some help here and i know your good at scripts you've made 2 instances and a mall (which are both good) Can you just please explain to me how that script works. I dont see function Cor getting called. So how will he enrage?
    If you help me udnerstand ill be able to do it on my own in future

  11. #11
    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)
    Originally Posted by EcHoEs View Post
    In my script now (I edited) there is no function Cor.

    b!atch, your script was screwed aswell. You were being rude aswell, saying that you wont help him. Where's your attitude?

    hey.. that was after i felt offended ;<
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  12. #12
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EcHoEs It works!!! Thanks so much!!

  13. #13
    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)
    controlsx2 ur forgiven, i hope you can forgive me aswell;d

    Hmm.. Now that echoes made your script for you, you wont need mine


    But erm..Yeah.. I kinda thought mine was correct, I did forget to print tho xD

    I cant help you understand my script becouse i wouldnt know how to do so;>
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  14. #14
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad to help you =3


Similar Threads

  1. how to make a npc talk/cast Mangos
    By hotandsekc in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-11-2008, 09:12 PM
  2. [Question] Why doesnt blink work right now?
    By flop159 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-01-2008, 09:09 PM
  3. WoWme, why doesnt it work?
    By Hog007 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 03-31-2008, 09:22 PM
  4. [GM Scripting] Making a npc Talk at a % of Health Points
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 11-10-2007, 06:34 PM
  5. Replies: 14
    Last Post: 10-31-2007, 01:17 PM
All times are GMT -5. The time now is 10:25 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