Jump to content
  • 0

How to create npc script can use only 1 player at the same time?


Question

4 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...