caspa Posted April 3, 2013 Posted April 3, 2013 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. Quote
Euphy Posted April 3, 2013 Posted April 3, 2013 if (getequipcardid(EQI_HEAD_MID,0) != 4198) { mes "A Maya Purple Card must be slotted in your middle headgear."; close; } 1 Quote
Brian Posted April 3, 2013 Posted April 3, 2013 if (getequipid(EQI_HEAD_MID) == -1) { mes "You need to wear a middle headgear to continue."; close; } Quote
caspa Posted April 3, 2013 Author Posted April 3, 2013 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. Quote
Capuche Posted April 3, 2013 Posted April 3, 2013 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 1 Quote
caspa Posted April 4, 2013 Author Posted April 4, 2013 (edited) Thx so much it works perfectly fine.... Edited April 4, 2013 by caspa Quote
Euphy Posted April 4, 2013 Posted April 4, 2013 Read Basic_Scripting; these are all very basic requests. You'll certainly be able to figure it out. Quote
Question
caspa
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.
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.