save npc data
This commit is contained in:
parent
5d6bfe808c
commit
4944da6bc0
|
@ -2,7 +2,7 @@
|
|||
yoptions;
|
||||
|
||||
//===================
|
||||
//Version: 0.1.4
|
||||
//Version: 0.1.5
|
||||
//Datum: 29.07.2021
|
||||
//UpdateRAW: https://clatza.dev/Christopher/OpenSim.Script.Chris.MultiNPC/raw/branch/master/Chris.MultiNPC.lsl
|
||||
//Made by: Chris Resident @ inc.li:8002
|
||||
|
@ -21,7 +21,7 @@ default
|
|||
state_entry()
|
||||
{
|
||||
|
||||
m_npcdata = llCSV2List(osGetDataValue("tmp." + llGetKey()));
|
||||
m_npcdata = llCSV2List(osGetPrivateDataValue("tmp." + llGetKey()));
|
||||
hardReset();
|
||||
|
||||
m_lastTimeCheck = llGetUnixTime();
|
||||
|
@ -324,7 +324,7 @@ doNextScriptStep()
|
|||
}
|
||||
}
|
||||
|
||||
osSetDataValue("tmp." + llGetKey(), llList2CSV(m_npcdata));
|
||||
osSetPrivateDataValue("tmp." + llGetKey(), llList2CSV(m_npcdata));
|
||||
}
|
||||
|
||||
readNPCPathNC(string ncName)
|
||||
|
@ -388,7 +388,7 @@ hardReset()
|
|||
|
||||
m_lastTimeCheck = 0;
|
||||
m_npcdata = [];
|
||||
osDeleteDataValue("tmp." + llGetKey());
|
||||
osDeletePrivateDataValue("tmp." + llGetKey());
|
||||
|
||||
//llResetScript();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue