ServerHook OnEmote problem/question menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    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)
    It can't print pPlayer because that's not a scalar value.. Anyways there's no reason to print that. Just print 'event' and 'emoteid' and see what they are when you do the emote

    ServerHook OnEmote problem/question
  2. #17
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheSpidey View Post
    It can't print pPlayer because that's not a scalar value.. Anyways there's no reason to print that. Just print 'event' and 'emoteid' and see what they are when you do the emote
    It should do, it should just print it saying what type of data it is and the GUID (so it will say in core: USERDATA 205 or whatever), at least that has always worked for me in the past when debugging. I still haven't got round to debugging it since I'm actually packing to go on holiday, but I will soon.

    EDIT:

    Ok, it turns out you can't print the variables in that syntex as TheSpidey said, instead you have to print them directly:
    Code:
    print(pPlayer)
    The results from that were as shows:



    So that was a success, now I changed the script to the following:

    Code:
    function teszt_OnEmote(event, pPlayer, pUnit, emoteId)
        if emoteId == 4 then
        print("EmoteID 4 returned successfully by player: "..pPlayer:GetName().."!")
        end
    end
    
    RegisterServerHook(8, "teszt_OnEmote")
    And the results are as follows:



    So as far as I am aware, it should work fine.
    Last edited by stoneharry; 07-10-2010 at 10:35 AM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Sgather combat/mage problem question
    By dergaten in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 06-11-2011, 03:16 PM
  2. Mound Sound problem/question
    By Uchiha Ottaba in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 02-11-2009, 02:38 AM
  3. [problem/question] noggit problem
    By Ermok in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-24-2007, 10:06 AM
  4. [Question] Problem/Question
    By artaron in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-13-2007, 08:36 AM
  5. Helm fix problem--Question/Request
    By qwert in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-08-2007, 06:54 PM
All times are GMT -5. The time now is 04:13 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