From eb1c2abd3d093f0c293568dfbcbbf0d8c4caa12f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 14 Dec 2018 02:34:47 -0200 Subject: New Hercules Syntax for getnpcid(). sed -i 's/getnpcid(0, /getnpcid(/g' */*.txt --- npc/012-1/bot.txt | 2 +- npc/012-1/dyrinthetraveler.txt | 2 +- npc/012-1/guards.txt | 4 ++-- npc/012-1/hinnak.txt | 2 +- npc/012-1/luffyx.txt | 2 +- npc/012-1/mahad.txt | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'npc/012-1') diff --git a/npc/012-1/bot.txt b/npc/012-1/bot.txt index 8423567f4..8f471bb34 100644 --- a/npc/012-1/bot.txt +++ b/npc/012-1/bot.txt @@ -70,7 +70,7 @@ L_Close: close; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, CenturionHelmet); setunitdata(.@npcId, UDT_HEADMIDDLE, SaviorArmor); setunitdata(.@npcId, UDT_HEADBOTTOM, TulimsharGuardBoots); diff --git a/npc/012-1/dyrinthetraveler.txt b/npc/012-1/dyrinthetraveler.txt index ebacbfecd..43853b860 100644 --- a/npc/012-1/dyrinthetraveler.txt +++ b/npc/012-1/dyrinthetraveler.txt @@ -89,7 +89,7 @@ L_Close: close; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); setunitdata(.@npcId, UDT_HEADMIDDLE, UglyChristmasSweater); // All travelers wear this stuff setunitdata(.@npcId, UDT_HEADBOTTOM, TulimsharGuardBoots); diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index 492ef05a0..ff34e134c 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -84,7 +84,7 @@ OnInit: .sex = G_MALE; .distance = 4; - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, Bull); setunitdata(.@npcId, UDT_HEADMIDDLE, LegionTrainingShirt); setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers); @@ -131,7 +131,7 @@ OnSet: OnInit: .CYCLES=0; - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, GoldenWarlordPlate); // Light armor setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps); // Pants setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots); // Shoes diff --git a/npc/012-1/hinnak.txt b/npc/012-1/hinnak.txt index cce9100b1..89172ee84 100644 --- a/npc/012-1/hinnak.txt +++ b/npc/012-1/hinnak.txt @@ -140,7 +140,7 @@ L_Thanks: close; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, FarmerHat); setunitdata(.@npcId, UDT_HEADMIDDLE, LeatherShirt); setunitdata(.@npcId, UDT_HEADBOTTOM, TulimsharGuardBoots); diff --git a/npc/012-1/luffyx.txt b/npc/012-1/luffyx.txt index 283a1c8d7..54f521bbb 100644 --- a/npc/012-1/luffyx.txt +++ b/npc/012-1/luffyx.txt @@ -71,7 +71,7 @@ L_Lying: goto L_Main; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, CommunityShirt); setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps); setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots); diff --git a/npc/012-1/mahad.txt b/npc/012-1/mahad.txt index de1b02728..4631825d7 100644 --- a/npc/012-1/mahad.txt +++ b/npc/012-1/mahad.txt @@ -47,7 +47,7 @@ OnInit: .sex = G_MALE; .distance = 7; - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); // Check items.xml for info about this setunitdata(.@npcId, UDT_HEADTOP, InfantryHelmet); setunitdata(.@npcId, UDT_HEADMIDDLE, SailorShirt); -- cgit v1.2.3-60-g2f50