caspa Posted April 3, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted April 3, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
Brian Posted April 3, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted April 3, 2013 if (getequipid(EQI_HEAD_MID) == -1) { mes "You need to wear a middle headgear to continue."; close; } Quote Link to comment Share on other sites More sharing options...
caspa Posted April 3, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted April 3, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
caspa Posted April 4, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted April 4, 2013 (edited) Thx so much it works perfectly fine.... Edited April 4, 2013 by caspa Quote Link to comment Share on other sites More sharing options...
Euphy Posted April 4, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted April 4, 2013 Read Basic_Scripting; these are all very basic requests. You'll certainly be able to figure it out. Quote Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.