Jump to content
  • 0

Requesting one click buy shop


Question

Posted

Npc with pub up says (“100 red potion for 10k”)

If not enough Zeny (dialogue says not enough zeny)

if not enough weight (dialogue says not enough weight)

and dialogue for not enough zeny and weight

 

and another request if “only” possible if not just the top please..

 

Npc with pub up says (+7 knife for 10k”)

same dialogue as above

 

THANK YOU IN ADVANCE

 

6 answers to this question

Recommended Posts

  • 0
Posted (edited)
prontera,155,181,5	script	One-Click-Buy	94,{

      if(Zeny < .Price){
          message strcharinfo(0),"Not enough zeny"; end;
      }
      if(!checkweight(.Item,.Amount)){
          message strcharinfo(0),"Not enough weight"; end;
      }
      Zeny -= .Price;
      getitem2 .Item,.Amount,1,.Upgrade,0,0,0,0,0;
end;

OnInit:
      set .Item,1201;
      set .Amount,1;
      set .Upgrade,7;
      set .Price,10000;
      waitingroom ((.Amount>1) ? .Amount+"x ":"")+((.Upgrade) ? "+"+.Upgrade+" ":"")+""+getitemname(.Item)+" "+.Price+"z",0;
end;
}

 

Edited by Haruka Mayumi
  • Upvote 1
  • 0
Posted
1 hour ago, Haruka Mayumi said:

prontera,155,181,5	script	One-Click-Buy	94,{

      if(Zeny < .Price){
          npctalk "Not enough zeny",bc_self; end;
      }
      if(!checkweight(.Item,.Amount)){
          npctalk "Not enough weight",bc_self; end;
      }
      Zeny -= .Price;
      getitem2 .Item,.Amount,1,.Upgrade,0,0,0,0,0;
end;

OnInit:
      set .Item,501;
      set .Amount,100;
      set .Upgrade,0;
      set .Price,10000;
      waitingroom .Amount+"x "+((.Upgrade?) "+"+.Upgrade:"")+""+getitemname(.Item)+" "+.Price+"z",0;
end;
}

i get an error ? line 18

 

 

  • 0
Posted
3 minutes ago, Haruka Mayumi said:

waitingroom .Amount+"x "+((.Upgrade) ? "+"+.Upgrade:"")+""+getitemname(.Item)+" "+.Price+"z",0;

It doesn’t give me dialogue... thank u for fast reply ???

  • 0
Posted
2 hours ago, Haruka Mayumi said:

prontera,155,181,5	script	One-Click-Buy	94,{

      if(Zeny < .Price){
          message strcharinfo(0),"Not enough zeny"; end;
      }
      if(!checkweight(.Item,.Amount)){
          message strcharinfo(0),"Not enough weight"; end;
      }
      Zeny -= .Price;
      getitem2 .Item,.Amount,1,.Upgrade,0,0,0,0,0;
end;

OnInit:
      set .Item,1201;
      set .Amount,1;
      set .Upgrade,7;
      set .Price,10000;
      waitingroom ((.Amount>1) ? .Amount+"x ":"")+((.Upgrade) ? "+"+.Upgrade+" ":"")+""+getitemname(.Item)+" "+.Price+"z",0;
end;
}

THANK YOU VERY MUCH YOU'RE AWESOME! ? 

 

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