IvanD Posted March 30, 2020 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Share Posted March 30, 2020 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 Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted March 31, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted March 31, 2020 (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 March 31, 2020 by Haruka Mayumi 1 Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted March 31, 2020 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted March 31, 2020 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 Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted March 31, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted March 31, 2020 waitingroom .Amount+"x "+((.Upgrade) ? "+"+.Upgrade:"")+""+getitemname(.Item)+" "+.Price+"z",0; Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted March 31, 2020 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted March 31, 2020 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 Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted March 31, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted March 31, 2020 Copy the whole thing again. i edited it. i didn't try it when i posted it before.. Quote Link to comment Share on other sites More sharing options...
0 IvanD Posted March 31, 2020 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share Posted March 31, 2020 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! Quote Link to comment Share on other sites More sharing options...
Question
IvanD
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.