Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×

[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...