Thread: Diologue

Results 1 to 4 of 4
  1. #1 Diologue 
    Registered Member
    Join Date
    Aug 2013
    Posts
    293
    Thanks given
    13
    Thanks received
    8
    Rep Power
    5
    I need Help

    I want my friend to make a npc so when u login and talk to them they give u some txt about server about 3 or 4 chatbox things but he no know how?
    Reply With Quote  
     

  2. #2  
    Catherby Developer
    Mini Slurpee's Avatar
    Join Date
    Apr 2011
    Posts
    747
    Thanks given
    80
    Thanks received
    86
    Rep Power
    31
    Example ..

    Npc id 2538
    Add this in Actionhandler.java in public void firstClickNpc(int npcType) {
    Code:
     case ####: //NPC ID
                c.getDH().sendDialogues(###, -1); //Dialogue ID
                break;
    Then you add this in dialoguehandler.java

    Code:
    case ###: // add a dialogue ID any number for example 101 but make sure it's not taken and where it i said above the dialouge id you enter it there.
    			sendNpcChat4("Type some text here", "type text for the next line", "3rd line here ", 
    						"4th line here", c.talkingNpc, "ADD YOUR NPC NAME HERE.");
    			c.nextChat = 0;
    		break;
    & you're done.
    Attached image
    “I have not failed, I've just found 10,000 ways that won't work.”
    “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
    Reply With Quote  
     

  3. #3  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    This can be easily searched using the search bar bro.
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Aug 2013
    Posts
    1,163
    Thanks given
    273
    Thanks received
    156
    Rep Power
    445
    Quote Originally Posted by 2nubs1cup View Post
    This can be easily searched using the search bar bro.
    Yup true, but if he posts at help section, you can get infraction for it, to tell to him that he can use search bar
    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

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