Jump to content
Sign in to follow this  
daShiru

training ground barricades

Recommended Posts

pa request nmn po ng Barricades para sa Training Grounds. 

image.png.a88466e99d70f524fdc2be16e1067855.png

On and Off

 

Thank You,

Share this post


Link to post
Share on other sites
-	script	Barricade	78,{ 
OnInit:
	
	bindatcmd "gate", strnpcinfo(0)+"::Oncommand", 99,99;
	
	setcell "new_5-1",68,113,68,110,cell_walkable,0; //non walkable
	monster "new_5-1",68,113,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,112,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,111,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,110,""+getmonsterinfo(1905,0)+"",1905,1;
	
end;

Oncommand:
	if(compare([email protected]_parameters$, "open" )) goto L_open;
	else if(compare( [email protected]_parameters$, "close")) goto L_close;
	else{
		dispbottom "type - '@gate open' to open the gate";
		dispbottom "type - '@gate close' to close the gate";
	}
end;

L_close:
	setcell "new_5-1",68,113,68,110,cell_walkable,0; //non walkable
	monster "new_5-1",68,113,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,112,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,111,""+getmonsterinfo(1905,0)+"",1905,1;
	monster "new_5-1",68,110,""+getmonsterinfo(1905,0)+"",1905,1;
end;

L_open:
	announce "The Gate is now OPEN. Good Luck Adventurer.", bc_all;
	setcell "new_5-1",68,113,68,110,cell_walkable,1; //non walkable 
	atcommand "@killmonster2";
end;


}

 

yo mate.

  • Upvote 1

Share this post


Link to post
Share on other sites

thanks for this

Share this post


Link to post
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
Reply to this topic...

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

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.