|
@@ -36,9 +36,9 @@ alberta_in,16,28,4 script Pharmacist 61,{
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Ummmm...";
|
|
mes "Ummmm...";
|
|
mes "What brings you here...?";
|
|
mes "What brings you here...?";
|
|
|
|
+ next;
|
|
switch(select("Make Potion:Talk.:Mixing Information:Cancel")) {
|
|
switch(select("Make Potion:Talk.:Mixing Information:Cancel")) {
|
|
case 1:
|
|
case 1:
|
|
- next;
|
|
|
|
if (MaxWeight - Weight < 5000) {
|
|
if (MaxWeight - Weight < 5000) {
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Why are you carrying these so many!";
|
|
mes "Why are you carrying these so many!";
|
|
@@ -51,11 +51,11 @@ alberta_in,16,28,4 script Pharmacist 61,{
|
|
} else {
|
|
} else {
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "You have all the stuff ready, right? Which one would you like?";
|
|
mes "You have all the stuff ready, right? Which one would you like?";
|
|
|
|
+ next;
|
|
switch(select("Red Potion.:Orange Potion.:Yellow Potion.:White Potion.:Blue Potion.:Green Potion.:Actually, I don't want anything.")) {
|
|
switch(select("Red Potion.:Orange Potion.:Yellow Potion.:White Potion.:Blue Potion.:Green Potion.:Actually, I don't want anything.")) {
|
|
case 1:
|
|
case 1:
|
|
callsub L_Making,507,3,501;
|
|
callsub L_Making,507,3,501;
|
|
case 2:
|
|
case 2:
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
if (countitem(507) < countitem(713)) {
|
|
if (countitem(507) < countitem(713)) {
|
|
set .@max,countitem(507);
|
|
set .@max,countitem(507);
|
|
@@ -77,9 +77,9 @@ alberta_in,16,28,4 script Pharmacist 61,{
|
|
close;
|
|
close;
|
|
}
|
|
}
|
|
mes "How many?";
|
|
mes "How many?";
|
|
|
|
+ next;
|
|
switch(select("Make as many as I can.:I want to choose an amount.:Actually, I don't want anything.")) {
|
|
switch(select("Make as many as I can.:I want to choose an amount.:Actually, I don't want anything.")) {
|
|
case 1:
|
|
case 1:
|
|
- next;
|
|
|
|
if ((countitem(507) < .@max) || (countitem(508) < .@max) || (countitem(713) < .@max) || (Zeny < .@max*3)) {
|
|
if ((countitem(507) < .@max) || (countitem(508) < .@max) || (countitem(713) < .@max) || (Zeny < .@max*3)) {
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
@@ -92,24 +92,21 @@ alberta_in,16,28,4 script Pharmacist 61,{
|
|
getitem 502,.@max; //Orange_Potion
|
|
getitem 502,.@max; //Orange_Potion
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Then pick a number below 100. If you don't want any, just enter '0'. With the materials you have, you can make about "+.@max+" potions.";
|
|
mes "Then pick a number below 100. If you don't want any, just enter '0'. With the materials you have, you can make about "+.@max+" potions.";
|
|
|
|
+ next;
|
|
input .@amount,0,101;
|
|
input .@amount,0,101;
|
|
if (.@amount == 0) {
|
|
if (.@amount == 0) {
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Make up your mind, will you?!";
|
|
mes "Make up your mind, will you?!";
|
|
close;
|
|
close;
|
|
}
|
|
}
|
|
if (.@amount > 100) {
|
|
if (.@amount > 100) {
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Are you deaf? I said less than 100!";
|
|
mes "Are you deaf? I said less than 100!";
|
|
close;
|
|
close;
|
|
}
|
|
}
|
|
if ((countitem(507) < .@amount) || (countitem(508) < .@amount) || (countitem(713) < .@amount) || (Zeny < .@amount*3)) {
|
|
if ((countitem(507) < .@amount) || (countitem(508) < .@amount) || (countitem(713) < .@amount) || (Zeny < .@amount*3)) {
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
close;
|
|
close;
|
|
@@ -122,7 +119,6 @@ alberta_in,16,28,4 script Pharmacist 61,{
|
|
getitem 502,.@amount; //Orange_Potion
|
|
getitem 502,.@amount; //Orange_Potion
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "What?!";
|
|
mes "What?!";
|
|
mes "Grrr...";
|
|
mes "Grrr...";
|
|
@@ -188,7 +184,6 @@ L_Making:
|
|
.@item_req = getarg(0);
|
|
.@item_req = getarg(0);
|
|
.@req_amount = getarg(1);
|
|
.@req_amount = getarg(1);
|
|
|
|
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
if ((countitem(.@item_req)/2) < countitem(713)) {
|
|
if ((countitem(.@item_req)/2) < countitem(713)) {
|
|
.@max = countitem(.@item_req) /2;
|
|
.@max = countitem(.@item_req) /2;
|
|
@@ -206,9 +201,9 @@ L_Making:
|
|
close;
|
|
close;
|
|
}
|
|
}
|
|
mes "How many?";
|
|
mes "How many?";
|
|
|
|
+ next;
|
|
switch(select("Make as many as I can.:I want to choose an amount.:Actually, I don't want anything.")) {
|
|
switch(select("Make as many as I can.:I want to choose an amount.:Actually, I don't want anything.")) {
|
|
case 1:
|
|
case 1:
|
|
- next;
|
|
|
|
if ((countitem(.@item_req) < .@max*2) || countitem(713) < .@max || (Zeny < .@max*.@req_amount)) {
|
|
if ((countitem(.@item_req) < .@max*2) || countitem(713) < .@max || (Zeny < .@max*.@req_amount)) {
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
mes "You rascal! You don't even have all the materials and you want me to make you potions?!";
|
|
@@ -220,11 +215,10 @@ L_Making:
|
|
getitem getarg(2),.@max;
|
|
getitem getarg(2),.@max;
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Then pick a number below 100. If you don't want any, just enter '0'. With the materials you have, you can make about "+.@max+" potions.";
|
|
mes "Then pick a number below 100. If you don't want any, just enter '0'. With the materials you have, you can make about "+.@max+" potions.";
|
|
- input .@amount;
|
|
|
|
next;
|
|
next;
|
|
|
|
+ input .@amount;
|
|
if (.@amount == 0) {
|
|
if (.@amount == 0) {
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "Make up your mind, will you?!";
|
|
mes "Make up your mind, will you?!";
|
|
@@ -246,7 +240,6 @@ L_Making:
|
|
getitem getarg(2),.@amount;
|
|
getitem getarg(2),.@amount;
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
- next;
|
|
|
|
mes "[Old Pharmacist]";
|
|
mes "[Old Pharmacist]";
|
|
mes "What?!";
|
|
mes "What?!";
|
|
mes "Grrr...";
|
|
mes "Grrr...";
|