hello everyone and good morning ... as the title suggests I have a problem with openstorage2, in practice I read this topic LINK and I modified the files conf / import / inter_server.yml (changed in the import folder because if the one in the conf folder changed me gave error)
and I added the sql tables as in the post .... I created a trivial npc with more storage space but it always opens me the same storage space .... I don't know why .... conf / import / inter_server. yml
# Table Name of SQL table where storage is saved. The table structure is the same as the default storage table.
# Max Maximum number of items. (Default: MAX_STORAGE)
####################################################################################################### ###########################
# To access the premium storage, use script command 'openstorage2'.
# If more premium storages are added, copy the structure of the storage table and match the table name in this config.
# The 'Max' of premium storages are not adjusted by 'vip_storage_increase' config nor MIN_STORAGE.
####################################################################################################### ###########################
Header:
Type: INTER_SERVER_DB
Version: 1
#Body:
# - ID: 1
# Name: "VIP Storage"
# Table: vip_storage
# Max: 300
Body:
- ID: 1
Name: "Storage"
Table: "storage_1"
#Max: 300
- ID: 2
Name: "Storage"
Table: "storage_2"
#Max: 300
- ID: 3
Name: "Storage"
Table: "storage_3"
#Max: 300
NPC
prontera,150,150,5 script asgd 512,{
mes "open multi storage";
switch(select("Storage1:Storage2:Storage3"))
{
case 1:
close2;
openstorage;
close;
case 2:
close2;
openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT;
close;
case 3:
close2;
openstorage2 2,STOR_MODE_GET|STOR_MODE_PUT;
close;
default: break;
}
end;
}
I tried to deposit items in both stores to see if they were different but there are the same items.
Also what opens is the normal storage that is the one that opens with normal openstorage .... I don't know if I made myself understood xD ...
I await your answers
Question
Valcars
hello everyone and good morning ... as the title suggests I have a problem with openstorage2, in practice I read this topic LINK and I modified the files conf / import / inter_server.yml (changed in the import folder because if the one in the conf folder changed me gave error)
and I added the sql tables as in the post .... I created a trivial npc with more storage space but it always opens me the same storage space .... I don't know why .... conf / import / inter_server. yml
# Table Name of SQL table where storage is saved. The table structure is the same as the default storage table. # Max Maximum number of items. (Default: MAX_STORAGE) ####################################################################################################### ########################### # To access the premium storage, use script command 'openstorage2'. # If more premium storages are added, copy the structure of the storage table and match the table name in this config. # The 'Max' of premium storages are not adjusted by 'vip_storage_increase' config nor MIN_STORAGE. ####################################################################################################### ########################### Header: Type: INTER_SERVER_DB Version: 1 #Body: # - ID: 1 # Name: "VIP Storage" # Table: vip_storage # Max: 300 Body: - ID: 1 Name: "Storage" Table: "storage_1" #Max: 300 - ID: 2 Name: "Storage" Table: "storage_2" #Max: 300 - ID: 3 Name: "Storage" Table: "storage_3" #Max: 300
NPC
prontera,150,150,5 script asgd 512,{ mes "open multi storage"; switch(select("Storage1:Storage2:Storage3")) { case 1: close2; openstorage; close; case 2: close2; openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT; close; case 3: close2; openstorage2 2,STOR_MODE_GET|STOR_MODE_PUT; close; default: break; } end; }
I tried to deposit items in both stores to see if they were different but there are the same items.
Also what opens is the normal storage that is the one that opens with normal openstorage .... I don't know if I made myself understood xD ...
I await your answers
Link to comment
Share on other sites
2 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.