Noctis Posted June 27, 2017 Posted June 27, 2017 (edited) Whats the script that if its a guild member he say mes "I see that ur a guild member"; goto L_function if not mes "you dont have a guild"; close; Edited June 27, 2017 by Noctis Quote
0 Deleted User Posted June 27, 2017 Posted June 27, 2017 36 minutes ago, Noctis said: Whats the script that if its a guild member he say mes "I see that ur a guild member"; goto L_function if not mes "you dont have a guild"; close; if( !getcharid(2) ) { mes "I'm sorry, but you are not in a Guild."; close; } mes "Hi! Your a Guild Member."; mes "How may i help you?"; next; do your function.......... 1 Quote
0 Noctis Posted June 27, 2017 Author Posted June 27, 2017 (edited) 6 minutes ago, Kaze said: if( !getcharid(2) ) { mes "I'm sorry, but you are not in a Guild."; close; } mes "Hi! Your a Guild Member."; mes "How may i help you?"; next; do your function.......... Thx dude Edited June 27, 2017 by Noctis Quote
0 Noctis Posted June 27, 2017 Author Posted June 27, 2017 (edited) 10 minutes ago, Kaze said: if( !getcharid(2) ) { mes "I'm sorry, but you are not in a Guild."; close; } mes "Hi! Your a Guild Member."; mes "How may i help you?"; next; do your function.......... Btw do you know the script that he say the guild name that Im in? like "mes "Hi! Your a Guild Member of the #guildname#."; (the guild name with color) @Kaze Edited June 27, 2017 by Noctis Quote
0 valesti Posted June 27, 2017 Posted June 27, 2017 24 minutes ago, Noctis said: Btw do you know the script that he say the guild name that Im in? like "mes "Hi! Your a Guild Member of the #guildname#."; (the guild name with color) @Kaze https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3122 Quote
0 Deleted User Posted June 27, 2017 Posted June 27, 2017 1 hour ago, Noctis said: Btw do you know the script that he say the guild name that Im in? like "mes "Hi! Your a Guild Member of the #guildname#."; (the guild name with color) @Kaze prontera.gat, 155, 182, 4 script Guild Information 4_F_KAFRA1,{ .@n$ = "[ Guild Information ]"; .@id = getcharid(2); if( .@id == 0 ) { mes .@n$; mes "Sorry, you are not in a guild."; close; } if( strcharinfo(0) != getguildmaster(.@id) ) { mes .@n$; mes "Sorry, you don't own the guild you are in."; close; } mes .@n$; mes "Your the Guild Member of: ^00AA00"+ getguildname(.@id) +"^000000"; close; } 1 Quote
0 Noctis Posted June 27, 2017 Author Posted June 27, 2017 8 hours ago, Kaze said: prontera.gat, 155, 182, 4 script Guild Information 4_F_KAFRA1,{ .@n$ = "[ Guild Information ]"; .@id = getcharid(2); if( .@id == 0 ) { mes .@n$; mes "Sorry, you are not in a guild."; close; } if( strcharinfo(0) != getguildmaster(.@id) ) { mes .@n$; mes "Sorry, you don't own the guild you are in."; close; } mes .@n$; mes "Your the Guild Member of: ^00AA00"+ getguildname(.@id) +"^000000"; close; } thx! Quote
0 Noctis Posted June 27, 2017 Author Posted June 27, 2017 (edited) 9 hours ago, Kaze said: prontera.gat, 155, 182, 4 script Guild Information 4_F_KAFRA1,{ .@n$ = "[ Guild Information ]"; .@id = getcharid(2); if( .@id == 0 ) { mes .@n$; mes "Sorry, you are not in a guild."; close; } if( strcharinfo(0) != getguildmaster(.@id) ) { mes .@n$; mes "Sorry, you don't own the guild you are in."; close; } mes .@n$; mes "Your the Guild Member of: ^00AA00"+ getguildname(.@id) +"^000000"; close; } It says "Your the guild member of NULL" instead of my guild name [EDIT] nvm is solved Edited June 27, 2017 by Noctis Quote
Question
Noctis
Whats the script that if its a guild member he say
mes "I see that ur a guild member";
goto L_function
if not
mes "you dont have a guild";
close;
Edited by Noctis7 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.