Thread: [317]How do I get a npc to talk?

Results 1 to 7 of 7
  1. #1 [317]How do I get a npc to talk? 
    The Ole Coot
    Guest
    If you could plz tell where and which file it is in if i using 317source+client.>.<
    a tut link or ur own tut dont matter can help any. thx:woot:

    -The Ole Coot
    Reply With Quote  
     

  2. #2  
    Registered Member
    G0nzo's Avatar
    Join Date
    Feb 2009
    Posts
    4,960
    Thanks given
    514
    Thanks received
    546
    Rep Power
    1735
    u mean like on top of there head??

    or like click talk and like real rs dialog?
    Computer Science Graduate, Java Expert
    Need help with something? PM me
    Reply With Quote  
     

  3. #3  
    The Ole Coot
    Guest
    on top heads kind sir =]
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Aug 2008
    Posts
    162
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    ummm i wish i had some codes on this computer... i think its something like

    if (misc.random(30) == 1){
    npcText = "HI!";
    npctextupdaterequired = true;
    }


    something like that.
    Reply With Quote  
     

  5. #5  
    The Ole Coot
    Guest
    is it in npchandler.java? if so i searched around stuff in what u posted and could find anything. stilll need help
    Reply With Quote  
     

  6. #6  
    The Ole Coot
    Guest
    i really need help anyone?
    Reply With Quote  
     

  7. #7 i can help 
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    ok i can help you...
    first you wat source do u have? delta? czar?
    if it's not delta or czar...then do the following
    first back up the files npchandler.java
    second open npchandler.java
    third do ctrl+f and search for
    Code:
    welcome to
    or search around in game that has a npc saying something above their head
    once you've found one
    find the break or the
    Code:
    }
    and add in some thing like this
    Code:
            if (npcs[i].npcType == 3352) {
                            if (misc.random2(30) <= 2) {
                                npcs[i].updateRequired = true;
                                npcs[i].textUpdateRequired = true;
                                npcs[i].textUpdate = "Welcome To FROZEN-OWNAGE!!!";
                            }
                        }
    this will make the npc id
    3352
    will say
    Welcome to FROZEN-OWNAGE!!!
    now

    you will need to go to autospwn.cfg
    go to the very bottom
    press enter after the last line like so
    Code:
    spawn = 795	3056	9564	0	3057	9565	3055	9563	2	ice queen
    spawn = 795	3055	9562	0	3056	9563	3054	9561	2	ice queen
    spawn = 795	3062	9573	0	3063	9574	3061	9572	2	ice queen
           (    SPACE    HERE    )
    //-----------//
    [ENDOFSPAWNLIST]
    now let me explain the numbers

    795
    would be the npc id ice queen
    3056 9563 3054 9561
    these represent the "box" area the npc will walk within
    first is the top left of the box area
    the second is the bottom left
    third top right
    fourth is the bottom right


    hope this helped
    3055 would be the cord x
    9562 would be the cord y
    Last edited by xSelseor; 04-25-2009 at 06:38 AM. Reason: wasnt finished...
    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

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
  •