Unique Scripter Posted December 28, 2023 Posted December 28, 2023 I want to make npc script only 1 player can interact with it at the same time. It possible? Quote
0 pajodex Posted December 28, 2023 Posted December 28, 2023 yes it is possible. prontera,150,180,0 script One Player Only 100,{ if ( .npc_access ) { mes "Some one is accessing."; close; } .npc_access = true; mes "You are the one only being able to access until you press 'close'"; close2; .npc_access = false; end; } This will come with several loop holes and you need to figure it out yourself on how to prevent it and also properly reset the variable used. Quote
0 Unique Scripter Posted December 29, 2023 Author Posted December 29, 2023 On 12/28/2023 at 11:53 PM, pajodex said: yes it is possible. prontera,150,180,0 script One Player Only 100,{ if ( .npc_access ) { mes "Some one is accessing."; close; } .npc_access = true; mes "You are the one only being able to access until you press 'close'"; close2; .npc_access = false; end; } This will come with several loop holes and you need to figure it out yourself on how to prevent it and also properly reset the variable used. If some user talk with npc and alt+f4 next player can talk with it? Quote
0 Rynbef Posted December 29, 2023 Posted December 29, 2023 U need to modify it a bit. only one player access.txt Rynbef~ Quote
0 Unique Scripter Posted December 30, 2023 Author Posted December 30, 2023 Thank you so much @pajodex @Rynbef Quote
Question
Unique Scripter
I want to make npc script only 1 player can interact with it at the same time.
It possible?
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.