Jump to content
  • 0

Check multiple item script


Question

Posted (edited)
"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

5 answers to this question

Recommended Posts

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

Posted

 

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.

Posted (edited)
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

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