Jump to content
  • 0

Check multiple item script


Start_

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  950
  • Reputation:   180
  • Joined:  04/05/13
  • Last Seen:  

"if" can't check how to fix it?
 

 

if (countitem(705)>=100 && countitem(711)>=100 && countitem(905)>=100 && countitem(914)>=100 && countitem(916)>=100 && countitem(511)>=100) goto L_Done;
mes "[Geffen]";
close;


L_Done:
delitem 705,100;
delitem 711,100;
delitem 905,100;
delitem 914,100;
delitem 916,100;
delitem 511,100;
mes "[Geffen]";
close;
 

 

Edited by TARTs
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


if(countitem(705) < 100 || countitem(711) < 100 || countitem(905) < 100 || countitem(914) < 100 || countitem(916) < 100 || countitem(511) < 100) goto L_Done;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  950
  • Reputation:   180
  • Joined:  04/05/13
  • Last Seen:  

Whoa I do opposite sign lol, Thanks.

Edited by TARTs
Link to comment
Share on other sites


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

if(countitem(705) < 100 || countitem(711) < 100 || countitem(905) < 100 || countitem(914) < 100 || countitem(916) < 100 || countitem(511) < 100) goto L_Done;

LOL....."if the items is not sufficient...then..quest done...??" 

your mapserver will throw you a fews error for failed to remove "insufficient" items..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

 

if(countitem(705) < 100 || countitem(711) < 100 || countitem(905) < 100 || countitem(914) < 100 || countitem(916) < 100 || countitem(511) < 100) goto L_Done;

LOL....."if the items is not sufficient...then..quest done...??" 

your mapserver will throw you a fews error for failed to remove "insufficient" items..

I just edited his script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  950
  • Reputation:   180
  • Joined:  04/05/13
  • Last Seen:  

if (countitem(705)>=100 && countitem(711)>=100 && countitem(905)>=100 && countitem(914)>=100 && countitem(949)>=100 && countitem(511)>=100) goto L_Done;

 

I edited to this and it's work now

 

because something wrong on SQL database

 

script:delitem failed bla bla bla

Edited by TARTs
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...