Jump to content
  • 0

I need a script for a Town Requirement before he/she enter


Question

Posted (edited)

I need a script that whenever a player or guild  go to a town before he/she  can go to that specific location they  need to finish some  requirements first

 

Example town :aldebaran

 

requirements Pencil case-  738

 

 

Thank YOU

Edited by ejieswak1453

6 answers to this question

Recommended Posts

Posted

try

-	script	ItemRequirement	-1,{
OnPCLoadMapEvent:
set .@canpass,0;
getinventorylist; 
	for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){
		if(@inventorylist_id[.@i] == 738) 
			set .@canpass,1;		
	}
	if(!.@canpass){
	  dispbottom "You dont have required item.";
	  warp "savepoint",0,0;
	}
}
aldebaran	mapflag	loadevent

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