PoringSpr Posted February 23 Share Posted February 23 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 Share Posted March 1 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 Share Posted February 23 (edited) prontera,1,1,1 script Hello,66,5,5,{ end; OnTouch: npctalk "Hello world"; end; } Edited February 24 by Mael Use codebox 1 Quote Link to comment Share on other sites More sharing options...
1 Rynbef Posted February 28 Share Posted February 28 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 Author Share Posted February 24 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...
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