[Help request] Jaina Proudmoore menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help request] Jaina Proudmoore

    I've been working on scripting a few small parts of CoT:Strat (I know the forum rules say no WotLK but the exact same problem happens on regular BC emu)

    I've been trying to get the Arthas/Uther/Jaina conversation, and i'm using the Jaina from hyjal since she's friendly to A and H, doesnt have <Ruler of Theramore> over her head, she's the same model, and doenst have to fight at all. The problem is that she doesnt trigger script events.
    I've been through her database records comparing her to theramore Jaina and trying to make her as similar as possible, but regardless of what i tried she still didnt trigger script events, although her theramore version did.

    I've been working for the past couple of hours in northshire with the pair of them, spawning hogger in between them and trying to get the following test script to work but no dice. Theramore Jaina triggers events, Hyjal Jaina doesnt.

    Code:
    function Jaina_OnCombat(Jaina)
    Jaina:SendChatMessage(12, 0, "have at thee hogger!")
    print "test"
    
    end
    RegisterUnitEvent(17772, 1, "Jaina_OnCombat")
    
    
    
    function Jaina2_OnCombat(Jaina)
    Jaina:SendChatMessage(12, 0, "die beast!")
    print "test2"
    
    end
    RegisterUnitEvent(4968, 1, "Jaina2_OnCombat")
    Can anyone help me fix Jaina please?

    [Help request] Jaina Proudmoore
  2. #2
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this place
    http://www.mmowned.com/forums/ascent...lua-101-a.html

    Its pretty basic starting... Tho arthas117 does that kind of scripting, and to tell you the truth it really just makes me frustrated because it hardly ever works O_O...


    Code:
    function Jaina_OnCombat (pUnit, Event)
    	local Choice=math.random(1, 2)
    		if Choice==1 then
    			pUnit:SendChatMessage(12, 0, "Have at thee Hogger")
    		elseif Choice==2 then
    			pUnit:SendChatMessage(12, 0, "Die Beast!")
    end
    
    RegisterUnitEvent (EntryID, 1, "Jaina_OnCombat")

    She will either say 2 of those, i got the above script from Brutallus.lua from LUA++ and so i just changed the function and she will say the above stuff



  3. #3
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks BrantX, but you totally missed the point - in the script i posted, the 2 functions are just copy and paste duplicates of one another but saying something different, and attached to different mob entryIDs, but only the second one actually works, the first one doesn't seem to do anything at all.

    It wasn't trying to get the same mob to say different things :-)
    Last edited by Stew; 05-29-2008 at 05:52 AM.

  4. #4
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean like this?

    Code:
    function Jaina_OnCombat (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "have at thee hogger!")
    end
    
    function Jaina2_OnCombat (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Die beast!")
    end
    
    RegisterUnitEvent (4968, 1, "Jaina2_OnCombat")
    RegisterUnitEvent (17772, 1, "Jaina_OnCombat")



  5. #5
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah like that, thats the same one as in my original post. So why doesnt it work >.<

    EDIT: oh well nevermind, i gave up and wrote a completely new Jaina who seems to be fine. Just need to figure out how to make her walk around (she doesnt have a spawn id so can't add waypoints in the database
    Last edited by Stew; 05-30-2008 at 03:20 PM.

  6. #6
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are regestering your event on the wrong place? Atleast what I can see

  7. #7
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, you all arent seeming to get the fact that they're 2 identical scripts for 2 different npcs but one works one doesnt

    Also - it doesnt matter where you register events

  8. #8
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They are not identical

    Your function:
    function Jaina_OnCombat(Jaina)
    BrantX function:
    function Jaina_OnCombat (pUnit, Event)
    There you got the reason why only one worked.

  9. #9
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so i give my variables different names, so what?

    also:
    Code:
    Script 1:
    function Jaina_OnCombat(Jaina)
    Jaina:SendChatMessage(12, 0, "have at thee hogger!")
    print "test"
    
    end
    RegisterUnitEvent(17772, 1, "Jaina_OnCombat")
    Code:
    script 2:
    
    
    function Jaina2_OnCombat(Jaina)
    Jaina:SendChatMessage(12, 0, "die beast!")
    print "test2"
    
    end
    RegisterUnitEvent(4968, 1, "Jaina2_OnCombat")
    why does one work and one not?

  10. #10
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What one of them doesn't work and what one work?
    Are they both in the same lua file or are they seperate?

    If it is the one above that doesn't work, try put the registerunitevent UNDER all

Similar Threads

  1. It keeps DCing me.Help request!
    By sirios in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-20-2008, 01:40 AM
  2. [Help/request/crazy] Look inside please.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 01-01-2008, 07:26 PM
  3. [help/request] I need trainers for 2.3 lol
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-28-2007, 12:39 PM
  4. Getting A Friend Connected (Help Request)
    By Magnusvermis in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 12-07-2007, 11:57 PM
  5. Help Request
    By sirios in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-14-2007, 12:47 PM
All times are GMT -5. The time now is 07:06 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