Jump to content
  • 0

H>Guild Storage


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello everyone i have a problem opening the guild storage im using saders script

this box always appearing everytime im opening the gstorage im using 20180621 pre re

heres the script:

 

Quote

//===== rAthena Script =======================================
//= Guild Storage with Guild Logs
//===== By: ==================================================
//= Sader1992
//= Free!!
// https://rathena.org/board/profile/30766-sader1992/
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena Project
// https://github.com/sader1992/sader_scripts
// https://github.com/rathena/rathena/commit/55acdb9863382d8935d9df25e1462d5d1ebd7d54#diff-ae5800534bb25effa37150c6874eb4ad
// AND ABOVE! ONLY.
//===== Description: =========================================
// This allow the players to check the Guild Storage Log.
// Player must have guild storage permission to check the log.
//============================================================
//============================================================
prontera,158,178,8    script    Guild Storage    10129,{
    switch(select("open guild storage:guild storage log")){
        case 1:
            switch(guildopenstorage()){
                case GSTORAGE_OPEN: break;
                case GSTORAGE_STORAGE_ALREADY_OPEN: mes "you need to close the player storage first"; break;
                case GSTORAGE_ALREADY_OPEN: mes "guild storage is already open"; break;
                case GSTORAGE_NO_GUILD: mes "you are not in guild"; break;
                case GSTORAGE_NO_STORAGE: mes "the guild didn't open the guild storage skill"; break;
                case GSTORAGE_NO_PERMISSION: mes "your guild master didn't give you a guild storage permission"; break;
            }
            break;
        case 2:
            if(!getcharid(2)){
                mes "you don't have guild";
                close;
            }
            if(!guild_has_permission(GUILD_PERM_STORAGE)){
                mes "you don't have permission for the guild storage";
                close;
            }
            query_sql("SELECT `time`,`name`,`nameid`,`amount` FROM `guild_storage_log` WHERE `guild_id` = '" + getcharid(2) + "' order by `id` DESC", .@time$ ,.@name$,.@item_id,.@amount);
            if(!.@item_id){
                mes "there is no log yet";
                close;
            }
            dispbottom "===================================================",0xFFD64F;
            dispbottom "=================== Guild Storage Log ====================",0xFFD64F;
            dispbottom "===================================================",0xFFD64F;
            for(.@i=0;.@i<getarraysize(.@item_id);.@i++)
                dispbottom .@time$[.@i] + " Player[" + .@name$[.@i] + "] Item Name[" + getitemname(.@item_id[.@i]) + "] Item Amount[" + .@amount[.@i] + "]",((.@amount[.@i] > 0)?0x2300FF:0xFF0000);
            dispbottom "===================================================",0xFFD64F;
    }
end;
}


 

 

Screenshot 2022-08-20 142416.png

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:   2348
  • Joined:  10/28/11
  • Last Seen:  

 GSTORAGE_NO_STORAGE - Guild hasn't invested in the Guild Storage Expansion skill (only if OFFICIAL_GUILD_STORAGE is enabled).

doc\script_commands.txt

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

On 8/20/2022 at 9:32 PM, Emistry said:
 GSTORAGE_NO_STORAGE - Guild hasn't invested in the Guild Storage Expansion skill (only if OFFICIAL_GUILD_STORAGE is enabled).

doc\script_commands.txt

thankyou emistry your the man !

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