Jump to content
  • 0

Ask Talking NPC


nobukadnezar

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

/bo Hi folks,

How to make NPC talking every certain second to public? i use it to make npc says example like this : "Hello, You can do the quest here...blabla~

i meet that on Pools NPC but i can't find the script /hum

Thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

npctalk "<message>";
sleep <ms>;
// repeat

Alternately,

while(1) {
   npctalk "<message>";
   sleep <ms>; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   28
  • Joined:  01/16/12
  • Last Seen:  

<map>,<x>,<y>,<facing> script Piya 1894,{
npctalk "This NPC can talk!";
npcwalkto <x>,<y>; // It moves!
npcstop; // Stop!
// You get the point... c:
end;
}

The command npctalk.

Edited by Sharpienero
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  


*npctalk "<message>";

This command will display a message to the surrounding area as if the NPC object 
running it was a player talking - that is, above their head and in the chat 
window. The display name of the NPC will get appended in front of the message to 
complete the effect.

   // This will make everyone in the area see the NPC greet the character
   // who just invoked it.
   npctalk "Hello "+strcharinfo(0)+" how are you";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

/omg 3 support comment less than 10 min ~

Thank You guys!

Edited by nobukadnezar
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   28
  • Joined:  01/16/12
  • Last Seen:  

/omg 3 support comment less than 10 min ~

Thank You guys!

Anytime.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

how to make npc like this 

NPC warper

player enter to the warper

say the name who enter
 

Edited by hexor9
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/26/12
  • Last Seen:  

what if random messages? like "Random 1" , "Random 2" ? how to do this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Talk every 1 second with random message

prontera,150,150,0    script    Sample    123,{
end;
Oninit:
    setarray .Messages$[0],"Random 1","Random 2";
    while (1) {
        npctalk .Messages$[rand(getarraysize(.Messages$))];
        sleep 1000;
    }
    end;
}
Edited by Capuche
Fix.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...