Jump to content
  • 0

Guild storage help


Question

Posted

This is the guild storage part of my script:

 

		case 4:
		    if(guildopenstorage() == 1){	// Guild Storage is already used

			mes "^00C5EF[Kafra Employee]^000000";
			mes "I'm sorry but another guild member is using the guild storage";
			mes "right now. Please wait until that person is finished.";
			close2;
			cutin "", 255;
			end;
			} else if(!getcharid(2)){	// No Guild

			mes "^00C5EF[Kafra Employee]^000000";
			mes "I'm sorry, but you do not have a guild.";
			mes "You must belong to a guild in order to access the guild storage.";
			close2;
			cutin "", 255;
			end;
			}
			
			mes "^00C5EF[Kafra Employee]^000000";
			mes "Here, let me open";
			mes "your Guild Storage for you.";
			mes "Thank you for using";
			mes "the Kafra Service.";
			close2;
			cutin "", 255;
			end;
The problem is, the guild storage opens without having to close the following part:

 

			mes "^00C5EF[Kafra Employee]^000000";
			mes "Here, let me open";
			mes "your Guild Storage for you.";
			mes "Thank you for using";
			mes "the Kafra Service.";
			close2;
			cutin "", 255;
			end;
I want the guild storage to open only after closing what the kafra says above.

Any help would be appreciated.

5 answers to this question

Recommended Posts

Posted


mes "^00C5EF[Kafra Employee]^000000";

mes "Here, let me open";

mes "your Guild Storage for you.";

mes "Thank you for using";

mes "the Kafra Service.";

close2;

cutin "", 255;

switch(guildopenstorage()){

case 1:

mes "^00C5EF[Kafra Employee]^000000";

mes "Oops, I'm sorry but another guild member is using the guild storage";

mes "right now. Please wait until that person is finished.";

close;

case 2:

mes "^00C5EF[Kafra Employee]^000000";

mes "Oops, I'm sorry, but you do not have a guild.";

mes "You must belong to a guild in order to access the guild storage.";

close;

default:

}

end;

  • Upvote 1
Posted (edited)

Thanks Skorm! :) but i get a warning saying 'incorrect use of close command!' it happens when 2 people tries to open the guild storage.

Edited by Phenex

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