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