Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

223 Excellent


About Xiija

  • Rank
    Lotus Eater

Recent Profile Visitors

1,238 profile views
  1. Both good points, ty ( i also use a channel as the start param )
  2. Logic flow would be something like... 1. dispenser checks the sim for new arrivals with a timer. 2. dispenser uses the llRrezObject event, and passes the newly arrived Avatar's ID to the rezz'd item as a start parameter. 3. rezzed item gets the new avatar's id from it's on_rez event. 4. rezzed item asks for llRequestExperiencePermissions to the avatar, and uses attachToAvatarTemp... and on detach it dies?
  3. @Gayngel do you use POST to store the data with the apps scripts? i've only been able to get GET requests to work
  4. aha!.. yah 46k lol, ok tysm @Nova Convair & @Mollymews guess i'd need to parse bigguns outside of SL
  5. small update with code for the free database idea is here ...
  6. small update, was testing with the free database stuff, and have a basic version... feel free to play with it, or join Repl.It .. and fork this to make your own. Free SL Database Test the basic LSL scripts for testing are... // to add to a database... string myName; string myId; key my_reqKey; string addCustomer = "https://SecondLife-NEDB-01.xiija.repl.co/api/db/input"; default { state_entry() { myId = "f216c381-8e1d-46ba-8861-d4811f0bdbc5"; myName = "Skywalker Scofield"; //myId = llGetOwner(); //myName = llKey2Name( myId ); }
  7. yet another example using ... node-json-db .... https://repl.it/@Xiija/jsonDB-test-01 you could change the routes to use post, instead of get, and post a json object as the data
  8. @Fritigern Gothly if you are on repl.it & firebase... you can get your credentials json file from the firebase site Credentials for the repl ... and then make a node repl with something like this in it... ( in this example, i've stored the credentials in a file called ... serviceAccountKey.json const admin = require("firebase-admin"); const serviceAccount = require("./serviceAccountKey.json"); admin.initializeApp({ // credential: admin.credential.applicationDefault() credential: admin.credential.cert(serviceAccount) }) const db = admin.firest
  9. on_rez, if triggered might eat the attach event, so you won't get when the object is attached, just it's detach. mebbe try on_rez.. and in that event use... GetAttached
  10. @testgenord1 you can also do an assignment inside your if statement...kinda like... integer on; touch_start (integer num) { if( on = !on) // toggle the variable and check if it is true or not { llOwnerSay("ON"); } else { llOwnerSay("OFF"); } }
  11. just a quicky example, however you prolly don't need a NC unless you have large amounts of data? easier to use a list in the script. key query_id; integer count; string Curr; key kQuery; list people; default { state_entry() { Curr = llGetInventoryName(INVENTORY_NOTECARD,0); if( Curr != "" ) { kQuery = llGetNotecardLine(Curr, count); } } dataserver(key query_id, string data) { if (query_id == kQuery) { if (data == EOF) { count = 0; llOwnerSay("DONE"); llSay(0,"NC inf
  12. You can't really check a certain notecard unless you check its number of lines, and each lines values, but this might be kinda close.... integer invCount; default { state_entry () { invCount = llGetInventoryNumber( INVENTORY_ALL ); // get new count on reset } changed (integer changes) { if (changes & CHANGED_INVENTORY) { if( llGetInventoryNumber( INVENTORY_ALL ) == invCount ) // if inv hasn't changed, its an update { llOwnerSay("NC update"); llResetScript(); }
  13. just a basic example from what the others have said... list words = ["happy","sad","funky"]; // assumes all words are lower case default { state_entry() { llListen(0,"","",""); } listen( integer channel, string name, key id, string message ) { list msg_list = llParseString2List(message,[""],[" "]); integer x; for(; x < llGetListLength( msg_list); ++x) { string word = llToLower( llList2String( msg_list, x) ); if (~llListFindList( words,[word] ) ) { llOwnerSay("found: " + word); } }
  14. so, with Phate & Wulfies suggestions, your channel setup might be something like... llListenRemove( menu_handler ); llListenRemove( textbox_handler ); menu_channel = 0x80000000 | (integer)("0x"+(string)llGetKey() ) * -1; textbox_channel = menu_chan + 100; menu_handler = llListen(menu_channel,"","",""); textbox_handler = llListen(textbox_channel,"","","");
  15. kk ty Wulfie, i'll post the code i'm using incase anyone wants it.. for the url - https://community.secondlife.com/forums/forum/304-lsl-scripting/ i'm using the javascript - window.addEventListener("load", () => { // style thumb tacks let tacks = document.getElementsByClassName("ipsBadge"); var x; for (x = 0; x < tacks.length; ++x){ tacks[x].style.cssText = "background: lime !important;"; } // style stars let stars = document.getElementsByClassName("fa-star"); var z; for (z = 0; z < stars.length; ++z){ stars[z].style.cssText = "opacity
  • Create New...