Jump to content
  • 0

Requesting one click buy shop


IvanD

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

waitingroom .Amount+"x "+((.Upgrade) ? "+"+.Upgrade:"")+""+getitemname(.Item)+" "+.Price+"z",0;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

Copy the whole thing again. i edited it. i didn't try it when i posted it before..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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! ? 

 

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