Jump to content
  • 0

@storage help please


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Hi, I wish my @storage command to check if a certain variable has a value of 1, if it does, it allows the usage of @storage, and if it has a value of 2, it won't allow its usage. i'm not very good with source coding, I think its related to source coding.

Thank you /kis

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

this can be done via script

eg


-	script	Storecheck	-1,{
OnStoreage:
	if(.var > 1){ end;
	} else { openstorage; }
end;
OnInit:
	bindatcmd("storage"	,"Storecheck::OnStoreage",0,99);
	bindatcmd("s"		,"Storecheck::OnStoreage",0,99);
end;
}
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...