Jump to content
  • 0

H>Guild House Rental


Sallycantdance

Question


  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

hello i would like to ask how to put a certain guild to be able to enter the specific area using a certain item ty
 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  250
  • Reputation:   21
  • Joined:  06/04/14
  • Last Seen:  

Hi @GM Winter,

I have created script. This is just a basic script which I think would answer your request.

 

So basically, this script requires an item to enter but it doesn't get or delete the item from your user's inventory.

What you have to do is create an usable item which item script is will give the user a rental etc item meaning the ticket will have a duration on their inventory. 

I hope it makes sense.

prontera,150,150,5	script	Guild Room	123,{
	mes "[Guild Room]";
	mes "Hey, there. Do you want to enter Guild";
	next;
	switch(select("Yes:No")) {
	case 1:
			if (countitem(1234) > 0) {
				mes "[Guild Room]";
				mes "Oh, awesome, I see you have a ticket to enter the Guild Room.";
				mes "Ready? Let's do this.";
				next;
				warp "payon",123,123;
				close;
			}
		else {
			mes "[Guild Room]";
			mes "Dude, you do not have the ticket to enter the Guild Room.";
			mes " ";
			mes "Sorry but you cannot enter.";
			close;
		}
	case 2:
		mes "[Guild Room]";
		mes "Well, come back if you change your mind.";
		close;
	}
}

Change the 1234 to your etc item ID.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

4 hours ago, Ronald said:

Hi @GM Winter,

I have created script. This is just a basic script which I think would answer your request.

 

So basically, this script requires an item to enter but it doesn't get or delete the item from your user's inventory.

What you have to do is create an usable item which item script is will give the user a rental etc item meaning the ticket will have a duration on their inventory. 

I hope it makes sense.

prontera,150,150,5	script	Guild Room	123,{
	mes "[Guild Room]";
	mes "Hey, there. Do you want to enter Guild";
	next;
	switch(select("Yes:No")) {
	case 1:
			if (countitem(1234) > 0) {
				mes "[Guild Room]";
				mes "Oh, awesome, I see you have a ticket to enter the Guild Room.";
				mes "Ready? Let's do this.";
				next;
				warp "payon",123,123;
				close;
			}
		else {
			mes "[Guild Room]";
			mes "Dude, you do not have the ticket to enter the Guild Room.";
			mes " ";
			mes "Sorry but you cannot enter.";
			close;
		}
	case 2:
		mes "[Guild Room]";
		mes "Well, come back if you change your mind.";
		close;
	}
}

Change the 1234 to your etc item ID.

thank you @Ronald is there anyway i can register a certain guild there to let a specific guild in that room

Edited by GM Winter
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   19
  • Joined:  12/24/18
  • Last Seen:  

36 minutes ago, GM Winter said:

thank you @Ronald is there anyway i can register a certain guild there to let a specific guild in that room

 

You can use the one in this link. 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  250
  • Reputation:   21
  • Joined:  06/04/14
  • Last Seen:  

1 hour ago, GM Winter said:

thank you @Ronald is there anyway i can register a certain guild there to let a specific guild in that room

Sorry to ask but, are you looking for something like one?

If Castle owner is this guild then they can enter this Map. 

I believe you can basically use the flag NPC condition from a castle. 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  225
  • Topics Per Day:  0.14
  • Content Count:  798
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

5 hours ago, Mice said:

 

You can use the one in this link. 

 

thank you for this 

 

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