Jump to content
  • 0

Only guild members can talk


Question

Posted (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 by Noctis

7 answers to this question

Recommended Posts

  • 0
Posted
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..........

 

  • Upvote 1
  • 0
Posted (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 by Noctis
  • 0
Posted (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 by Noctis
  • 0
Posted
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;
}

 

  • Upvote 1
  • 0
Posted
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!

  • 0
Posted (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 by Noctis

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