Jump to content
  • 0

-Dynamic CashPoint Shop With +10 Item


Question

Posted

i have +10 item npc seller but only can buy use item~!!

i want make can buy +10 item with cashpoint


ra_temsky,96,134,8 script +10 Quest Set 1656,{
Main:
mes "Please Choose your items that you want to buy.";
MES "By Using Various Items.";
mes "^ff0000MAKE SURE YOU WEIGHT IS BELOW 50%.^000000";
next;
switch(select("^C0C0C0Information^000000",
   "+10 Black Sakkat Bamboo",
   "+10 Dark Black Fairy Wing",
   "^0000FF+10 Blue Sakkat Bamboo^000000",
   "^0000FF+10 Dark Blue Fairy Wing^000000",
   "^FFFF00+10 Gold Sakkat Bamboo^000000",
   "^FFFF00+10 Dark Gold Fairy Wing^000000",
   "^00FFFF+10 Cyan Sakkat Bamboo^000000",
   "^00FFFF+10 Dark Cyan Fairy Wing^000000",
   "^800080+10 Purple Sakkat Bamboo^000000",
   "^800080+10 Dark Purple Fairy Wing^000000",
   "^FF0000+10 Red Sakkat Bamboo^000000",
   "^FF0000+10 Dark Red Fairy Wing^000000",
   "^FFFFFF+10 White Sakkat Bamboo^000000",
   "^FFFFFF+10 Dark White Fairy Wing^000000",
   "^00FF00+10 Green Sakkat Bamboo^000000",
   "^00FF00+10 Dark Green Fairy Wing^000000",
   "^C0C0C0Cancel^000000")) {

Case 1:
 mes "This is a Dynamic SHop that buy items using Items instead of Zeny.";
 close;

 // callsub DynamicShop,<ItemNeed>,<Amount>,<GetItem>,<Amount>,<Refine>;
Case 2: callsub DynamicShop,7720,250,20102,1,10;
Case 3: callsub DynamicShop,7720,250,20584,1,10;
Case 4: callsub DynamicShop,7720,250,20169,1,10;
Case 5: callsub DynamicShop,7720,250,20593,1,10;
Case 6: callsub DynamicShop,7720,250,20423,1,10;
Case 7: callsub DynamicShop,7720,250,20595,1,10;
Case 8: callsub DynamicShop,7720,250,20274,1,10;
Case 9: callsub DynamicShop,7720,250,20594,1,10;
Case 10: callsub DynamicShop,7720,250,20698,1,10;
Case 11: callsub DynamicShop,7720,250,20597,1,10;
Case 12: callsub DynamicShop,7720,250,20753,1,10;
Case 13: callsub DynamicShop,7720,250,20598,1,10;
Case 14: callsub DynamicShop,7720,250,20864,1,10;
Case 15: callsub DynamicShop,7720,250,20615,1,10;
Case 16: callsub DynamicShop,7720,250,20779,1,10;
Case 17: callsub DynamicShop,7720,250,20596,1,10;
Case 18: close;
}
DynamicShop:
if ( countitem(getarg(0)) < getarg(1) ){
mes "You didnt have enough items to buy this.";
mes "You need "+getarg(1)+" "+getitemname(getarg(0))+" to buy this items.";
next;
goto Main;
}
delitem getarg(0),getarg(1);
getitem2 getarg(2),getarg(3),1,getarg(4),0,0,0,0,0;
mes "You have Brought a +"+getarg(4)+" "+getitemname(getarg(2))+" with "+getarg(1)+" of "+getitemname(getarg(0))+".";
close;
}

2 answers to this question

Recommended Posts

Posted

try change

if ( countitem(getarg(0)) < getarg(1) ){

to

if ( getd(getarg(0)) < getarg(1) ){

then....change....

delitem getarg(0),getarg(1);

to

set getd( getarg(0) ), getd( getarg(0) ) - getarg(1);

then....change....

callsub DynamicShop,7720,250,20596,1,10;

to

callsub DynamicShop,"#CASHPOINTS",250,20596,1,10;

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