PoringSpr Posted February 23, 2022 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 12/08/16 Last Seen: May 30, 2022 Share Posted February 23, 2022 Hello guys, I wonder how does it for an npc to speak automatically when we get close to it. Any help I will be grateful for. Quote Link to comment Share on other sites More sharing options...
0 Skorm Posted March 1, 2022 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted March 1, 2022 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. Quote Link to comment Share on other sites More sharing options...
1 Start_ Posted February 23, 2022 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 12 hours ago Share Posted February 23, 2022 (edited) prontera,1,1,1 script Hello,66,5,5,{ end; OnTouch: npctalk "Hello world"; end; } Edited February 24, 2022 by Mael Use codebox 1 Quote Link to comment Share on other sites More sharing options...
1 Rynbef Posted February 28, 2022 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: Yesterday at 06:19 AM Share Posted February 28, 2022 U could do it like the lhz dungeon warps. https://github.com/rathena/rathena/blob/master/npc/warps/dungeons/lhz_dun.txt lhz_cube,59,136,0 script cubew02-3 45,1,1,{ callfunc "randomw"; end; } Rynbef~ Quote Link to comment Share on other sites More sharing options...
0 PoringSpr Posted February 24, 2022 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 12/08/16 Last Seen: May 30, 2022 Author Share Posted February 24, 2022 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 Quote Link to comment Share on other sites More sharing options...
Question
PoringSpr
Hello guys, I wonder how does it for an npc to speak automatically when we get close to it.
Any help I will be grateful for.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.