Jump to content
  • 0

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


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Could anyone give me a script that detects a player if he/she is in a guild or party?

 

Thanks in advance!

Edited by Lord Ganja
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

 

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! :)

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