From 1d1d991bd438b6d146d7cb01d9c65277a24c4f4f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 17 Aug 2014 03:47:03 +1000 Subject: LSL functions, gotta get them all. --- lib/LSL.lua | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/lib/LSL.lua b/lib/LSL.lua index 0f5e9ec..6f627e8 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua @@ -923,8 +923,14 @@ local constants = } +-- LSL animation overrider functions +newFunc("string", "llGetAnimationOverride", "string anim_state") +newFunc("", "llResetAnimationOverride", "string anim_state") +newFunc("", "llSetAnimationOverride", "string anim_state", "string anim") + -- LSL avatar functions newFunc("", "llAttachToAvatar", "integer attachment") +newFunc("", "llAttachToAvatarTemp", "integer attachment") newFunc("key", "llAvatarOnSitTarget") newFunc("key", "llAvatarOnLinkSitTarget", "integer linknum") newFunc("", "llClearCameraParams") @@ -964,6 +970,7 @@ newFunc("", "llTakeControls", "integer controls", "integer accept", "integer pa newFunc("", "llTeleportAgentHome", "string agent") newFunc("", "llTeleportAgent", "string agent", "string simname", "vector pos", "vector lookAt") newFunc("", "llTeleportAgentGlobalCoords", "string agent", "vector global", "vector pos", "vector lookAt") +newFunc("key", "llTransferLindenDollars", "key destination", "integer amount") newFunc("", "llUnSit", "key avatar") -- LSL collision / detect / sensor functions @@ -1024,6 +1031,7 @@ newFunc("string", "llRequestSecureURL") newFunc("key", "llRequestURL") newFunc("", "llSay", "integer channel", "string text") newFunc("key", "llSendRemoteData", "string channel", "string dest", "integer idata", "string sdata") +newFunc("", "llSetContentType", "key request_id", "integer content_type") newFunc("", "llSetPrimURL", "string url") newFunc("", "llShout", "integer channel", "string text") newFunc("", "llTextBox", "string avatar", "string message", "integer chat_channel") @@ -1047,12 +1055,20 @@ newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") newFunc("", "llSetInventoryPermMask", "string item", "integer mask", "integer value") +-- LSL JSON functions +newFunc("list", "llJson2List", "string src") +newFunc("string", "llJsonGetValue", "string json", "list specifiers") +newFunc("string", "llJsonSetValue", "string json", "list specifiers", "string value") +newFunc("string", "llJsonValueType", "string json", "list specifiers") +newFunc("string", "llList2Json", "string Type", "list values") + -- LSL land / parcel / plot / region / sim / weather functions newFunc("", "llAddToLandBanList", "string avatar", "float hours") newFunc("", "llAddToLandPassList", "string avatar", "float hours") newFunc("float", "llCloud", "vector offset") newFunc("integer", "llEdgeOfWorld", "vector pos", "vector dir") newFunc("", "llEjectFromLand", "string pest") +newFunc("string", "llGetEnv", "string name") newFunc("key", "llGetLandOwnerAt", "vector pos") newFunc("list", "llGetParcelDetails", "vector pos", "list param") newFunc("integer", "llGetParcelFlags", "vector pos") @@ -1065,6 +1081,7 @@ newFunc("integer", "llGetRegionFlags") newFunc("float", "llGetRegionFPS") newFunc("string", "llGetRegionName") newFunc("float", "llGetRegionTimeDilation") +newFunc("float", "llGetSimStats", "integer stat_type") newFunc("string", "llGetSimulatorHostname") newFunc("vector", "llGetSunDirection") newFunc("float", "llGround", "vector offset") @@ -1072,6 +1089,7 @@ newFunc("vector", "llGroundContour", "vector offset") newFunc("vector", "llGroundNormal", "vector offset") newFunc("", "llGroundRepel", "float height", "integer water", "float tau") newFunc("vector", "llGroundSlope", "vector offset") +newFunc("integer", "llManageEstateAccess", "integer action", "key avatar") newFunc("", "llMapDestination", "string simname", "vector pos", "vector look_at") newFunc("", "llModifyLand", "integer action", "integer brush") newFunc("integer", "llOverMyLand", "string id") @@ -1080,6 +1098,8 @@ newFunc("", "llRemoveFromLandPassList", "string avatar") newFunc("key", "llRequestSimulatorData", "string simulator", "integer data") newFunc("", "llResetLandBanList") newFunc("", "llResetLandPassList") +newFunc("integer", "llReturnObjectsByID", "list objects") +newFunc("integer", "llReturnObjectsByOwner", "key owner", "integer scope") newFunc("float", "llWater", "vector offset") newFunc("vector", "llWind", "vector offset") @@ -1098,7 +1118,10 @@ newFunc("key", "llGetKey") newFunc("key", "llGetLinkKey", "integer linknum") newFunc("string", "llGetLinkName", "integer linknum") newFunc("integer", "llGetLinkNumber") +newFunc("integer", "llGetLinkNumberOfSides", "integer link") newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") +newFunc("float", "llGetMaxScaleFactor") +newFunc("float", "llGetMinScaleFactor") newFunc("integer", "llGetNumberOfPrims") newFunc("integer", "llGetNumberOfSides") newFunc("string", "llGetObjectDesc") @@ -1109,9 +1132,7 @@ newFunc("integer", "llGetObjectPrimCount", "string object_id") newFunc("vector", "llGetOmega") newFunc("key", "llGetOwner") newFunc("key", "llGetOwnerKey", "string id") -newFunc("integer", "llGetLinkNumberOfSides", "integer link") -newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules") -newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") +newFunc("list", "llGetPhysicsMaterial") newFunc("list", "llGetPrimitiveParams", "list rules") newFunc("integer", "llGetStatus", "integer status") newFunc("", "llLinkParticleSystem", "integer linknum", "list rules") @@ -1125,6 +1146,7 @@ newFunc("", "llMoveToTarget", "vector target", "float tau") newFunc("", "llParticleSystem", "list rules") newFunc("", "llPassTouches", "integer pass") newFunc("", "llRotLookAt", "rotation target", "float strength", "float damping") +newFunc("integer", "llScaleByFactor", "float scaling_factor") newFunc("", "llSetClickAction", "integer action") newFunc("", "llSetDamage", "float damage") newFunc("", "llSetHoverHeight", "float height", "integer water", "float tau") @@ -1134,6 +1156,7 @@ newFunc("", "llSetObjectDesc", "string text") newFunc("", "llSetObjectName", "string text") newFunc("", "llSetObjectPermMask", "integer mask", "integer value") newFunc("", "llSetPayPrice", "integer price", "list quick_pay_buttons") +newFunc("", "llSetPhysicsMaterial", "integer mask", "float gravity_multiplier", "float restitution", "float friction", "float density") newFunc("", "llSetPrimitiveParams", "list params") newFunc("integer", "llSetRegionPos", "vector pos") newFunc("", "llSetStatus", "integer status", "integer value") @@ -1208,17 +1231,17 @@ newFunc("vector", "llVecNorm", "vector v") newFunc("", "llAdjustSoundVolume", "float volume") newFunc("integer", "llClearLinkMedia", "integer link", "integer face") newFunc("integer", "llClearPrimMedia", "integer face") -newFunc("", "llParcelMediaCommandList", "list commandList") -newFunc("list", "llParcelMediaQuery", "list aList") +newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules") +newFunc("string", "llGetParcelMusicURL") newFunc("list", "llGetPrimMediaParams", "integer face", "list rules") newFunc("", "llLoopSound", "string sound", "float volume") newFunc("", "llLoopSoundMaster", "string sound", "float volume") newFunc("", "llLoopSoundSlave", "string sound", "float volume") +newFunc("", "llParcelMediaCommandList", "list commandList") +newFunc("list", "llParcelMediaQuery", "list aList") newFunc("", "llPlaySound", "string name", "float volume") newFunc("", "llPlaySoundSlave", "string sound", "float volume") newFunc("", "llPreloadSound", "string sound") -newFunc("", "llTriggerSound", "string sound", "float volume") -newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west") newFunc("integer", "llSetLinkMedia", "integer link", "integer face", "list rules") newFunc("", "llSetParcelMusicURL", "string url") newFunc("integer", "llSetPrimMediaParams", "integer face", "list rules") @@ -1227,6 +1250,22 @@ newFunc("", "llSetSoundRadius", "float radius") newFunc("", "llSound", "string sound", "float volume", "integer queue", "integer loop") newFunc("", "llSoundPreload", "string sound") newFunc("", "llStopSound") +newFunc("", "llTriggerSound", "string sound", "float volume") +newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west") + +-- LSL path finding functions +newFunc("", "llCreateCharacter", "list options") +newFunc("", "llDeleteCharacter") +newFunc("", "llEvade", "key target", "list options") +newFunc("", "llExecCharacterCmd", "integer command", "list options") +newFunc("", "llFleeFrom", "vector position", "float distance", "list options") +newFunc("list", "llGetClosestNavPoint", "vector point", "list options") +newFunc("list", "llGetStaticPath", "vector start", "vector End", "float radius", "list params") +newFunc("", "llNavigateTo", "vector pos", "list options") +newFunc("", "llPatrolPoints", "list patrolPoints", "list options") +newFunc("", "llPursue", "key target", "list options") +newFunc("", "llUpdateCharacter", "list options") +newFunc("", "llWanderWithin", "vector origin", "vector dist", "list options") -- LSL physics functions newFunc("", "llApplyImpulse", "vector force", "integer local") @@ -1235,14 +1274,18 @@ newFunc("vector", "llGetAccel") newFunc("vector", "llGetCenterOfMass") newFunc("vector", "llGetForce") newFunc("float", "llGetMass") +newFunc("float", "llGetMassMKS") newFunc("float", "llGetObjectMass", "string id") newFunc("vector", "llGetTorque") newFunc("vector", "llGetVel") newFunc("", "llPushObject", "string target", "vector impulse", "vector ang_impulse", "integer local") +newFunc("", "llSetAngularVelocity", "vector initial_omega", "integer local") newFunc("", "llSetBuoyancy", "float buoyancy") newFunc("", "llSetForce", "vector force", "integer local") newFunc("", "llSetForceAndTorque", "vector force", "vector torque", "integer local") +newFunc("", "llSetKeyframedMotion", "list keyframes", "list options") newFunc("", "llSetTorque", "vector torque", "integer local") +newFunc("", "llSetVelocity", "vector force", "integer local") -- LSL rotation / scaling / translation functions newFunc("vector", "llGetLocalPos") @@ -1293,6 +1336,7 @@ newFunc("integer", "llSubStringIndex", "string text", "string sub") newFunc("string", "llToLower", "string source") newFunc("string", "llToUpper", "string source") newFunc("string", "llUnescapeURL", "string url") +newFunc("string", "llXorBase64", "string str1", "string str2") newFunc("string", "llXorBase64Strings", "string str1", "string str2") newFunc("string", "llXorBase64StringsCorrect", "string str1", "string str2") -- cgit v1.1