Jump to content
  • 0

openstorage2 always opens the same storage


Valcars

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/03/16
  • Last Seen:  

 

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

 

 

 

 

 

 

 

Immagine.png

Edited by Valcars
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/03/16
  • Last Seen:  

I solved the problem sorry for the useless post ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/13/22
  • Last Seen:  

On 9/28/2021 at 2:50 AM, Valcars said:

I solved the problem sorry for the useless post ?

Can you tell me how did you solved it? please

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