Unique Scripter Posted December 28, 2023 Group: Members Topic Count: 4 Topics Per Day: 0.01 Content Count: 9 Reputation: 0 Joined: 09/07/23 Last Seen: November 30, 2024 Share Posted December 28, 2023 I want to make npc script only 1 player can interact with it at the same time. It possible? Quote Link to comment Share on other sites More sharing options...
0 pajodex Posted December 28, 2023 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: Monday at 05:33 PM Share 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 Link to comment Share on other sites More sharing options...
0 Unique Scripter Posted December 29, 2023 Group: Members Topic Count: 4 Topics Per Day: 0.01 Content Count: 9 Reputation: 0 Joined: 09/07/23 Last Seen: November 30, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 Rynbef Posted December 29, 2023 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: Saturday at 06:31 PM Share Posted December 29, 2023 U need to modify it a bit. only one player access.txt Rynbef~ Quote Link to comment Share on other sites More sharing options...
0 Unique Scripter Posted December 30, 2023 Group: Members Topic Count: 4 Topics Per Day: 0.01 Content Count: 9 Reputation: 0 Joined: 09/07/23 Last Seen: November 30, 2024 Author Share Posted December 30, 2023 Thank you so much @pajodex @Rynbef Quote Link to comment Share on other sites More sharing options...
Question
Unique Scripter
I want to make npc script only 1 player can interact with it at the same time.
It possible?
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.