Lord Ganja Posted April 28, 2013 Group: Members Topic Count: 141 Topics Per Day: 0.03 Content Count: 444 Reputation: 22 Joined: 06/18/12 Last Seen: August 11, 2018 Share Posted April 28, 2013 (edited) Could anyone give me a script that detects a player if he/she is in a guild or party? Thanks in advance! Edited April 28, 2013 by Lord Ganja Quote Link to comment Share on other sites More sharing options...
Patskie Posted April 28, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 14 hours ago Share Posted April 28, 2013 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 1 Quote Link to comment Share on other sites More sharing options...
Lord Ganja Posted April 28, 2013 Group: Members Topic Count: 141 Topics Per Day: 0.03 Content Count: 444 Reputation: 22 Joined: 06/18/12 Last Seen: August 11, 2018 Author Share Posted April 28, 2013 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? Quote Link to comment Share on other sites More sharing options...
Patskie Posted April 28, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 14 hours ago Share Posted April 28, 2013 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. Quote Link to comment Share on other sites More sharing options...
Lord Ganja Posted April 28, 2013 Group: Members Topic Count: 141 Topics Per Day: 0.03 Content Count: 444 Reputation: 22 Joined: 06/18/12 Last Seen: August 11, 2018 Author Share Posted April 28, 2013 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! Quote Link to comment Share on other sites More sharing options...
Question
Lord Ganja
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 GanjaLink to comment
Share on other sites
4 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.