cadz Posted November 29, 2012 Posted November 29, 2012 hi there what is the code that player have party cannot enter in a certain event. thanks in advance this is the script if( Class == Job_Novice ){ mes "Novice cant join."; close; } mes "[Mr. Manager]"; mes "Hello What can I do for you?"; next; Quote
KeyWorld Posted November 29, 2012 Posted November 29, 2012 getcharid(1) return the party_id of the character. So basically: if ( getcharid(1) ) mes "You have a party !"; else mes "You don't have a party !"; close; Quote
Ryokem Posted November 29, 2012 Posted November 29, 2012 Also, be sure they don't create a party after joining the event, unless you want them to do it. Quote
cadz Posted November 29, 2012 Author Posted November 29, 2012 (edited) i just want those players have party cannot enter. they are abusing the LMS if( Class == Job_Novice ){ mes "Novice cant join."; close; } if ( getcharid(1) ) mes "You have a party you cannot enter"; close; mes "[Mr. Manager]"; mes "Hello What can I do for you?"; next; is this correct? Edited November 29, 2012 by cadz Quote
KeyWorld Posted November 29, 2012 Posted November 29, 2012 i just want those players have party cannot enter. they are abusing the LMS if( Class == Job_Novice ){ mes "Novice cant join."; close; } if ( getcharid(1) ) mes "You have a party you cannot enter"; close; mes "[Mr. Manager]"; mes "Hello What can I do for you?"; next; is this correct? It's missing bracket. if( Class == Job_Novice ){ mes "Novice cant join."; close; } if ( getcharid(1) ) { mes "You have a party you cannot enter"; close; } mes "[Mr. Manager]"; mes "Hello What can I do for you?"; next; Quote
cadz Posted November 29, 2012 Author Posted November 29, 2012 okay thanks i'll be back if its not working thanks a lot... working now topic close thanks a lot. Quote
AnnieRuru Posted November 29, 2012 Posted November 29, 2012 lol there's pvp_noparty and pvp_noguild mapflag no need to do such checks @Ryokem there's also partylock mapflag, but I think no need to use here Quote
Ryokem Posted November 29, 2012 Posted November 29, 2012 Yeah, it was just a friendly reminder ^^ Quote
Question
cadz
hi there what is the code that player have party cannot enter in a certain event. thanks in advance
this is the script
7 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.