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/001-1/bgmaster.txt | 6 +++--- npc/001-1/rewards.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/001-1') diff --git a/npc/001-1/bgmaster.txt b/npc/001-1/bgmaster.txt index 73849a5e5..13aa30ee0 100644 --- a/npc/001-1/bgmaster.txt +++ b/npc/001-1/bgmaster.txt @@ -144,7 +144,7 @@ OnVictor2: end; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, GMRobe); // Dress setunitdata(.@npcId, UDT_HEADMIDDLE, NPCEyes); // Not needed setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins); // Shoes @@ -241,7 +241,7 @@ OnSet: end; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, LightPlatemail); // Light armor setunitdata(.@npcId, UDT_HEADMIDDLE, JeansShorts); // Pants setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins); // Shoes @@ -267,7 +267,7 @@ OnSet: end; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, TerraniteArmor); // Terranite armor setunitdata(.@npcId, UDT_HEADMIDDLE, JeansShorts); // Pants setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins); // Shoes diff --git a/npc/001-1/rewards.txt b/npc/001-1/rewards.txt index 9e3d4d9ea..68968d50c 100644 --- a/npc/001-1/rewards.txt +++ b/npc/001-1/rewards.txt @@ -19,7 +19,7 @@ close; OnInit: - .@npcId = getnpcid(0, .name$); + .@npcId = getnpcid(.name$); setunitdata(.@npcId, UDT_HEADTOP, TopHat); setunitdata(.@npcId, UDT_HEADMIDDLE, GoldenWarlordPlate); setunitdata(.@npcId, UDT_WEAPON, JeansChaps); -- cgit v1.2.3-70-g09d2