Jump to content

Question

Posted

/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

8 answers to this question

Recommended Posts

Posted (edited)

<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
Posted

*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";

Posted (edited)

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...