„Chris.MultiNPC.lsl“ ändern

This commit is contained in:
Christopher 2021-01-30 05:44:49 +00:00
parent 0fe04fa4fa
commit 5e8002e693
1 changed files with 4 additions and 2 deletions

View File

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