summaryrefslogtreecommitdiff
path: root/npc/merchants/ammo_boxes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/merchants/ammo_boxes.txt')
-rw-r--r--npc/merchants/ammo_boxes.txt37
1 files changed, 18 insertions, 19 deletions
diff --git a/npc/merchants/ammo_boxes.txt b/npc/merchants/ammo_boxes.txt
index f4df03a0a..5cb63a57b 100644
--- a/npc/merchants/ammo_boxes.txt
+++ b/npc/merchants/ammo_boxes.txt
@@ -1,5 +1,5 @@
//===== Hercules Script ======================================
-//= Magazine Dealer Kenny
+//= Magazine Dealers
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
@@ -16,10 +16,9 @@
//= 1.5 Moved Izlude duplicate to pre-re/re paths. [Euphy]
//============================================================
-alberta,118,157,3 script Magazine Dealer Tonny::mdk 83,{
- set .n$, compare(strnpcinfo(1),"Tonny")?"[Tonny]":"[Kenny]";
- if(BaseJob == Job_Gunslinger) {
- mes .n$;
+alberta,118,157,3 script Magazine Dealer Kenny::mdk 83,{
+ if (BaseJob == Job_Gunslinger) {
+ mes "[Kenny]";
mes "Welcome to my Magazine Shop.";
mes "As you may know, large numbers";
mes "of bullets can be carried more";
@@ -36,7 +35,7 @@ alberta,118,157,3 script Magazine Dealer Tonny::mdk 83,{
case 7: callfunc "Func_Casing",13202,12150; break;
case 8: callfunc "Func_Casing",13201,12151; break;
case 9:
- mes .n$;
+ mes "[Kenny]";
mes "Well, if you ever find";
mes "that you have too many";
mes "bullets, come and see me.";
@@ -45,7 +44,7 @@ alberta,118,157,3 script Magazine Dealer Tonny::mdk 83,{
close;
}
}
- mes .n$;
+ mes "[Kenny]";
mes "Welcome to my shop.";
mes "Here, I provide Magazines";
mes "and Cartridges for Gunslingers.";
@@ -53,7 +52,7 @@ alberta,118,157,3 script Magazine Dealer Tonny::mdk 83,{
mes "my services would be of any";
mes "use to you, adventurer.";
next;
- mes .n$;
+ mes "[Kenny]";
mes "Eh, but if you happen to";
mes "know any Gunslingers, send";
mes "them my way. You can never";
@@ -62,18 +61,18 @@ alberta,118,157,3 script Magazine Dealer Tonny::mdk 83,{
}
function script Func_Casing {
- mes .n$;
+ mes "[Kenny]";
mes "Now, you can trade";
mes "500 "+getitemname(getarg(0))+"s";
mes "and 500 zeny for 1 "+getitemname(getarg(1))+", so make sure";
mes "you have sufficient bullets";
mes "and zeny for this exchange.";
next;
- mes .n$;
+ mes "[Kenny]";
mes "You can exchange 500 "+getitemname(getarg(0))+"s and 500 zeny";
mes "with 1 "+getitemname(getarg(1))+".";
next;
- mes .n$;
+ mes "[Kenny]";
mes "Remember that I can't give";
mes "you more than 50 Magazines";
mes "at a time. Now please enter";
@@ -81,8 +80,8 @@ function script Func_Casing {
mes "want to receive. If you want to cancel, then just enter ''0.''";
next;
input .@amount;
- if(.@amount > 50 || .@amount == 0) {
- mes .n$;
+ if (.@amount > 50 || .@amount == 0) {
+ mes "[Kenny]";
mes "Hey, I can't give you";
mes "that many Magazines.";
mes "Please try again, and";
@@ -93,7 +92,7 @@ function script Func_Casing {
if (countitem(getarg(0)) >= (500*.@amount)) {
if (Zeny >= (500*.@amount)) {
if (checkweight(getarg(1),.@amount) == 0) {
- mes .n$;
+ mes "[Kenny]";
mes "Hey, you've got a lot";
mes "of junk crammed in your";
mes "Inventory. Free up some";
@@ -102,7 +101,7 @@ function script Func_Casing {
mes "some Magazines later, okay?";
close;
}else{
- mes .n$;
+ mes "[Kenny]";
mes "Alright, here are";
mes "your Magazines. Thanks";
mes "for visiting my shop, and";
@@ -113,8 +112,8 @@ function script Func_Casing {
getitem getarg(1),.@amount;
close;
}
- }else{
- mes .n$;
+ } else {
+ mes "[Kenny]";
mes "Sorry, but you don't";
mes "have enough zeny for";
mes "this Magazine exchange.";
@@ -123,8 +122,8 @@ function script Func_Casing {
mes "some more money.";
close;
}
- }else{
- mes .n$;
+ } else {
+ mes "[Kenny]";
mes "Sorry, but you don't";
mes "have enough bullets for";
mes "this Magazine exchange.";