Jump to content
  • 0

Countitem not detecting items..


Question

Posted

as title, i have all 3 items in my inventory but somehow the script did not detect my item and keep saying i dont have enough..?

Spoiler
if(countitem(40024) < 1 | countitem(40031) < 1 | countitem(40027) < 1){
	mes "^ff0000 Require";
	mes "1 Big Boulder";
	mes "1 Green Stalk";
	mes "1 Green Tree Branch ^000000";
	close3;
}
	soundeffect "menu.wav",0;
	mes "^8fce00 Require";
	mes "1 Big Boulder";
	mes "1 Green Stalk";
	mes "1 Green Tree Branch ^000000";
	next;
		switch(select("- Start Crafting: - Cancel")){
			case 1:
				mes "Crafting";
				soundeffect "gathering.wav",0;
				addtimer 11,strnpcinfo(0)+"::OnTest";
				progressbar "0x00ff00",11;
				next;
					soundeffect "menu.wav",0;
					delitem 40024, 1;
					delitem 40031, 1;
					delitem 40027, 1;
				    getitem 40030, 1;
					wep_points += 1;
					dispbottom "Gain +1 Weapon Crafting Points";
					close3;
									
			case 2:
				goto cancel;
		}

 

 

3 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, Dolphin86 said:
if(countitem(40024) < 1 && countitem(40031) < 1 && countitem(40027) < 1){

 

if(countitem(40024) < 1 || countitem(40031) < 1 || countitem(40027) < 1){

 

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