diff --git a/Chris.MultiNPC.lsl b/Chris.MultiNPC.lsl index 9bb1329..55ff31c 100644 --- a/Chris.MultiNPC.lsl +++ b/Chris.MultiNPC.lsl @@ -31,12 +31,11 @@ state running { state_entry() { - llSetTimerEvent(1); + llSetTimerEvent(0.3); } timer() { - llSetTimerEvent(1); doNextScriptStep(); } @@ -226,6 +225,8 @@ doNextScriptStep() case "touch": if(!script_touch(currentNPCSlot, currentNPCKey, lineCommandData)) llSay(0, "Script execution in '" + llList2String(lineCommandData, 0) + "' in nc '"+ currentncname +"' on line '" + currentLine + "' failed."); + + currentNPCSlot--; break; case "goto": if(script_goto(currentNPCSlot, currentNPCKey, lineCommandData)) @@ -290,6 +291,7 @@ checkOSPermissions() hardReset() { + llSetTimerEvent(0); integer dataListCount = llGetListLength(m_npcdata); while(dataListCount--) if(checkDataEntryInDataList(m_npcdata, "npc." + dataListCount))