Jump to content

[Script Command] npcisnear 1.0.0


1 Screenshot

About This File

This commands verify if any NPC is near the distance of a player. Can be useful for some script restrictions.

Script Sample:

prontera,150,150,5	Script	Curious Boy	90,{

	.@n$ = "[Curious Boy]";
  
  	.@distance = 5;
  
	mes .@n$;

  	if(isnpcsnear(getcharid(0), .@distance))
    	 mes "Sorry, I will only talk with you when no NPC is near you!";
    else
      	mes "Hi!";
  
  	close;
}

 

  • Upvote 3

×
×
  • Create New...