Jump to content
  • 0

How to make guild castle managers identify three different type of players?


Terminalia

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  10/28/17
  • Last Seen:  

Currently the guild castle managers only recognise guild master and non-guild master. The castle managers will welcome you the guild master, but they want to expel the others including the castle-owned guild members.

I wanna see the result that the castle managers will give the guild master, the guild members and non-castle-owned players different reactions.

Thanks a lot to your teaching!!!!

Edited by Terminalia
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample#prtg_cas01	4_F_KAFRA01,{
	.@gid = getcharid(1);
	.@map$ = strnpcinfo(2);
	.@guild_id = getcastledata(.@map$, 1);
	if (.@guild_id) {
		if (.@gid == .@guild_id) {
			mes "your guild owned this castle.";
			if (getcharid(0) == getguildmasterid(.@gid)) {
				mes "You're guild master.";
			}
			else {
				mes "You're guild member.";
			}
		}
		else {
			mes "Your guild doesn't own this castle.";
		}
	}
	else {
		mes "Castle aren't occupied by any guild yet.";
	}
	close;
}

something like this?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  10/28/17
  • Last Seen:  

On 7/4/2018 at 5:30 PM, Emistry said:

prontera,155,181,5	script	Sample#prtg_cas01	4_F_KAFRA01,{
	.@gid = getcharid(1);
	.@map$ = strnpcinfo(2);
	.@guild_id = getcastledata(.@map$, 1);
	if (.@guild_id) {
		if (.@gid == .@guild_id) {
			mes "your guild owned this castle.";
			if (getcharid(0) == getguildmasterid(.@gid)) {
				mes "You're guild master.";
			}
			else {
				mes "You're guild member.";
			}
		}
		else {
			mes "Your guild doesn't own this castle.";
		}
	}
	else {
		mes "Castle aren't occupied by any guild yet.";
	}
	close;
}

something like this?

Yes, thank you very much!!!

I'll try it later.

 

Next question:

Is it possible to set different dialogue for different guild member positions?

Thank you a lot for answering again!!!!

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