Thank you, sacha magne, for a patch that implements

llRequestSimulatorData("simname", DATA_SIM_RELEASE)
Fixes Mantis #1866
0.6.0-stable
Melanie Thielker 2008-07-31 10:51:30 +00:00
parent ddf126321c
commit af3e2c6e1c
4 changed files with 8 additions and 0 deletions

View File

@ -2239,6 +2239,7 @@ namespace OpenSim.Region.ScriptEngine.Common
public const int DATA_SIM_POS = 5; public const int DATA_SIM_POS = 5;
public const int DATA_SIM_STATUS = 6; public const int DATA_SIM_STATUS = 6;
public const int DATA_SIM_RATING = 7; public const int DATA_SIM_RATING = 7;
public const int DATA_SIM_RELEASE = 128;
public const int ANIM_ON = 1; public const int ANIM_ON = 1;
public const int LOOP = 2; public const int LOOP = 2;

View File

@ -6604,6 +6604,9 @@ namespace OpenSim.Region.ScriptEngine.Common
else else
reply = "UNKNOWN"; reply = "UNKNOWN";
break; break;
case 128: // SIM_RELEASE
reply = m_ScriptEngine.World.GetSimulatorVersion();
break;
default: default:
return LLUUID.Zero.ToString(); // Raise no event return LLUUID.Zero.ToString(); // Raise no event
} }

View File

@ -6381,6 +6381,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
else else
reply = "UNKNOWN"; reply = "UNKNOWN";
break; break;
case 128: // SIM_RELEASE
reply = m_ScriptEngine.World.GetSimulatorVersion();
break;
default: default:
return LLUUID.Zero.ToString(); // Raise no event return LLUUID.Zero.ToString(); // Raise no event
} }

View File

@ -233,6 +233,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public const int DATA_SIM_STATUS = 6; public const int DATA_SIM_STATUS = 6;
public const int DATA_SIM_RATING = 7; public const int DATA_SIM_RATING = 7;
public const int DATA_PAYINFO = 8; public const int DATA_PAYINFO = 8;
public const int DATA_SIM_RELEASE = 128;
public const int ANIM_ON = 1; public const int ANIM_ON = 1;
public const int LOOP = 2; public const int LOOP = 2;