Jump to content
  • 0

How to enable storage?


HappyMan

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

how to enable storage in woe times?

thanks in advance. :)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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;	
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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;	
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

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

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