Help with custom emotes menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Hadesminion13's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with custom emotes

    I'm trying to script custom emotes. I'll use this as an example:

    Code:
    if (message == "/stomp") then
    player:SendChatMessage(12, 0, "/emote violently stomps on the ground.")
    end
    Apparently this doesn't work for some reason. No errors in the console, nothing. Just the thing it says if you type in an emote that doesn't exist.

    Another thing I thought could work is:

    Code:
    if (message == "/stomp") then
    player:SendChatMessage(12, 0, "[PlayerName] violently stomps on the ground.")
    end
    But then there are TWO problems.
    1: I would need to get the text to appear orange, but I suppose I could use something around this: |cFFFF8C00 (Dark Orange) Right in front of the player's name (In this case [PlayerName]). But IDK if that will work (although it should).
    2: How would I get [PlayerName] to show up as the actual player's name? (The one who is saying /stomp)

    +Rep to anyone who helps me out so I can get working custom emotes.

    Yes I realize I could just type in "/emote violently stomps on the ground." but then it wouldn't be an actual emote that everyone could use.

    Help with custom emotes
  2. #2
    covert_cat's Avatar Member
    Reputation
    55
    Join Date
    Sep 2009
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "[PlayerName]" isn't a lua event. Try this
    Code:
    function Custom_Emotes(event, pPlayer, message, type, language)
      if (message == "#stomp") then
      pPlayer:SendChatMessage(12, 0, "|cFF6600".. pPlayer:GetName() .." |cFF6600 violently stomps on the ground."
      end
    end
    RegisterServerHook(16, "Custom_Emotes")
    or, come to think of it, just this would work
    Code:
    function Custom_Emotes(event, pPlayer, message, type, language)
      if (message == "#stomp") then
      pPlayer:SendChatMessage(12, 0, "/emote violently stomps on the ground."
      end
    end
    
    RegisterServerHook(16, "Custom_Emotes")
    The command has to be #stomp rather than /stomp due to / starting a command. And creating a custom COMMAND would be a lot more annoying..
    Last edited by covert_cat; 07-26-2010 at 11:48 PM. Reason: forgot the second "end".. xD

  3. #3
    Hadesminion13's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I never thought it would've been an error with /.

  4. #4
    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)
    lol, your trying to overcomplicate things.

    Firstly, you want to be using message type 16 for emotes, / is treated as a string function hence why it's returning an error.

    Code:
    pUnit:SendChatMessage(16, 0, "The human attempts to run in fear!")
    For example.

    The next step is to get the npc to detect player emotes and not creature emotes. Here is a list of player emotes in relation to there ID: (I think these are wrong - This is the animation data but I know for a fact the player emotes are different to the creatures, I just thought this is the correct one... Probably stored in the player.h or something)

    Code:
             0   Stand       1   Death       2   Spell       3   Stop       4   Walk       5   Run       6   Dead       7   Rise       8   StandWound       9   CombatWound       10   CombatCritical       11   ShuffleLeft       12   ShuffleRight       13   Walkbackwards       14   Stun       15   HandsClosed       16   AttackUnarmed       17   Attack1H       18   Attack2H       19   Attack2HL       20   ParryUnarmed       21   Parry1H       22   Parry2H       23   Parry2HL       24   ShieldBlock       25   ReadyUnarmed       26   Ready1H       27   Ready2H       28   Ready2HL       29   ReadyBow       30   Dodge       31   SpellPrecast       32   SpellCast       33   SpellCastArea       34   NPCWelcome       35   NPCGoodbye       36   Block       37   JumpStart       38   Jump       39   JumpEnd       40   Fall       41   SwimIdle       42   Swim       43   SwimLeft       44   SwimRight       45   SwimBackwards       46   AttackBow       47   FireBow       48   ReadyRifle       49   AttackRifle       50   Loot       51   ReadySpellDirected       52   ReadySpellOmni       53   SpellCastDirected       54   SpellCastOmni       55   BattleRoar       56   ReadyAbility       57   Special1H       58   Special2H       59   ShieldBash       60   EmoteTalk       61   EmoteEat       62   EmoteWork       63   EmoteUseStanding       64   EmoteTalkExclamation       65   EmoteTalkQuestion       66   EmoteBow       67   EmoteWave       68   EmoteCheer       69   EmoteDance       70   EmoteLaugh       71   EmoteSleep       72   EmoteSitGround       73   EmoteRude       74   EmoteRoar       75   EmoteKneel       76   EmoteKiss       77   EmoteCry       78   EmoteChicken       79   EmoteBeg       80   EmoteApplaud       81   EmoteShout       82   EmoteFlex       83   EmoteShy       84   EmotePoint       85   Attack1HPierce       86   Attack2HLoosePierce       87   AttackOff       88   AttackOffPierce       89   Sheath       90   HipSheath       91   Mount       92   RunRight       93   RunLeft       94   MountSpecial       95   Kick       96   SitGroundDown       97   SitGround       98   SitGroundUp       99   SleepDown       100   Sleep       101   SleepUp       102   SitChairLow       103   SitChairMed       104   SitChairHigh       105   LoadBow       106   LoadRifle       107   AttackThrown       108   ReadyThrown       109   HoldBow       110   HoldRifle       111   HoldThrown       112   LoadThrown       113   EmoteSalute       114   KneelStart       115   KneelLoop       116   KneelEnd       117   AttackUnarmedOff       118   SpecialUnarmed       119   StealthWalk       120   StealthStand       121   Knockdown       122   EatingLoop       123   UseStandingLoop       124   ChannelCastDirected       125   ChannelCastOmni       126   Whirlwind       127   Birth       128   UseStandingStart       129   UseStandingEnd       130   CreatureSpecial       131   Drown       132   Drowned       133   FishingCast       134   FishingLoop       135   Fly       136   EmoteWorkNoSheathe       137   EmoteStunNoSheathe       138   EmoteUseStandingNoSheathe       139   SpellSleepDown       140   SpellKneelStart       141   SpellKneelLoop       142   SpellKneelEnd       143   Sprint       144   InFlight       145   Spawn       146   Close       147   Closed       148   Open       149   Opened       150   Destroy       151   Destroyed       152   Rebuild       153   Custom0       154   Custom1       155   Custom2       156   Custom3       157   Despawn       158   Hold       159   Decay       160   BowPull       161   BowRelease       162   ShipStart       163   ShipMoving       164   ShipStop       165   GroupArrow       166   Arrow       167   CorpseArrow       168   GuideArrow       169   Sway       170   DruidCatPounce       171   DruidCatRip       172   DruidCatRake       173   DruidCatRavage       174   DruidCatClaw       175   DruidCatCower       176   DruidBearSwipe       177   DruidBearBite       178   DruidBearMaul       179   DruidBearBash       180   DragonTail       181   DragonStomp       182   DragonSpit       183   DragonSpitHover       184   DragonSpitFly       185   EmoteYes       186   EmoteNo       187   JumpLandRun       188   LootHold       189   LootUp       190   StandHigh       191   Impact       192   LiftOff       193   Hover       194   SuccubusEntice       195   EmoteTrain       196   EmoteDead       197   EmoteDanceOnce       198   Deflect       199   EmoteEatNoSheathe       200   Land       201   Submerge       202   Submerged       203   Cannibalize       204   ArrowBirth       205   GroupArrowBirth       206   CorpseArrowBirth       207   GuideArrowBirth       208   EmoteTalkNoSheathe       209   EmotePointNoSheathe       210   EmoteSaluteNoSheathe       211   EmoteDanceSpecial       212   Mutilate       213   CustomSpell01       214   CustomSpell02       215   CustomSpell03       216   CustomSpell04       217   CustomSpell05       218   CustomSpell06       219   CustomSpell07       220   CustomSpell08       221   CustomSpell09       222   CustomSpell10       223   StealthRun       224   Emerge       225   Cower       226   Grab       227   GrabClosed       228   GrabThrown       229   FlyStand       230   FlyDeath       231   FlySpell       232   FlyStop       233   FlyWalk       234   FlyRun       235   FlyDead       236   FlyRise       237   FlyStandWound       238   FlyCombatWound       239   FlyCombatCritical       240   FlyShuffleLeft       241   FlyShuffleRight       242   FlyWalkbackwards       243   FlyStun       244   FlyHandsClosed       245   FlyAttackUnarmed       246   FlyAttack1H       247   FlyAttack2H       248   FlyAttack2HL       249   FlyParryUnarmed       250   FlyParry1H       251   FlyParry2H       252   FlyParry2HL       253   FlyShieldBlock       254   FlyReadyUnarmed       255   FlyReady1H       256   FlyReady2H       257   FlyReady2HL       258   FlyReadyBow       259   FlyDodge       260   FlySpellPrecast       261   FlySpellCast       262   FlySpellCastArea       263   FlyNPCWelcome       264   FlyNPCGoodbye       265   FlyBlock       266   FlyJumpStart       267   FlyJump       268   FlyJumpEnd       269   FlyFall       270   FlySwimIdle       271   FlySwim       272   FlySwimLeft       273   FlySwimRight       274   FlySwimBackwards       275   FlyAttackBow       276   FlyFireBow       277   FlyReadyRifle       278   FlyAttackRifle       279   FlyLoot       280   FlyReadySpellDirected       281   FlyReadySpellOmni       282   FlySpellCastDirected       283   FlySpellCastOmni       284   FlyBattleRoar       285   FlyReadyAbility       286   FlySpecial1H       287   FlySpecial2H       288   FlyShieldBash       289   FlyEmoteTalk       290   FlyEmoteEat       291   FlyEmoteWork       292   FlyEmoteUseStanding       293   FlyEmoteTalkExclamation       294   FlyEmoteTalkQuestion       295   FlyEmoteBow       296   FlyEmoteWave       297   FlyEmoteCheer       298   FlyEmoteDance       299   FlyEmoteLaugh       300   FlyEmoteSleep       301   FlyEmoteSitGround       302   FlyEmoteRude       303   FlyEmoteRoar       304   FlyEmoteKneel       305   FlyEmoteKiss       306   FlyEmoteCry       307   FlyEmoteChicken       308   FlyEmoteBeg       309   FlyEmoteApplaud       310   FlyEmoteShout       311   FlyEmoteFlex       312   FlyEmoteShy       313   FlyEmotePoint       314   FlyAttack1HPierce       315   FlyAttack2HLoosePierce       316   FlyAttackOff       317   FlyAttackOffPierce       318   FlySheath       319   FlyHipSheath       320   FlyMount       321   FlyRunRight       322   FlyRunLeft       323   FlyMountSpecial       324   FlyKick       325   FlySitGroundDown       326   FlySitGround       327   FlySitGroundUp       328   FlySleepDown       329   FlySleep       330   FlySleepUp       331   FlySitChairLow       332   FlySitChairMed       333   FlySitChairHigh       334   FlyLoadBow       335   FlyLoadRifle       336   FlyAttackThrown       337   FlyReadyThrown       338   FlyHoldBow       339   FlyHoldRifle       340   FlyHoldThrown       341   FlyLoadThrown       342   FlyEmoteSalute       343   FlyKneelStart       344   FlyKneelLoop       345   FlyKneelEnd       346   FlyAttackUnarmedOff       347   FlySpecialUnarmed       348   FlyStealthWalk       349   FlyStealthStand       350   FlyKnockdown       351   FlyEatingLoop       352   FlyUseStandingLoop       353   FlyChannelCastDirected       354   FlyChannelCastOmni       355   FlyWhirlwind       356   FlyBirth       357   FlyUseStandingStart       358   FlyUseStandingEnd       359   FlyCreatureSpecial       360   FlyDrown       361   FlyDrowned       362   FlyFishingCast       363   FlyFishingLoop       364   FlyFly       365   FlyEmoteWorkNoSheathe       366   FlyEmoteStunNoSheathe       367   FlyEmoteUseStandingNoSheathe       368   FlySpellSleepDown       369   FlySpellKneelStart       370   FlySpellKneelLoop       371   FlySpellKneelEnd       372   FlySprint       373   FlyInFlight       374   FlySpawn       375   FlyClose       376   FlyClosed       377   FlyOpen       378   FlyOpened       379   FlyDestroy       380   FlyDestroyed       381   FlyRebuild       382   FlyCustom0       383   FlyCustom1       384   FlyCustom2       385   FlyCustom3       386   FlyDespawn       387   FlyHold       388   FlyDecay       389   FlyBowPull       390   FlyBowRelease       391   FlyShipStart       392   FlyShipMoving       393   FlyShipStop       394   FlyGroupArrow       395   FlyArrow       396   FlyCorpseArrow       397   FlyGuideArrow       398   FlySway       399   FlyDruidCatPounce       400   FlyDruidCatRip       401   FlyDruidCatRake       402   FlyDruidCatRavage       403   FlyDruidCatClaw       404   FlyDruidCatCower       405   FlyDruidBearSwipe       406   FlyDruidBearBite       407   FlyDruidBearMaul       408   FlyDruidBearBash       409   FlyDragonTail       410   FlyDragonStomp       411   FlyDragonSpit       412   FlyDragonSpitHover       413   FlyDragonSpitFly       414   FlyEmoteYes       415   FlyEmoteNo       416   FlyJumpLandRun       417   FlyLootHold       418   FlyLootUp       419   FlyStandHigh       420   FlyImpact       421   FlyLiftOff       422   FlyHover       423   FlySuccubusEntice       424   FlyEmoteTrain       425   FlyEmoteDead       426   FlyEmoteDanceOnce       427   FlyDeflect       428   FlyEmoteEatNoSheathe       429   FlyLand       430   FlySubmerge       431   FlySubmerged       432   FlyCannibalize       433   FlyArrowBirth       434   FlyGroupArrowBirth       435   FlyCorpseArrowBirth       436   FlyGuideArrowBirth       437   FlyEmoteTalkNoSheathe       438   FlyEmotePointNoSheathe       439   FlyEmoteSaluteNoSheathe       440   FlyEmoteDanceSpecial       441   FlyMutilate       442   FlyCustomSpell01       443   FlyCustomSpell02       444   FlyCustomSpell03       445   FlyCustomSpell04       446   FlyCustomSpell05       447   FlyCustomSpell06       448   FlyCustomSpell07       449   FlyCustomSpell08       450   FlyCustomSpell09       451   FlyCustomSpell10       452   FlyStealthRun       453   FlyEmerge       454   FlyCower       455   FlyGrab       456   FlyGrabClosed       457   FlyGrabThrown       458   ToFly       459   ToHover       460   ToGround       461   FlyToFly       462   FlyToHover       463   FlyToGround       464   Settle       465   FlySettle       466   DeathStart       467   DeathLoop       468   DeathEnd       469   FlyDeathStart       470   FlyDeathLoop       471   FlyDeathEnd       472   DeathEndHold       473   FlyDeathEndHold       474   Strangulate       475   FlyStrangulate       476   ReadyJoust       477   LoadJoust       478   HoldJoust       479   FlyReadyJoust       480   FlyLoadJoust       481   FlyHoldJoust       482   AttackJoust       483   FlyAttackJoust       484   ReclinedMount       485   FlyReclinedMount       486   ToAltered       487   FromAltered       488   FlyToAltered       489   FlyFromAltered       490   InStocks       491   FlyInStocks       492   VehicleGrab       493   VehicleThrow       494   FlyVehicleGrab       495   FlyVehicleThrow       496   ToAlteredPostSwap       497   FromAlteredPostSwap       498   FlyToAlteredPostSwap       499   FlyFromAlteredPostSwap       500   ReclinedMountPassenger       501   FlyReclinedMountPassenger       502   Carry2H       503   Carried2H       504   FlyCarry2H       505   FlyCarried2H
    There is also a hook that can be registered for creatures for when a player emotes to them. So you would react like this:

    Code:
    function teszt_OnEmote(event, pPlayer, pUnit, emoteId)
        if emoteId == 4 and pUnit:GetEntry() == 1 then
        print("EmoteID 4 returned successfully by player: "..pPlayer:GetName().."!")
        end
    end
    
    RegisterServerHook(8, "teszt_OnEmote")
    Last edited by stoneharry; 07-27-2010 at 04:47 AM.

  5. #5
    covert_cat's Avatar Member
    Reputation
    55
    Join Date
    Sep 2009
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh. I didn't know 16 was for emotes. Thanks lol. That'll help me too.

  6. #6
    Hadesminion13's Avatar Member
    Reputation
    16
    Join Date
    Sep 2008
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To be honest I didn't even know 16 was a possible choice for chat messages.
    Thanks stoneharry +Rep

Similar Threads

  1. Help with Custom Instance + rep
    By BroMaster in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 01-10-2008, 09:49 AM
  2. Help with custom races , please.
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-29-2007, 05:51 PM
  3. Help with custom races , please.
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 12-29-2007, 04:55 PM
  4. I need help with custom weapon...
    By drewstersupreme in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-21-2007, 01:25 PM
  5. Please help with custom items
    By meraz9000 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 09-07-2007, 05:05 PM
All times are GMT -5. The time now is 08:09 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