-
Posts
906 -
Joined
-
Last visited
Reputation
297 ExcellentRetained
-
Member Title
Lotus Eater
Recent Profile Visitors
1,761 profile views
-
Edit: nvm, it was just authing folders & linking the sheet & app script
-
my prims are now getting an "Access Denied" ... not sure what google changed. anyone have a working script that uses a google apps script to store a URL ? Thanx for any help
-
I tried it with 64 2-meter tiles and a root prim under them all, but i think this code only works for one agent at a time? anyhoo, mebbe someone can use it ... integer old; integer new; default { state_entry() { llSetLinkPrimitiveParamsFast( LINK_ALL_OTHERS, [ PRIM_COLOR, ALL_SIDES, <0.0, 0.0, 0.0>, 1.0, PRIM_GLOW,ALL_SIDES,0.0 ]); } collision(integer num) { new = llDetectedLinkNumber(0); if( new != 1) { if(new != old) { llSetLinkPrimitiveParamsFast( new, [ PRIM_COLOR, ALL_SIDES, <1.0, 1.0, 1.0>, 1.0, PRIM_GLOW,ALL_SIDES,0.1]); llSetLinkPrimitiveParamsFast( old, [ PRIM_COLOR, ALL_SIDES, <0.0, 0.0, 0.0>, 1.0, PRIM_GLOW,ALL_SIDES,0.0]); old = new; } } llSensorRepeat("", "", AGENT_BY_LEGACY_NAME, 8.0, PI, 0.2); } no_sensor() { llSetLinkPrimitiveParamsFast( LINK_ALL_OTHERS, [ PRIM_COLOR, ALL_SIDES, <0.0, 0.0, 0.0>, 1.0, PRIM_GLOW,ALL_SIDES,0.0 ]); llSensorRemove(); old = 0; } }
-
Rez an object on the ground so it faces towards the Owner?
Xiija replied to jak Scribe's topic in LSL Scripting
@jak Scribe mostly the above + the stuff on the wiki & llRotLookAt ... default { on_rez(integer start_param) { llResetScript(); } state_entry() { vector pos = llGetPos(); vector OwnerPos = llList2Vector(llGetObjectDetails( llGetOwner(),[OBJECT_POS]), 0); llRotLookAt( llRotBetween( <1.0, 0.0, 0.0>, llVecNorm( <OwnerPos.x, OwnerPos.y, pos.z> - pos ) ), 1.0, 0.4 ); } } -
Using sensor to populate dialog box of nearby avatars
Xiija replied to SEMaster Aftermath's topic in LSL Scripting
or you could shorten the name to be used?... names += ":" + llGetSubString( llDetectedName(index++) , 0, 23); -
Just seeking a lil understanding.. the wiki says : llSitTarget( vector offset, rotation rot ); but when i use getlinkprimparams... it returns a list of 3 items? touch_start(integer total_number) { list ls = llGetLinkPrimitiveParams(LINK_THIS, [PRIM_SIT_TARGET]); vector zero = llList2Vector(ls, 0); vector one = llList2Vector(ls, 1); vector three = llList2Vector(ls, 2); integer len = llGetListLength( ls ); llOwnerSay("vecs: \n" + (string)zero + "\n " + (string)one + "\n " + (string) three + "\n LEN: " + (string)len ); }
-
Detection of Speed Enhancers on Physical Vehicles
Xiija replied to Atomic Infinity's topic in LSL Scripting
we used a skater HUD in sl roller derby, and the way we checked for speed huds was to allow only 1 scripted attachment, ( the skate HUD ). Just check participants on a timer mebbe? -
just curious, is anyone else seeing something like this? I can't shop past the first page, and sometimes not even that ... ( found items, none listed or shown )
-
@ItHadToComeToThis If you sell on MP, then you kinda need a server for updates. ( repl.it + pingers is free ). if you only sell in a store with a vendor, you could use LsD & JSON.
-
anyone else having problems with the MP ? .. when ever i change search params ( i.e. price, rights, etc ) and go to a second page, all i see is this ... any ideas...? this one was first page, just changed the search params...
-
@Todd Sivith tested this with 2 cylinder prims, seems to work ok... ( this script is in the root ) integer tog = -1; default { touch_start(integer total_number) { integer link = llDetectedLinkNumber(0); if( link == 2 ) { vector prim_pos = llList2Vector(llGetLinkPrimitiveParams( link, [PRIM_POSITION]),0); prim_pos = ( prim_pos - llGetPos() ) / llGetRot(); prim_pos.z += (0.25 * (tog = -tog) ); llSetLinkPrimitiveParamsFast( link, [PRIM_POSITION,prim_pos]); llPlaySound("4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6", 1.0); } } }
-
@Gayngel dunno if this helps, but here is a very simple example... ( the url i'm using is a quickie server i made on replit ) the send/recieve is all json LSL: key http_request_id; string URL = "https://SecLife-php-1.tikihed.repl.co/index.php"; default { state_entry() { } touch_start(integer total_number) { llOwnerSay("Sending..."); string j_obj = llList2Json( JSON_OBJECT, [ "name", llDetectedName(0), "region", llGetRegionName() ]); http_request_id = llHTTPRequest(URL , [ HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded", HTTP_BODY_MAXLENGTH, 16384, HTTP_PRAGMA_NO_CACHE, TRUE ], j_obj ); } http_request(key id, string method, string body) { integer responseStatus = 200; string responseBody = "my method"; if (method == "GET") { responseStatus = 200; responseBody = "ok"; } // else if (method == "POST") ...; // else if (method == "PUT") ...; // else if (method == "DELETE") { responseStatus = 403; responseBody = "forbidden"; } llHTTPResponse(id, responseStatus, responseBody); } http_response(key request_id, integer status, list metadata, string body) { llOwnerSay("\nHTTP Resp: \n \n" + body); } } PHP: <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $json = file_get_contents('php://input'); $data = json_decode($json); foreach($data as $key=>$value){ echo $key . " : " . $value . "\n"; } } ?>