Jump to content
  • 0

openstorage2 cannot open and got invalid storage_id error (SOLVED)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

EDIT : SOLVED! Thanks.. /no1

Hello,

I setting this in the conf/inter_server.yml

Storages:
    - ID:   0
      Name: "Storage"
      Table: "storage"
    - ID:   1
      Name: "Premium"
      Table: "storage_1"
    - ID:   2
      Name: "VIP"
      Table: "storage_2"

Is this wrong? I also already added new table inside my SQL.. But each time I openstorage2, will not open the storage and got error in console said invalid storage_id.

 

Example Script used : 

prontera,146,162,5  script  Premium Kafra#prt   4_F_KAFRA4,{
    mes "[ Kafra ]";
    mes "Which storage do you want to open?";
    next;
    switch(select("Normal Storage","Premium Storage","VIP Storage")) {
        case 1:
            mes "[ Kafra ]";
            mes "Storage will be opened. Thank you";
            close2;
            openstorage;
            break;
        case 2:
            mes "[ Kafra ]";
            mes "Premium storage will be opened";
            close2;
            openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT);
            break;
        case 3:
            mes "[ Kafra ]";
            if (vip_status(1)) {
                .@mode = STOR_MODE_GET|STOR_MODE_PUT;
                mes "VIP will be opened. Thank you";
            } else {
                .@mode = STOR_MODE_GET;
                mes "Seems you're no longer VIP anymore. You only can take the items.";
            }
            close2;
            openstorage2(2,.@mode);
            break;
    }
    end;
}

 

I follow this guide too just in case my setting is wrong.. But then notice rathena no longer use this script as in : https://github.com/rathena/rathena/pull/2322/files.. 

Tried edit so many times but not working.. So I posted here for confirmation..

Thank you.

 

Edited by rakuzas
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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