Jump to content
  • 0

Request: party


cadz

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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;

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Also, be sure they don't create a party after joining the event, unless you want them to do it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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 by cadz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

okay thanks i'll be back if its not working thanks a lot...

working now topic close thanks a lot.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Yeah, it was just a friendly reminder ^^

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