Jump to content
  • 0

Only guild members can talk


Noctis

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

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

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   4
  • Joined:  10/07/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   13
  • Joined:  02/17/15
  • Last Seen:  

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