IvanD Posted March 30, 2020 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
0 Haruka Mayumi Posted March 31, 2020 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
0 IvanD Posted March 31, 2020 Author 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
0 Haruka Mayumi Posted March 31, 2020 Posted March 31, 2020 waitingroom .Amount+"x "+((.Upgrade) ? "+"+.Upgrade:"")+""+getitemname(.Item)+" "+.Price+"z",0; Quote
0 IvanD Posted March 31, 2020 Author 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
0 Haruka Mayumi Posted March 31, 2020 Posted March 31, 2020 Copy the whole thing again. i edited it. i didn't try it when i posted it before.. Quote
0 IvanD Posted March 31, 2020 Author 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
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
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.