From dbe74b6d5d880e57a0018dac471dcb78890f5e79 Mon Sep 17 00:00:00 2001 From: Kevin Eady <8634912+KevinEady@users.noreply.github.com> Date: Fri, 11 Oct 2024 00:31:51 +0200 Subject: [PATCH] Update scripts for classes support (#153) --- pkg/mobiles/npcs/startup/NPCCache.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mobiles/npcs/startup/NPCCache.src b/pkg/mobiles/npcs/startup/NPCCache.src index 6c250774e..796233c73 100644 --- a/pkg/mobiles/npcs/startup/NPCCache.src +++ b/pkg/mobiles/npcs/startup/NPCCache.src @@ -16,7 +16,7 @@ Program NPC_By_Taxonomy_Cache() var Tax_NPC_list := {}; // A temp array that holds all NPCs in a certain classification. var NPC_keys := {}; // Holds all of the keys from npcdesc.cfg var NPC_Ref := 0; // Used to hold a ObjRef to an NPC. - var class := 0; // Used to hold a reference to a datafile element. + var clazz := 0; // Used to hold a reference to a datafile element. var temp := ""; // A temp variable to hold a string. UnloadConfigFile(":npcs:settings"); @@ -49,7 +49,7 @@ Program NPC_By_Taxonomy_Cache() endif taxonomies.append(temp); endforeach - class := NPC_Taxonomy_df.CreateElement("Taxonomies"); + clazz := NPC_Taxonomy_df.CreateElement("Taxonomies"); // This is the fun part, building the datafile. foreach thing in taxonomies // Create the classification element in . @@ -72,7 +72,7 @@ Program NPC_By_Taxonomy_Cache() endif endforeach // Store the NPC_List in the datafile. - class.SetProp(thing, Tax_NPC_list); + clazz.SetProp(thing, Tax_NPC_list); endforeach Print("NPC datafile setup done."); endprogram