Jump to content
  • 0

i'm not wearing any middle headgear


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

how to create an npc that if i'm not wearing any middle headgear i can't enter the map or the npc won't let me warp to the area.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

if (getequipcardid(EQI_HEAD_MID,0) != 4198) {

mes "A Maya Purple Card must be slotted in your middle headgear.";

close;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

if (getequipid(EQI_HEAD_MID) == -1) {

mes "You need to wear a middle headgear to continue.";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

if (getequipid(EQI_HEAD_MID) == -1) {
	mes "You need to wear a middle headgear to continue.";
	close;
}

Thank you sir bry what about like

you need to be wearing a middle headgear and that headgear has to have a maya purple card before you can enter.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

	while( .@i < 4 && getequipcardid( EQI_HEAD_MID,.@i ) != 4198 ) .@i++;
	if( .@i == 4 ) {
		mes "You need to wear a middle headgear and a maya purple to continue.";
		close;
	}
	close;

EDIT: you're too fast Euphy /sob

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

Thx so much it works perfectly fine.... 

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Read Basic_Scripting; these are all very basic requests. You'll certainly be able to figure it out.

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