Make sure to prefix NPC names with "NPC:" so they can't be mistaken for users
parent
70157a4ec5
commit
38ae479249
|
@ -2100,6 +2100,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned)
|
private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned)
|
||||||
{
|
{
|
||||||
|
if (firstname != String.Empty || lastname != String.Empty)
|
||||||
|
{
|
||||||
|
if (firstname != "Shown outfit:")
|
||||||
|
firstname = "NPC: " + firstname;
|
||||||
|
}
|
||||||
|
|
||||||
INPCModule module = World.RequestModuleInterface<INPCModule>();
|
INPCModule module = World.RequestModuleInterface<INPCModule>();
|
||||||
if (module != null)
|
if (module != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue