Jump to content
  • 0

conditions


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

i want to ask help about this, im doing it wrong >.<

 

 

setarray .Runes[0],20369,20368,20367,20366,20376,20377;
for( set .@r,0; .@r < getarraysize( .Runes ); set .@r,.@r + 1 ){
set .@RunesMenu$,.@RunesMenu$ + getitemname( .Runes[.@r] )+":";
}
		set .@Runes,select( .@RunesMenu$ ) - 1;
>>>>>>>	if(countitem( .@Runes) >= 10)  {   <<<<<<<<<<
		mes "^0000FF[ Zane ]^000000";
		mes "Not Enough Requirements my Lord";
		close;
}
 

 

what i want to do is, to check if the chosen id is = to 10pcs

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

if( countitem( .Runes[ .@Runes ] ) < 10 ){

you have to add in the array variable ... otherwise you are just checking "index" number..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

thanks for helping me out

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