Jump to content
  • 0

Gold Room Pass!


Sasuke Uchiha

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  114
  • Reputation:   8
  • Joined:  09/16/14
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  114
  • Reputation:   8
  • Joined:  09/16/14
  • Last Seen:  

Thanks for the answer it work now fine.

 

I am currently learning Scripting.

 

Best Regards,

Sasuke Uchiha

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