Xiija

Resident
  • Content count

    525
  • Joined

  • Last visited

Community Reputation

84 Excellent

About Xiija

  • Rank
    Lotus Eater

Recent Profile Visitors

426 profile views
  1. Inter-region script communication

    Dunno if this will help , but.. I've set up repeaters to carry messages between sims and as long as all sims are contiguous it should work . The repeaters are placed about 5m from the sim boarder, and about 10 meters from each other, then they shout the msg over the border to the next sim's repeater, and it gets region-said thru the sim to repeaters on the next boarder, which shout it on... etc. I've also used a channel number or inworld URL stored on a google doc, and fetched it with something like... URL = "https://docs.google.com/document/d/(google doc ID here)/export?exportFormat=txt"; you would have to manually update the channel / url when it changes unless you have your main inworld server post any new info it receives to a google form linked to a google spreadsheet etc.. ?
  2. sliding door script- adding auto close

    personally i never ever use states, but... a graphical look at states would be kinda like ... DEFAULT*STATE { default*state ....state_entry() { //Operations that will be executed when the script restarts or when execution enters this state } default*state ....touch_start(integer num) { // Operations that will be triggered if someone left-clicks on yhe object state SECONDARY*STATE ; // go to the next state } } // end of DEFAULT*STATE SECONDARY*STATE { secondary*state ....state_entry() { //Operations that will be executed when the script restarts or when execution enters this state } secondary*state ....touch_start(integer num) { // Operations that will be triggered if someone left-clicks on yhe object state DEFAULT*STATE; // go back to the first state } } // end of SECONDARY*STATE
  3. Undress item by timer

    mebbe i'm missin something...? http://wiki.secondlife.com/wiki/LlAttachToAvatar http://wiki.secondlife.com/wiki/Timer http://wiki.secondlife.com/wiki/LlDetachFromAvatar http://wiki.secondlife.com/wiki/LlDie
  4. Setting up a server site for LSL

    If you don't have access to a site where you can host your own files, I've found you can use Google to get data persistence. You send your data via http to a google form that is linked to a google spreadsheet, the data gets stored in the spreadsheet, and you use http to GET the sheet's info from the cell you are interested in the url looks something like this... ( pulling from cell J2 ) https://docs.google.com/spreadsheets/d/(spreadsheet id?)/pubhtml?gid=(some id?)&single=true&gid=0&output=txt&range=J2 you can look up vids on youtube & info on stackoverflow etc on how to query a google sheet ?
  5. Temporary Script Generator

    the page on llReleaseURL seems to show how to do that? http://wiki.secondlife.com/wiki/LlReleaseURL responseBody = "the script data? ! \nName:Ruthven \nAge:Young!";
  6. Temporary Script Generator

    no idea if this is what you are asking, but you could send data in a http header and process that with php on the web, then store it in a text file and GET request that file? string str = "your data"; string url = "http://www.yoursite.com/somefolder/get_data.php?"; url += "message=" + llEscapeURL(str); // message in header with a value for php XMLRequest = llHTTPRequest( url , [HTTP_USER_AGENT, "XML-Getter/1.0 (Mozilla Compatible)", HTTP_METHOD, "GET", HTTP_MIMETYPE, "application/xml;charset=utf-8", HTTP_BODY_MAXLENGTH,16384, HTTP_PRAGMA_NO_CACHE,TRUE], ""); ================PHP code==================== <?php $name = htmlspecialchars($_GET['name']); $object = htmlspecialchars($_GET['object']); $message=$_GET['message']; $key = htmlspecialchars($_GET['key']); $ip = $_SERVER['REMOTE_ADDR']; $ref = $_SERVER['HTTP_REFERER']; $dtime = date('r'); if($ref == ""){ $ref = "None"; } if($name == ""){ $name = "anon"; } if($object == ""){ $object = "web"; } ?> etc etc... ____________________ or is this way off from what you are asking?
  7. Need Help With This Random Giver Script!

    mebbe capitalization? llremoveinventory("Box") to ... llRemoveIinventory("Box");
  8. Trying to pull data but no dice

    not sure if this will help..... i tried the api site.. and this kinda works? key XMLRequest; string sourceLang = "en"; string targetLang = "de"; string msg = "a bunny"; string msg2 = "a%20test"; string url2; default { state_entry() { url2 = "http://translate.googleapis.com/translate_a/single?client=gtx&sl=" + sourceLang + "&tl=" + targetLang + "&dt=t&q=" + msg + "&ie=UTF-8&oe=UTF-8"; } touch_start(integer total_number) { XMLRequest = llHTTPRequest( url2 , [HTTP_USER_AGENT, "XML-Getter/1.0 (Mozilla Compatible)", HTTP_METHOD, "GET", HTTP_MIMETYPE, "text/html;charset-utf8", HTTP_BODY_MAXLENGTH,16384, HTTP_PRAGMA_NO_CACHE,TRUE], ""); } http_response(key k,integer status, list meta, string body) { if(k == XMLRequest) { string playing = body ; playing = llUnescapeURL( playing ); list my_list = llParseString2List(playing,[ "[", "]" ],["."]); list tmp = llCSV2List( llList2String(my_list,0) ); string one = llList2String(tmp,0); llOwnerSay("got: \n" + playing); llOwnerSay("parsed: \n" + one); } } }
  9. How would this AO script work?

    If it was from MP, mebbe you should do a review stating that this is a FREE example script from the wiki?
  10. not sure if this is relevant but...skips using a listen? Rezzer: default { touch_start(integer param) { vector MoveTo = <165,50,3024>; // either region pos or coords based on curr pos. llSetObjectDesc( (string)MoveTo ); vector offset = llGetPos() + <0.0,0.0,-2.0>; // 2 meters below rezzer llRezObject("child2",offset, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0); } } Rezzed: default { on_rez(integer start_param) { key id = llGetKey(); list details = llGetObjectDetails(id, [OBJECT_REZZER_KEY]); key rzr = llList2String(details, 0); list details2 = llGetObjectDetails(rzr, [OBJECT_DESC]); string loc = llList2String(details2, 0) ; llOwnerSay(" Moving to... : " + loc ); integer hasMoved = llSetRegionPos( (vector)loc ); if (!hasMoved) llOwnerSay("Move was not possible!"); } }
  11. the menu with the buttons you speak of is called a Dialog menu ... http://wiki.secondlife.com/wiki/LlDialog yell if ya need help figuring it out
  12. Trigonometry in lsl

    you could use llCastRay http://wiki.secondlife.com/wiki/LlCastRay or llGetPos http://wiki.secondlife.com/wiki/LlGetPos to get the distance between your base point and the target point ? you could use llGetObjectDetails http://wiki.secondlife.com/wiki/LlGetObjectDetails to get the target's height ? and use LSL math functions like http://wiki.secondlife.com/wiki/LlTan
  13. Trying to establish where prim was touched

    here is a small example of touch ST ... not tested in world, but should be close? integer numberOfColumns = 4; integer numberOfRows = 1; default { touch_start(integer num_detected) { integer face = llDetectedTouchFace(0); vector touchST = llDetectedTouchST(0); //we flip vertically and calculate a cell number integer currentCellNumber = llFloor(touchST.x*numberOfColumns) + (numberOfRows -llCeil(touchST.y*numberOfRows))*numberOfColumns + 1; if(currentCellNumber == 1) { llWhisper (0, "Left"); } if(currentCellNumber == 2) { llWhisper (0, "Left Center"); } if(currentCellNumber == 3) { llWhisper (0, "Right Center"); } if(currentCellNumber == 4) { llWhisper(0,"Right"); } } }
  14. Script for Glow in timer

    You can test with this, and change the ..amount .. variable till you get the speed you want? The timer is reset in the user function after the effect has completed. float amount = 0.0005; float x = 0.0; integer k; pingpong() { for( ; x < 0.9; x += amount) { llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, ALL_SIDES,x ]); } for( ; x > 0.1; x -= amount) { llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, ALL_SIDES,x ]); } llSetTimerEvent(0.2); } default { state_entry() { llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, ALL_SIDES,0.01 ]); } touch_start(integer total_number) { if(k = !k) { llSetTimerEvent(0.2); } else { llSetTimerEvent(0.0); llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_GLOW, ALL_SIDES,0.0 ]); } } timer() { llSetTimerEvent(0.0); pingpong(); } }
  15. Burn2 is happening NOW!!. . Come see the amazing builds, enjoy the free rides and tours, and get tons of free gifts! Be a part of Burning Man at the Second Life Burning man Regional...Burn2 ! Please de-script as much as possible to help stamp out LAG! ( If you have bad lag, drop your graphics & draw distance as low as you can ) http://maps.secondlife.com/secondlife/Burning Man- Deep Hole/143/35/32