Lord Ganja Posted April 28, 2013 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
Patskie Posted April 28, 2013 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
Lord Ganja Posted April 28, 2013 Author 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
Patskie Posted April 28, 2013 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
Lord Ganja Posted April 28, 2013 Author 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
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 Ganja4 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.