Unique Scripter Posted December 28, 2023 Group: Members Topic Count: 3 Topics Per Day: 0.01 Content Count: 7 Reputation: 0 Joined: 09/07/23 Last Seen: 11 hours ago 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: 78 Topics Per Day: 0.03 Content Count: 436 Reputation: 167 Joined: 12/12/17 Last Seen: Yesterday at 09:38 AM 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: 3 Topics Per Day: 0.01 Content Count: 7 Reputation: 0 Joined: 09/07/23 Last Seen: 11 hours ago 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: 44 Topics Per Day: 0.01 Content Count: 898 Reputation: 120 Joined: 05/23/12 Last Seen: May 2 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: 3 Topics Per Day: 0.01 Content Count: 7 Reputation: 0 Joined: 09/07/23 Last Seen: 11 hours ago 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.