29 using System.Collections;
30 using OpenSim.Region.ScriptEngine.Interfaces;
41 namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
117 void CheckThreatLevel(
ThreatLevel level,
string function);
120 string osSetDynamicTextureURL(
string dynamicID,
string contentType,
string url,
string extraParams,
int timer);
121 string osSetDynamicTextureURLBlend(
string dynamicID,
string contentType,
string url,
string extraParams,
122 int timer,
int alpha);
123 string osSetDynamicTextureURLBlendFace(
string dynamicID,
string contentType,
string url,
string extraParams,
124 bool blend,
int disp,
int timer,
int alpha,
int face);
125 string osSetDynamicTextureData(
string dynamicID,
string contentType,
string data,
string extraParams,
int timer);
126 string osSetDynamicTextureDataBlend(
string dynamicID,
string contentType,
string data,
string extraParams,
127 int timer,
int alpha);
128 string osSetDynamicTextureDataBlendFace(
string dynamicID,
string contentType,
string data,
string extraParams,
129 bool blend,
int disp,
int timer,
int alpha,
int face);
131 LSL_Float osGetTerrainHeight(
int x,
int y);
132 LSL_Float osTerrainGetHeight(
int x,
int y);
133 LSL_Integer osSetTerrainHeight(
int x,
int y,
double val);
134 LSL_Integer osTerrainSetHeight(
int x,
int y,
double val);
135 void osTerrainFlush();
137 int osRegionRestart(
double seconds);
138 void osRegionNotice(
string msg);
139 bool osConsoleCommand(
string Command);
140 void osSetParcelMediaURL(
string url);
141 void osSetPrimFloatOnWater(
int floatYN);
142 void osSetParcelSIPAddress(
string SIPAddress);
145 string osGetAgentIP(
string agent);
149 void osTeleportAgent(
string agent,
string regionName,
LSL_Types.Vector3 position,
LSL_Types.Vector3 lookat);
150 void osTeleportAgent(
string agent,
int regionX,
int regionY,
LSL_Types.Vector3 position,
LSL_Types.Vector3 lookat);
151 void osTeleportAgent(
string agent,
LSL_Types.Vector3 position,
LSL_Types.Vector3 lookat);
152 void osTeleportOwner(
string regionName,
LSL_Types.Vector3 position,
LSL_Types.Vector3 lookat);
153 void osTeleportOwner(
int regionX,
int regionY,
LSL_Types.Vector3 position,
LSL_Types.Vector3 lookat);
157 void osAvatarPlayAnimation(
string avatar,
string animation);
158 void osAvatarStopAnimation(
string avatar,
string animation);
160 #region Attachment commands
166 void osForceAttachToAvatar(
int attachment);
176 void osForceAttachToAvatarFromInventory(
string itemName,
int attachment);
187 void osForceAttachToOtherAvatarFromInventory(
string rawAvatarId,
string itemName,
int attachmentPoint);
193 void osForceDetachFromAvatar();
214 void osMessageAttachments(
LSL_Key avatar,
string message,
LSL_List attachmentPoints,
int flags);
219 string osMovePen(
string drawList,
int x,
int y);
220 string osDrawLine(
string drawList,
int startX,
int startY,
int endX,
int endY);
221 string osDrawLine(
string drawList,
int endX,
int endY);
222 string osDrawText(
string drawList,
string text);
223 string osDrawEllipse(
string drawList,
int width,
int height);
224 string osDrawRectangle(
string drawList,
int width,
int height);
225 string osDrawFilledRectangle(
string drawList,
int width,
int height);
228 string osSetFontName(
string drawList,
string fontName);
229 string osSetFontSize(
string drawList,
int fontSize);
230 string osSetPenSize(
string drawList,
int penSize);
231 string osSetPenColor(
string drawList,
string color);
232 string osSetPenColour(
string drawList,
string colour);
233 string osSetPenCap(
string drawList,
string direction,
string type);
234 string osDrawImage(
string drawList,
int width,
int height,
string imageUrl);
235 vector osGetDrawStringSize(
string contentType,
string text,
string fontName,
int fontSize);
236 void osSetStateEvents(
int events);
238 double osList2Double(
LSL_Types.list src,
int index);
240 void osSetRegionWaterHeight(
double height);
241 void osSetRegionSunSettings(
bool useEstateSun,
bool sunFixed,
double sunHour);
242 void osSetEstateSunSettings(
bool sunFixed,
double sunHour);
243 double osGetCurrentSunHour();
244 double osGetSunParam(
string param);
245 double osSunGetParam(
string param);
246 void osSetSunParam(
string param,
double value);
247 void osSunSetParam(
string param,
double value);
250 string osWindActiveModelPluginName();
251 void osSetWindParam(
string plugin,
string param,
LSL_Float value);
252 LSL_Float osGetWindParam(
string plugin,
string param);
260 string osGetScriptEngineName();
261 string osGetSimulatorVersion();
263 string osGetPhysicsEngineType();
264 Object osParseJSONNew(
string JSON);
265 Hashtable osParseJSON(
string JSON);
267 void osMessageObject(
key objectUUID,
string message);
269 void osMakeNotecard(
string notecardName,
LSL_Types.list contents);
271 string osGetNotecardLine(
string name,
int line);
272 string osGetNotecard(
string name);
273 int osGetNumberOfNotecardLines(
string name);
275 string osAvatarName2Key(
string firstname,
string lastname);
276 string osKey2Name(
string id);
279 string osGetGridNick();
280 string osGetGridName();
281 string osGetGridLoginURI();
282 string osGetGridHomeURI();
283 string osGetGridGatekeeperURI();
284 string osGetGridCustom(
string key);
286 string osGetAvatarHomeURI(
string uuid);
289 LSL_List osMatchString(
string src,
string pattern,
int start);
290 LSL_String osReplaceString(
string src,
string pattern,
string replace,
int count,
int start);
293 string osLoadedCreationDate();
294 string osLoadedCreationTime();
295 string osLoadedCreationID();
304 void osForceCreateLink(
string target,
int parent);
310 void osForceBreakLink(
int linknum);
315 void osForceBreakAllLinks();
324 key osNpcCreate(
string user,
string name,
vector position,
string notecard);
325 key osNpcCreate(
string user,
string name,
vector position,
string notecard,
int options);
326 LSL_Key osNpcSaveAppearance(key npc,
string notecard);
327 void osNpcLoadAppearance(key npc,
string notecard);
328 vector osNpcGetPos(key npc);
329 void osNpcMoveTo(key npc,
vector position);
330 void osNpcMoveToTarget(key npc,
vector target,
int options);
339 LSL_Key osNpcGetOwner(key npc);
343 void osNpcStopMoveToTarget(
LSL_Key npc);
344 void osNpcSay(key npc,
string message);
345 void osNpcSay(key npc,
int channel,
string message);
346 void osNpcShout(key npc,
int channel,
string message);
347 void osNpcSit(key npc, key target,
int options);
349 void osNpcRemove(key npc);
350 void osNpcPlayAnimation(
LSL_Key npc,
string animation);
351 void osNpcStopAnimation(
LSL_Key npc,
string animation);
353 void osNpcWhisper(key npc,
int channel,
string message);
355 LSL_Key osOwnerSaveAppearance(
string notecard);
356 LSL_Key osAgentSaveAppearance(key agentId,
string notecard);
358 key osGetGender(
LSL_Key rawAvatarId);
359 key osGetMapTexture();
360 key osGetRegionMapTexture(
string regionName);
364 int osGetSimulatorMemory();
365 void osKickAvatar(
string FirstName,
string SurName,
string alert);
366 void osSetSpeed(
string UUID,
LSL_Float SpeedModifier);
368 void osCauseHealing(
string avatar,
double healing);
369 void osCauseDamage(
string avatar,
double damage);
370 void osForceOtherSit(
string avatar);
371 void osForceOtherSit(
string avatar,
string target);
374 void osSetProjectionParams(
bool projection,
LSL_Key texture,
double fov,
double focus,
double amb);
375 void osSetProjectionParams(
LSL_Key prim,
bool projection,
LSL_Key texture,
double fov,
double focus,
double amb);
386 void osSetTerrainTexture(
int level,
LSL_Key texture);
387 void osSetTerrainTextureHeight(
int corner,
double low,
double high);
422 void osSetContentType(
LSL_Key id,
string type);
427 void osDropAttachment();
432 void osForceDropAttachment();
461 LSL_Integer osListenRegex(
int channelID,
string name,
string ID,
462 string msg,
int regexBitfield);
470 LSL_Integer osRegexIsMatch(
string input,
string pattern);
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat LSL_Float
OpenSim.Region.ScriptEngine.Shared.LSL_Types.list LSL_List
Even casual use is a danger to region stability, or function allows console or OS command execution...
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString LSL_Key
ThreatLevel
To permit region owners to enable the extended scripting functionality of OSSL, without allowing mali...
Intentional abuse can cause denial of service and crashes with potential of data or state loss; or tr...
Even normal use may, depending on the number of instances, or frequency of use, result in severe serv...
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString key
OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion rotation
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger LSL_Integer
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger LSLInteger
Abuse of this command can cause a nuisance to the region operator, such as log message spew...
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString LSL_String
OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3 vector