Jump to content
  • No dialogue NPC 466


    Goullio
    • Status: Cannot Reproduce
      Main Category: Database
      Sub-Category: NPC
      Version: 2.0.11 Milestone: 20 Priority: Low
      Implemented Version: 0.20

    No dialogue NPC 466

    When saying hi to NPC 466 (General Marcus Jonathan) he would say: "Greetings, Citizen"

    Verified with: [url]http://www.wowwiki.com/Marcus_Jonathan[/url] -> Note nr 1.


    User Feedback

    Recommended Comments

    Tested this in game:

    [B][COLOR="#008000"]/salute resulted in a returned salute by General Marcus[/COLOR][/B] :)

    [B][COLOR="#FF0000"]/wave got no response[/COLOR][/B]

    hmm, maybe a kick in the noodles?

    I'll check the database in a mo... coffee needed!!!

    -----------------------------------------------------------------------------------------------------------------------

    The scripts related to this issue are in the [B]creature_ai_scripts[/B] table.

    The event used for received emote is 22:
    EVENT_T_RECEIVE_EMOTE = 22, // EmoteId, Condition, CondValue1, CondValue2
    code from the [B]CreatureEventAI.h[/B] file

    I'll sort this out later. Need to get an endorphine hit !

    -------------------------------------------------------------------------------------------------------------------------

    Strange, everything looks okay script/database-wise:

    [B]creature_template[/B] ([B][COLOR="#800080"]Entry[/COLOR][/B] 466) -> ([B][COLOR="#800080"]creature_id[/COLOR][/B] 466)[B]creature_ai_scripts[/B]([B][COLOR="#800080"]action1_param[/COLOR][/B] -552) -> ([B][COLOR="#800080"]entry[/COLOR][/B] -552)[B]creature_ai_text[/B] - this has the text "Greetings citizen."
    Hmm, maybe I'm blind and missed it. Checking in-game again!

    Nope, little git is definitely ignoring me! Perhaps a setting is wrong in the [B]creature_ai_text[/B] table's record.

    --------------------------------------------------------------------------------------------------------------------------

    The salute emote is coming up on the server terminal: [B][COLOR="#0000FF"]CreatureEventAI: ReceiveEmote CreatureEventAI: Condition ok, processing[/COLOR][/B]
    It is not coming up when waving, so there must be a setting wrong! Gonna compare the record with similar ones...

    ---------------------------------------------------------------------------------------------------------------------------

    One or more of the other scripts is interfering with the /wave one. I had to delete all of the others before the /wave one would work.

    Now I need to put them all back till I find the offending record! fun fun fun, NOT, lol


    ---------------------------------------------------------------------------------------------------------------------------

    Hmm, it seems that the wave emote does not like any other emote events to exist.
    Confuzzled to the max!!!

    Link to comment
    Share on other sites

    [B][SIZE=3][COLOR="#008000"]ONE POSSIBLE FIX:[/COLOR][/SIZE][/B]

    The Elunafication of the Event (actually it processes both salute and wave, so 2 events):


    local NPC_General_Marcus_Jonathan = {
    EMOTE_RECEIVE_WAVE = 101,
    EMOTE_RECEIVE_SALUTE = 78,
    EMOTE_SEND_SALUTE = 66,
    NPC_ID = 466
    }


    function NPC_General_Marcus_Jonathan.OnReceiveEmote(event, creature, player, emoteid)
    if (emoteid == NPC_General_Marcus_Jonathan.EMOTE_RECEIVE_WAVE) then
    creature:SendUnitSay("Greetings, citizen!",7);
    elseif (emoteid == NPC_General_Marcus_Jonathan.EMOTE_RECEIVE_SALUTE) then
    creature:Emote(NPC_General_Marcus_Jonathan.EMOTE_SEND_SALUTE);
    end
    end


    RegisterCreatureEvent(NPC_General_Marcus_Jonathan.NPC_ID, 8, NPC_General_Marcus_Jonathan.OnReceiveEmote)


    This has been tested in-game, and works.

    Code by Foereeper
    Butchery of code by Chucksta :P

    -----------------------------------------------------
    [B]NOTE TO SELF[/B]: Implement this in SD2 as well, via the [B][COLOR="#800080"]ScriptName [/COLOR][/B]field of the [B]creature_template [/B]table.

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use