„Chris.MultiNPC.lsl“ ändern
This commit is contained in:
parent
1fb1f920e2
commit
373b057d1f
|
@ -2,7 +2,7 @@
|
|||
yoptions;
|
||||
|
||||
//===================
|
||||
//Version: 0.1.1
|
||||
//Version: 0.1.2
|
||||
//Datum: 30.01.2021
|
||||
//Git: https://clatza.dev/Christopher/OpenSim.Script.Chris.MultiNPC
|
||||
//Made by: Chris Resident @ inc.li:8002
|
||||
|
@ -98,6 +98,15 @@ integer script_create(integer slot, key npc, list command)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
integer script_remove(integer slot, key npc, list command)
|
||||
{
|
||||
if(npc != NULL_KEY)
|
||||
osNpcRemove(npc);
|
||||
|
||||
m_npcdata = setDataEntryInDataList(m_npcdata, "npc." + slot, NULL_KEY);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
integer script_say(integer slot, key npc, list command)
|
||||
{
|
||||
osNpcSay(npc, 0, llList2String(command, 1));
|
||||
|
@ -257,6 +266,10 @@ doNextScriptStep()
|
|||
if(!script_create(currentNPCSlot, currentNPCKey, lineCommandData))
|
||||
llSay(0, "Script execution in '" + llList2String(lineCommandData, 0) + "' in nc '"+ currentncname +"' on line '" + currentLine + "' failed.");
|
||||
break;
|
||||
case "remove":
|
||||
if(!script_remove(currentNPCSlot, currentNPCKey, lineCommandData))
|
||||
llSay(0, "Script execution in '" + llList2String(lineCommandData, 0) + "' in nc '"+ currentncname +"' on line '" + currentLine + "' failed.");
|
||||
break;
|
||||
case "say":
|
||||
if(!script_say(currentNPCSlot, currentNPCKey, lineCommandData))
|
||||
llSay(0, "Script execution in '" + llList2String(lineCommandData, 0) + "' in nc '"+ currentncname +"' on line '" + currentLine + "' failed.");
|
||||
|
|
Loading…
Reference in New Issue