Thread: npc talking

Results 1 to 2 of 2
  1. #1 npc talking 
    Dutch Knight
    Explorz's Avatar
    Join Date
    Feb 2008
    Age
    27
    Posts
    519
    Thanks given
    10
    Thanks received
    6
    Rep Power
    90
    How to make a npc in Delta talking and keep repeating it?

    Just above his head
    Reply With Quote  
     

  2. #2  
    Registered Member
    Apower's Avatar
    Join Date
    Sep 2008
    Age
    27
    Posts
    824
    Thanks given
    7
    Thanks received
    15
    Rep Power
    94
    NPChandler
    Search for
    public void process() {
    You should see:

    public void process() {
    for (int i = 0; i < maxNPCSpawns; i++) {
    if (npcs[i] == null)
    continue;
    npcs[i].clearUpdateFlags();
    }
    for (int i = 0; i < maxNPCSpawns; i++) {
    if (npcs[i] != null) {
    annoyNpcs(i);
    Under that
    (maybe exist) add

    if (npcs[i].npcType == 0 && misc.random2(15) == 1) {
    npcs[i].updateRequired = true;
    npcs[i].textUpdateRequired = true;
    npcs[i].textUpdate = "!!Message!!";
    }
    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
  •