Jump to content
  • 0

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


ejieswak1453

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  10/31/13
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...