PoringSpr Posted February 23, 2022 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
0 Skorm Posted March 1, 2022 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
1 Start_ Posted February 23, 2022 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
1 Rynbef Posted February 28, 2022 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
0 PoringSpr Posted February 24, 2022 Author 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
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.
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.