I just share my guild storage for Hercules
Code:
payon,130,127,3 script Guild Storage 4_RAGFES_03,{
mes "[Warehouse Manager]";
mes "How are you? We are specialized in guild warehouses. This is our ^0000cdstory^000000:";
mes "Why can't guild members share a storage? We started off with that simple question.";
next;
mes "[Warehouse Manager]";
mes "You can open the warehouse for 1000 Zeny or look up the usage history of the guild.";
mes "How can I help you?";
next;
if( select( "Open guild warehouse:cancel" ) == 1 ){
if (Zeny < 1000){
mes "[Warehouse Manager]";
mes "I am afraid you do not have enough money to settle the fee.";
mes "The fee is 1000 Zeny.";
close;
}
if (guildopenstorage() == 0) {
Zeny -= 1000;
close;
}
else if (guildopenstorage() == 1) {
mes "I'm sorry but another guild member is using the guild storage";
mes "right now. Please wait until that person is finished.";
close;
}
else if (guildopenstorage() == 2) {
mes "[Warehouse Manager]";
mes "The guild storage is only available for guild members.";
close;
}
else if (guildopenstorage() == 3) {
mes "[Warehouse Manager]";
mes "It seems that it is not yet possible for your guild to use the guild warehouse.";
mes "Please come back after checking the guild skill and the permission to access the warehouse.";
close;
}
else if (guildopenstorage() == 4) {
mes "You doesnt have permission to use guild storage";
close;
}
end;
}else{
end;
}
end;
}