Thread: 317 NPC Emotes

Results 1 to 2 of 2
  1. #1 317 NPC Emotes 
    HTML5/CSS3/JQuery
    Griffon's Avatar
    Join Date
    Feb 2013
    Posts
    275
    Thanks given
    61
    Thanks received
    38
    Rep Power
    6
    Hey! This is probably something easy as crap but I wanna make an NPC do an emote at a certain part of a dialogue. For example, i made a prestige system. I want to make it so when you click prestige in the dialogue, the npc does an emote..

    Thanks guys!

    please help me, rep++ and thanks.

    [SPOIL]




    [/SPOIL]
    Reply With Quote  
     

  2. #2  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Add this in your NPCHandler.java :

    public void doAnim(int npc, int anim) {
    if(npcs[i] != null && npcs[i].npcType == npc) {
    if(npcs[i].npcType == npc) {
    npcs[i].animNumber = anim;
    return;
    }
    }
    }
    To use it :

    Server.npcHandler.doAnim(NPC_ID, ANIM);
    Credits to : oobe
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 317 NPC Emotes
    By Shoes in forum Configuration
    Replies: 18
    Last Post: 08-17-2012, 07:35 AM
  2. Npc Emote list. [317]
    By Ho H0 Ho in forum Requests
    Replies: 2
    Last Post: 02-16-2011, 02:39 AM
  3. Here are some 317/474 npc emotes?
    By Diverse Reality in forum Snippets
    Replies: 12
    Last Post: 10-22-2010, 01:51 AM
  4. [317] Npc Attack Emotes?
    By hyt45 in forum Help
    Replies: 3
    Last Post: 07-15-2010, 10:24 PM
  5. Request 317 Npc emote list
    By ragean in forum Requests
    Replies: 0
    Last Post: 12-28-2009, 10:40 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •