Jump to content
  • 0

script that detect a player if he/she is in a party or a guild


Question

4 answers to this question

Recommended Posts

Posted

This is for party : 

 

prontera,150,150,0    script    Sample    100,{
    if (getcharid(1) == 0) {
        mes "You are not in a party " +strcharinfo(0);
        close;
    } else {
        mes "You are in a party " + strcharinfo(0);
        close;
    } 
        
}

For guild : replace getcharid(1) to getcharid(2)

Refer : http://rathena.org/wiki/Getcharid

  • Upvote 1
Posted

This is for party : 

 

prontera,150,150,0    script    Sample    100,{
    if (getcharid(1) == 0) {
        mes "You are not in a party " +strcharinfo(0);
        close;
    } else {
        mes "You are in a party " + strcharinfo(0);
        close;
    } 
        
}

For guild : replace getcharid(1) to getcharid(2)

Refer : http://rathena.org/wiki/Getcharid

 

 

thanks for this! :) one more question.

 

if I changed (getcharid(1) == 0)  to (getcharid(1) == 1) 

it would mean that the player I am looking for, is a player in a party?

So it's like, '0' means no party, and '1' means has a party?

Posted

This is for party : 

 

prontera,150,150,0    script    Sample    100,{
    if (getcharid(1) == 0) {
        mes "You are not in a party " +strcharinfo(0);
        close;
    } else {
        mes "You are in a party " + strcharinfo(0);
        close;
    } 
        
}

For guild : replace getcharid(1) to getcharid(2)

Refer : http://rathena.org/wiki/Getcharid

 

 

thanks for this! :) one more question.

 

if I changed (getcharid(1) == 0)  to (getcharid(1) == 1) 

it would mean that the player I am looking for, is a player in a party?

So it's like, '0' means no party, and '1' means has a party?

Instead of (getcharid(1) == 1) use (getcharid(1) != 0) since it returns the party id number.

Posted

 

This is for party : 

 

prontera,150,150,0    script    Sample    100,{
    if (getcharid(1) == 0) {
        mes "You are not in a party " +strcharinfo(0);
        close;
    } else {
        mes "You are in a party " + strcharinfo(0);
        close;
    } 
        
}

For guild : replace getcharid(1) to getcharid(2)

Refer : http://rathena.org/wiki/Getcharid

 

 

thanks for this! :) one more question.

 

if I changed (getcharid(1) == 0)  to (getcharid(1) == 1) 

it would mean that the player I am looking for, is a player in a party?

So it's like, '0' means no party, and '1' means has a party?

Instead of (getcharid(1) == 1) use (getcharid(1) != 0) since it returns the party id number.

Ok. Thanks for this Patskie. SOLVED! :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...