Jump to content
  • 0

stotage of all accounts (CP with master account)


Ruda

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/18/20
  • Last Seen:  

Hi,

I have CP with master account(3 game acc each) and looking for simply way to make shared storage. I decided to give possibility to open the storeage of all your accounts. Can anyone help me, please? Thanks
Something like this(i dont know how exactly make this script):

payon,159,96,4    script    storage master#1    419,{

    .@something1 = query_sql "SELECT user_id FROM `cp_user_account` WHERE account_id = '"+getcharid(3)+"', @accstor;
    .@something2 = query_sql "SELECT account_id FROM `cp_user_account` WHERE user_id = @accstor, @allstorage[];
        switch(select("account1:account2:account3:close")) {
               case 1:  
                  close2;
                 openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT, @allstorage[0];  
               case 2:
                  close2;
                  openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT,@allstorage[1];
               case 3:
                  close2;
                   openstorage2 1,STOR_MODE_GET|STOR_MODE_PUT,@allstorage[2];
            case 4:
                  close;
    }}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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