summaryrefslogtreecommitdiff
path: root/npc/other/mercenary_rent.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/other/mercenary_rent.txt')
-rw-r--r--npc/other/mercenary_rent.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/npc/other/mercenary_rent.txt b/npc/other/mercenary_rent.txt
index 28221ad34..418e7e8b0 100644
--- a/npc/other/mercenary_rent.txt
+++ b/npc/other/mercenary_rent.txt
@@ -1,29 +1,29 @@
//===== Hercules Script ======================================
//= Mercenary related NPCs
-//===== By: ==================================================
+//===== By: ==================================================
//= L0ne_W0lf
-//===== Current Version: =====================================
+//===== Current Version: =====================================
//= 1.4
-//===== Description: =========================================
+//===== Description: =========================================
//= [Official Conversion]
//= Sells Lancer, Sword, and Archer mercenaries,
//= along with related mercenary items.
-//===== Additional Comments: =================================
+//===== Additional Comments: =================================
//= 1.0 First version. [L0ne_W0lf]
//= 1.1 Optimization. [Zephyrus]
//= 1.2 Removed redundent input. [L0ne_W0lf]
//= 1.3 Duplicates now spawned from floating NPCs. [L0ne_W0lf]
//= 1.4 Optimized and fixed wrong item id. [Joseph]
-//============================================================
+//============================================================
- script Mercenary Manager#main -1,{
setarray .@name$, "Spear", "Sword", "Bow";
setarray .@faith$, "SPEAR_MERC_GUILD", "SWORD_MERC_GUILD", "ARCH_MERC_GUILD";
setarray .@item, 12182, 12172, 12162;
- set .@faith_lancer, mercenary_get_faith(getd(.@faith$[.@type]));
set .@npc$, strnpcinfo(2);
for (set .@size, getarraysize(.@name$); .@i < .@size; set .@i, .@i + 1)
if (.@npc$ == .@name$[.@i]) set .@type, .@i;
+ set .@faith_merc, mercenary_get_faith(getd(.@faith$[.@type]));
mes "[Mercenary Manager]";
mes "Welcome to the";
mes .@npc$ + " Mercenary Guild.";
@@ -62,7 +62,7 @@
mes "free to come back if your";
mes "needs change. Thank you~";
}
- else if(.@FaithCost && .@faith_lancer < .@FaithCost) {
+ else if(.@FaithCost && .@faith_merc < .@FaithCost) {
mes "[Mercenary Manager]";
mes "Oh... Your Loyalty rating";
mes "with the " + .@npc$ + " Mercenary";
@@ -176,7 +176,7 @@
mes "Mercenary. Have you considered";
mes "hiring a lower grade Mercenary?";
}
- else if (.@faith_lancer < 500) {
+ else if (.@faith_merc < 500) {
mes "[Mercenary Manager]";
mes "I'm sorry, but your";
mes "Loyalty rating is too";