Jump to content
  • 0

Guild storage help


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  


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


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

change the close; command on the last line to end;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

Yeah it depends on what emulator you're using if the warning spawns for that. I'll modify the above script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

it works now. thank you :)

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