Jump to content
  • 0

Question regarding @storage command if multiple storage is available


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

is there like custom command to open the additional storage

like @storage2 / @storage3 and so on?

if there is what is the script

thanks for the help

 

EDIT:

i made this script it works fine but how can i put like a msg

if storage1 is open and try to do @storage2 it will say "storage 1 is open can't open storage 2 at the moment"

just like that

 

here is the script:

-	script	storage3	 -1,{
    OnInit:
        bindatcmd "storage3",strnpcinfo(3)+"::OnAtcommand";
        end;    

    OnAtcommand:
        openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT);
        end;
}

 

Edited by AinsLord
more info
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/21/23
  • Last Seen:  

Hi, I'm having the same issue. The difference is I don't really have much knowledge regarding a lot of these stuff.

@AinsLord If I may ask, where did you put that file and how exactly did you make it work? I don't really need a message like yours and I'm fine with it as long as it works.

I think I already made a separate table of the storage in the database by copying the existing one and renaming them to storage2, storage3 etc. That's basically all I've done. Sorry if I seem dumb, I'm pretty new at this and just want more storage space but when I was searching on how, there seems to be an issue regarding storage capacity in high numbers. Making more storage seems to be the solution but it's definitely more complicated than editing a text file and compiling.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

53 minutes ago, Tender Juicy said:

Hi, I'm having the same issue. The difference is I don't really have much knowledge regarding a lot of these stuff.

@AinsLord If I may ask, where did you put that file and how exactly did you make it work? I don't really need a message like yours and I'm fine with it as long as it works.

I think I already made a separate table of the storage in the database by copying the existing one and renaming them to storage2, storage3 etc. That's basically all I've done. Sorry if I seem dumb, I'm pretty new at this and just want more storage space but when I was searching on how, there seems to be an issue regarding storage capacity in high numbers. Making more storage seems to be the solution but it's definitely more complicated than editing a text file and compiling.

 

in your conf/inter_server.yml

put this

Body:
  - ID: 0
    Name: "Storage"
    Table: storage
  - ID: 1
    Name: "VIP"
    Table: storage2
    max: 300
  - ID: 2
    Name: "VIP2"
    Table: storage3
    max: 300
  - ID: 3
    Name: "VIP3"
    Table: storage4
    max: 300

on your database SQL

put this

--
-- Table structure for table `storage`
--

CREATE TABLE IF NOT EXISTS `storage` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `account_id` int(11) unsigned NOT NULL default '0',
  `nameid` int(10) unsigned NOT NULL default '0',
  `amount` smallint(11) unsigned NOT NULL default '0',
  `equip` int(11) unsigned NOT NULL default '0',
  `identify` smallint(6) unsigned NOT NULL default '0',
  `refine` tinyint(3) unsigned NOT NULL default '0',
  `attribute` tinyint(4) unsigned NOT NULL default '0',
  `card0` int(10) unsigned NOT NULL default '0',
  `card1` int(10) unsigned NOT NULL default '0',
  `card2` int(10) unsigned NOT NULL default '0',
  `card3` int(10) unsigned NOT NULL default '0',
  `option_id0` smallint(5) NOT NULL default '0',
  `option_val0` smallint(5) NOT NULL default '0',
  `option_parm0` tinyint(3) NOT NULL default '0',
  `option_id1` smallint(5) NOT NULL default '0',
  `option_val1` smallint(5) NOT NULL default '0',
  `option_parm1` tinyint(3) NOT NULL default '0',
  `option_id2` smallint(5) NOT NULL default '0',
  `option_val2` smallint(5) NOT NULL default '0',
  `option_parm2` tinyint(3) NOT NULL default '0',
  `option_id3` smallint(5) NOT NULL default '0',
  `option_val3` smallint(5) NOT NULL default '0',
  `option_parm3` tinyint(3) NOT NULL default '0',
  `option_id4` smallint(5) NOT NULL default '0',
  `option_val4` smallint(5) NOT NULL default '0',
  `option_parm4` tinyint(3) NOT NULL default '0',
  `expire_time` int(11) unsigned NOT NULL default '0',
  `bound` tinyint(3) unsigned NOT NULL default '0',
  `unique_id` bigint(20) unsigned NOT NULL default '0',
  `enchantgrade` tinyint unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `account_id` (`account_id`)
) ENGINE=MyISAM;

change this line `storage` to same name as you indicated in inter_server.yml

ex: `storage2 ( as shown on my inter_server.yml

CREATE TABLE IF NOT EXISTS `storage` (

here is the script im using

byako,143,144,4	script	More Storage#prt	4_F_KAFRA4,{
    mes "[ Kafra ]";
    mes "Which storage do you want to open?";
    next;
    switch(select("Normal Storage","Storage1","Storage2","VIP Storage2")) {
        case 1:
            mes "[ Kafra ]";
            mes "Storage will be opened. Thank you";
            close2;
            openstorage;
            break;
        case 2:
            mes "[ Kafra ]";
            mes "Storage 1 will be opened";
            close2;
            openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT);
            break;
        case 3:
            mes "[ Kafra ]";
            mes "Storage 1 will be opened";
            close2;
            openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT);
            break;
        case 4:
            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(3,.@mode);
            break;
    }
    end;
}

i hope this can help ?

Credits to this guide

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/21/23
  • Last Seen:  

1 hour ago, AinsLord said:

 

in your conf/inter_server.yml

put this

Body:
  - ID: 0
    Name: "Storage"
    Table: storage
  - ID: 1
    Name: "VIP"
    Table: storage2
    max: 300
  - ID: 2
    Name: "VIP2"
    Table: storage3
    max: 300
  - ID: 3
    Name: "VIP3"
    Table: storage4
    max: 300

on your database SQL

put this

--
-- Table structure for table `storage`
--

CREATE TABLE IF NOT EXISTS `storage` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `account_id` int(11) unsigned NOT NULL default '0',
  `nameid` int(10) unsigned NOT NULL default '0',
  `amount` smallint(11) unsigned NOT NULL default '0',
  `equip` int(11) unsigned NOT NULL default '0',
  `identify` smallint(6) unsigned NOT NULL default '0',
  `refine` tinyint(3) unsigned NOT NULL default '0',
  `attribute` tinyint(4) unsigned NOT NULL default '0',
  `card0` int(10) unsigned NOT NULL default '0',
  `card1` int(10) unsigned NOT NULL default '0',
  `card2` int(10) unsigned NOT NULL default '0',
  `card3` int(10) unsigned NOT NULL default '0',
  `option_id0` smallint(5) NOT NULL default '0',
  `option_val0` smallint(5) NOT NULL default '0',
  `option_parm0` tinyint(3) NOT NULL default '0',
  `option_id1` smallint(5) NOT NULL default '0',
  `option_val1` smallint(5) NOT NULL default '0',
  `option_parm1` tinyint(3) NOT NULL default '0',
  `option_id2` smallint(5) NOT NULL default '0',
  `option_val2` smallint(5) NOT NULL default '0',
  `option_parm2` tinyint(3) NOT NULL default '0',
  `option_id3` smallint(5) NOT NULL default '0',
  `option_val3` smallint(5) NOT NULL default '0',
  `option_parm3` tinyint(3) NOT NULL default '0',
  `option_id4` smallint(5) NOT NULL default '0',
  `option_val4` smallint(5) NOT NULL default '0',
  `option_parm4` tinyint(3) NOT NULL default '0',
  `expire_time` int(11) unsigned NOT NULL default '0',
  `bound` tinyint(3) unsigned NOT NULL default '0',
  `unique_id` bigint(20) unsigned NOT NULL default '0',
  `enchantgrade` tinyint unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `account_id` (`account_id`)
) ENGINE=MyISAM;

change this line `storage` to same name as you indicated in inter_server.yml

ex: `storage2 ( as shown on my inter_server.yml

CREATE TABLE IF NOT EXISTS `storage` (

here is the script im using

byako,143,144,4	script	More Storage#prt	4_F_KAFRA4,{
    mes "[ Kafra ]";
    mes "Which storage do you want to open?";
    next;
    switch(select("Normal Storage","Storage1","Storage2","VIP Storage2")) {
        case 1:
            mes "[ Kafra ]";
            mes "Storage will be opened. Thank you";
            close2;
            openstorage;
            break;
        case 2:
            mes "[ Kafra ]";
            mes "Storage 1 will be opened";
            close2;
            openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT);
            break;
        case 3:
            mes "[ Kafra ]";
            mes "Storage 1 will be opened";
            close2;
            openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT);
            break;
        case 4:
            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(3,.@mode);
            break;
    }
    end;
}

i hope this can help ?

Credits to this guide

 

 

 

Managed to get it to work! I had to change the NPC location though since I don't think Byako exist in mine.

 

Did you ever got the @storage, @storage2, @storage3 etc to work though? I do want to be able to access them on any map.

In any case, thank you!

 

Edit: Nevermind, got that @commands scripts to work. Thanks again!

Edited by Tender Juicy
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

45 minutes ago, Tender Juicy said:

 

 

Managed to get it to work! I had to change the NPC location though since I don't think Byako exist in mine.

 

Did you ever got the @storage, @storage2, @storage3 etc to work though? I do want to be able to access them on any map.

In any case, thank you!

 

Edit: Nevermind, got that @commands scripts to work. Thanks again!

use this script create a new text file

-	script	storage2	 -1,{
    OnInit:
        bindatcmd "storage2",strnpcinfo(3)+"::OnAtcommand";
        end;    

    OnAtcommand:
        openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT);
        end;
}

 

change this part 

-	script	storage2	 -1,{

 

openstorage2(1,STOR_MODE_GET|STOR_MODE_PUT);

to this for 2nd storage

-	script	storage3	 -1,{

 

openstorage2(2,STOR_MODE_GET|STOR_MODE_PUT);

and so on

the last storage in the script is a VIP one so if your server doesnt have VIP enable

you can just delete the lines for VIP

Edited by AinsLord
  • Upvote 1
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...