Jump to content
  • 0

How to make an npc speak automatically?


Question

4 answers to this question

Recommended Posts

  • 1
Posted (edited)
prontera,1,1,1 script Hello,66,5,5,{
end;
OnTouch:
npctalk "Hello world";
end;
}

 

Edited by Mael
Use codebox
  • Upvote 1
  • 0
Posted
On 2/23/2022 at 1:37 AM, Start_ said:

prontera,1,1,1 script Hello,66,5,5,{

end;

OnTouch:

npctalk "Hello world";

end;

}

but that way you did, it is necessary to click on the npc, I want it to activate with the presence of the character

  • 0
Posted
On 2/24/2022 at 10:13 AM, PoringSpr said:

but that way you did, it is necessary to click on the npc, I want it to activate with the presence of the character

prontera,100,100,1	script	WalkNearMe	100,10,10,{
end;
OnTouch:
	npctalk "Hello world";
	end;
}

It is activated by the presence of the character. The "10,10" after "100," in the NPC header refers to the x and y distance from the NPC with which a character can "bump" into the NPC and trigger the OnTouch: event.

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