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;
}
Question
rakuzas
EDIT : SOLVED! Thanks..
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.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.