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;
}}
Question
Ruda
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.