Jump to content
  • 0

Multiple Countitem Problem


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Hi everyone can anybody help me

even the items is not there and i already have the other's but he delete the the item that i already have. what is the problem here?

sorry for bad english :D


mes "^FF00001,000x Phantasm Coins";
mes "1,000x Phantasm Tickets";
mes "500x Dark runes";
mes "500x Bloody runes";
mes "2x Black Dyestuff^000000";
next;
if(countitem(7511)<500 && countitem(7539)<1000 && countitem(7227)<1000 && countitem(7563)<500 && countitem(983)<2) goto L_notenuf;
delitem 7511,500;
delitem 7539,1000;
delitem 7227,1000;
delitem 7563,1000;
delitem 983,2;
set mastery,1;
getitem 21517,1;
mes "[Job Mastery]";
mes "Congratulation!";
close;

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

It's ||, not &&.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  


if((countitem(7511)<500) || (countitem(7539)<1000) || (countitem(7227)<1000) || (countitem(7563)<500) || (countitem(7036)<2)){
close;
} else {
delitem 7511,500;
delitem 7539,1000;
delitem 7227,1000;
delitem 7563,1000;
delitem 7036,2;
set mastery,1;
getitem 21515,1;
mes "[Job Mastery]";
mes "Congratulation!";
close;

awtz. my problem now is when i have all the items. the npc delete the 7511,7539,7227 but the 7563 and 7036 is still remain :(

Edited by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Why'd you put brackets...? You're missing one at the end, but you don't need them at all (or the 'else').

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

awtz. my problem now is when i have all the items. the npc delete the 7511,7539,7227 but the 7563 and 7036 is still remain :(


if(countitem(7511)<500 || countitem(7539)<1000 || countitem(7227)<1000 || countitem(7563)<500 || countitem(7036)<2) goto L_notenuf;
delitem 7511,500;
delitem 7539,1000;
delitem 7227,1000;
delitem 7563,1000;
delitem 7036,2;
set mastery,1;
getitem 21515,1;
mes "[Job Mastery]";
mes "Congratulation!";
close;

my new code. doesn't work

bump!

THX EUPHY PROBLEM SOLVED :D!

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