Jump to content
  • 0

How to enable storage?


Question

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
-	script	atcmd_woe_storage	-1,{
	OnInit:
	OnAgitEnd:
	OnAgitEnd2:
	OnAgitEnd3:
		unbindatcmd("storage");
		end;
		
	OnAgitStart:
	OnAgitStart2:
	OnAgitStart3:
		bindatcmd("storage","woe_storage::OnAtcommand",0,99);
		end;
		
	OnAtcommand:
		openstorage;
		end;
}

 

Edited by Emistry
  • 0
Posted

Try

-	script	woe_storage	-1,{
OnInit:
	bindatcmd("storage","woe_storage::OnAtcommand",0,99);
	end;

OnAtcommand:
	if( .@atcmd_numparameters > 0 || !agitcheck() || !agitcheck2() )
 		unittalk 0, "@storage " +implode(.@atcmd_parameters$, " ");
 	else
 		openstorage;
 	end;	
}

 

  • 0
Posted (edited)
On 2/8/2017 at 7:27 PM, Technoken said:

Try


-	script	woe_storage	-1,{
OnInit:
	bindatcmd("storage","woe_storage::OnAtcommand",0,99);
	end;

OnAtcommand:
	if( .@atcmd_numparameters > 0 || !agitcheck() || !agitcheck2() )
 		unittalk 0, "@storage " +implode(.@atcmd_parameters$, " ");
 	else
 		openstorage;
 	end;	
}

 

not working

 

Edited by HappyMan
  • 0
Posted
11 hours ago, HappyMan said:

not working

 

Try this

-	script	woe_storage	-1,{
OnInit:
	bindatcmd("storage","woe_storage::OnAtcommand",0,99);
	end;

OnAtcommand:
	if( .@atcmd_numparameters == 0 && ( agitcheck() || agitcheck2() ) )
        openstorage;
 	else
 		unittalk 0, "@storage " +implode(.@atcmd_parameters$, " ");
 	end;	
}

 

  • 0
Posted
5 hours ago, Emistry said:

-	script	atcmd_woe_storage	-1,{
	OnInit:
	OnAgitEnd:
	OnAgitEnd2:
	OnAgitEnd3:
		unbindatcmd("storage");
		end;
		
	OnAgitStart:
	OnAgitStart2:
	OnAgitStart3:
		bindatcmd("storage","woe_storage::OnAtcommand",0,99);
		end;
		
	OnAtcommand:
		openstorage;
		end;
}

 

i'll try later. thanks @Emistry

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...