Jump to content
  • 0

Question

Posted (edited)

Hello Guys! i need help with this script:

gonryun,160,117,4	script	Goldi	444,{

set .@NeedZeny,10000000;	// Zeny for Gold Pass

mes "[Goldi]";
mes "Hello I am Goldi and I can make you a gold pass!";
next;
mes "[Goldi]";
mes "Do you want to have one?";
menu "Yes, pls",L_Yespls,"No, rather not",L_rathernot;

L_Yespls:
next;
mes "[Goldi]";
mes "I need the following things for the pass";
next;
mes "[Goldi]";
mes "250 Gold";
mes "20x Poring Cards";
mes "10 Mille";
next;
mes "[Goldi]";
mes "Do you have everything";
menu "Ja",L_Yes,"Nein",L_No;

L_rathernot:
next;
mes "[Goldi]";
mes "Okay...";
close;
end;

L_Yes:
if (countitem(969) <250) && (countitem(4001) <20) && (Zeny < .@NeedZeny) goto L_Missing;
delitem 969,250;
delitem 4001,20;
getitem 35000,1;
set Zeny, Zeny-.@NeedZeny;

L_No:
next;
mes "[Goldi]";
mes "Okay...";
close;
end;

L_Missing:
mes "[Goldi]";
mes "I'm sorry, but your items are not sufficient.";
close;
end;
}

the script work only the missing label not work and i need help with check weigt ...

 

thanks for your help

 

Best regards,

Sasuke

Edited by Sasuke Uchiha

2 answers to this question

Recommended Posts

Posted

Change:

if (countitem(969) <250) && (countitem(4001) <20) && (Zeny < .@NeedZeny) goto L_Missing;

To:

if(countitem(969) < 250 || countitem(4001) < 20 || Zeny < .@NeedZeny) goto L_Missing;

This will change the logic from AND (meaning all statements are true) to OR (at least one of the statements is true).

 

Check out your checkweight options here.

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