Clean up most modern GUID usage.

This commit is contained in:
andrew6180
2024-05-20 13:13:52 -07:00
parent bd68720db3
commit 90a085acf0
5 changed files with 56 additions and 71 deletions
+3 -3
View File
@@ -684,7 +684,7 @@ end
local forceClass
--get the aID (actor id)
if (actorSerial:match("^C")) then
if (GUIDIsNPC(actorSerial)) then
newActor.aID = tostring(Details:GetNpcIdFromGuid(actorSerial))
--immersion stuff
@@ -697,8 +697,8 @@ end
end
end
elseif (actorSerial:match("^P")) then
newActor.aID = actorSerial:gsub("Player%-", "")
elseif (GUIDIsPlayer(actorSerial)) then
newActor.aID = GetPlayerUIDFromGUID(actorSerial)
else
newActor.aID = ""