Jump to content

Xiija

Resident
  • Posts

    925
  • Joined

  • Last visited

Reputation

302 Excellent

4 Followers

Retained

  • Member Title
    Lotus Eater

Recent Profile Visitors

1,878 profile views
  1. it's a lil extreme, but this door script shows one way to do this... https://wiki.secondlife.com/wiki/Smooth_Rotating_Linked_Door_With_Hinge
  2. you can look for a scripter here ... https://community.secondlife.com/forums/forum/312-inworld-employment/
  3. The wiki has some funcs you may be able to use... https://wiki.secondlife.com/wiki/Category:LSL_Functions https://wiki.secondlife.com/wiki/LlListFindList https://wiki.secondlife.com/wiki/LlListInsertList https://wiki.secondlife.com/wiki/LlListReplaceList
  4. TY , i hadda change a lil bit, but works, vector first = (vector)llList2String(data, 0); ( Innula beat me! )
  5. I just can't wake up today... I have train tracks that report their number, & start, mid, and end vectors via regionsay as a string. after removing the indexing, i'm left with the 3 vectors, that i wish to add to a list. "<30.404861, 44.845428, 23.429020>, <25.404861, 44.845428, 23.429020>, <20.404861, 44.845428, 23.429020>" how would one save these strings as vectors? i can get the first one ... integer Index = llSubStringIndex(vec, ">,"); string st = llGetSubString(vec, 0 , Index );
  6. @Quistess Alpha Good idea Quistess, seems to work ( this is in a touch box for demo, split into 2 scripts for rezzer/rezzed ) // ===== this func in rezzed obj too ! string unhasher( string txt ) { string output; list unhash = []; integer len = llStringLength( txt ); integer n; for( n = 0; n < len; n = n+3 ) { string tmp = llGetSubString( txt, n, n+2 ); unhash += tmp; // list of 3 digit codes } output = llDumpList2String( unhash , ""); return output; } default { // ============= in rezzer ======================= touch_start(integer total_number) { string avi = (string)llDetectedKey(0); list test_list = []; string test_string2 = ""; string sOrd; integer index; integer ord; for (index = 0; index < llStringLength( avi ); ++index) { ord = llOrd( avi, index ); sOrd = (string)ord; if( ord < 100 ) { sOrd = "0" + sOrd; // pad 2 digit ords to make all 3 digit entries } test_list = test_list + [ sOrd ]; } string t1 = llDumpList2String( test_list , ""); llOwnerSay("T1: " + t1); // integer send = (integer)t1; // ===== THIS IS THE INTEGER TO USE IN REZ PARAM // ================ in rezzed obj ========================================= // get t1 from rez param string char = unhasher( t1 ) ; // use func from above for (index = 0; index < llGetListLength(test_list); ++index) { ord = llList2Integer(test_list, index); char = llChar(ord); test_string2 = test_string2 + char; } llOwnerSay( "\nAvi Key: " + avi + "\n\nOrd: " + llDumpList2String(test_list, ", ") + "\n\nAvi Key Unhashed: " + test_string2 ); } } result:
  7. I haven't tested it with a rezzer, but you could use this hash/unhash thing to send an int to a rez param mebbe? ( this is just a touch box for demo ) * kudos to whoever wrote this list codes = [ "031", "", "032", " ", "033", "!", "034", "\"", "035", "#", "036", "$", "037", "%", "038", "&", "039", "'", "040", "(", "041", ")", "042", "*", "043", "+", "044", ",", "045", "-", "046", ".", "047", "/", "048", "0", "049", "1", "050", "2", "051", "3", "052", "4", "053", "5", "054", "6", "055", "7", "056", "8", "057", "9", "058", ",", "059", ";", "060", "<", "061", "=", "062", ">", "063", "?", "064", "@", "065", "A", "066", "B", "067", "C", "068", "D", "069", "E", "070", "F", "071", "G", "072", "H", "073", "I", "074", "J", "075", "K", "076", "L", "077", "M", "078", "N", "079", "O", "080", "P", "081", "Q", "082", "R", "083", "S", "084", "T", "085", "U", "086", "V", "087", "W", "088", "X", "089", "Y", "090", "Z", "091", "[", "092", "\\", "093", "]", "094", "^", "095", "_", "096", "`", "097", "a", "098", "b", "099", "c", "100", "d", "101", "e", "102", "f", "103", "g", "104", "h", "105", "i", "106", "j", "107", "k", "108", "l", "109", "m", "110", "n", "111", "o", "112", "p", "113", "q", "114", "r", "115", "s", "116", "t", "117", "u", "118", "v", "119", "w", "120", "x", "121", "y", "122", "z", "123", "{", "124", "|", "125", "}", "126", "~", "127", "" ]; hasher( string txt ) { llOwnerSay("Owner Key: \n" + txt ); string hashed; integer x; integer len = llStringLength( txt ); for( x = 0; x < len; ++x ) { string letter = llGetSubString( txt , x, x); integer idx = llListFindList( codes, [letter] ); if ( idx ) { string tmp = llList2String( codes, idx-1 ); hashed += tmp ; } } llOwnerSay("Key hashed: \n" + hashed + "\n" ); llSleep(2.0); unhasher( hashed ); } unhasher( string txt ) { string output; list unhash = []; integer len = llStringLength( txt ); integer n; for( n = 0; n < len; n = n+3 ) { string tmp = llGetSubString( txt, n, n+2 ); unhash += tmp; // list of 3 digit codes } integer x; integer len2 = llGetListLength( unhash ); for( x = 0; x < len2; ++x ) { string tmp = llList2String( unhash, x ); integer idx = llListFindList( codes, [tmp] ); if ( idx ) { string cv = llList2String( codes, idx + 1 ); output += cv; } } llOwnerSay("Key unhashed: \n" + output ); } default { state_entry() { } touch_start(integer num) { hasher( (string)llGetOwner() ); } } ....
  8. does this help at all ? key requestID; default { state_entry() { } touch_start(integer total_number) { llSetLinkTexture( LINK_THIS, "5748decc-f629-461c-9a36-a35a221fe21f", ALL_SIDES ); //clear textures string region = llGetRegionName(); requestID = llHTTPRequest("https://api.gridsurvey.com/simquery.php", [ HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded" ], "region=" + region + "&item=objects_uuid"); } http_response(key req_id, integer status, list meta, string body) { if (req_id == requestID) { llSetLinkPrimitiveParams( LINK_THIS, [ PRIM_TEXTURE, ALL_SIDES, body, <1,1,0>, ZERO_VECTOR, 0.0 ]); } } }
  9. here is what i use for a texture "hologram" , changing the PSYS_PART_MAX_AGE from 0.2 to lower values like 0.1, or 0.05 will get rid of the trails when moving the texture, but will cause the texture to flcker. You can adjust the size either with the variable, or manually ( start & end scale ). string Texture = "a1d0440d-6276-c659-cb56-ae62a162f626"; float Size = 1.00; float Height; show() { llParticleSystem([ PSYS_PART_FLAGS, 0|PSYS_PART_EMISSIVE_MASK , PSYS_SRC_PATTERN, 4, PSYS_PART_START_GLOW, 0.002, PSYS_PART_END_GLOW, 0.002, PSYS_PART_START_ALPHA, 1.0, PSYS_PART_END_ALPHA, 1.0, PSYS_PART_START_COLOR, <1.0,1.0,1.0>, PSYS_PART_END_COLOR, <1.0,1.0,1.0>, PSYS_PART_START_SCALE, < Size, Size, 0.0 >, PSYS_PART_END_SCALE, < Size, Size, 0.0 >, PSYS_PART_MAX_AGE, 0.2, PSYS_SRC_MAX_AGE, 0.00, PSYS_SRC_ACCEL, <0.0,0.0,0.0>, PSYS_SRC_ANGLE_BEGIN, 0.00, PSYS_SRC_ANGLE_END, 0.00, PSYS_SRC_BURST_PART_COUNT, 1, PSYS_SRC_BURST_RADIUS, Height, PSYS_SRC_BURST_RATE, 0.02, PSYS_SRC_BURST_SPEED_MIN, 0.005, PSYS_SRC_BURST_SPEED_MAX, 0.05, PSYS_SRC_OMEGA, <0.00,0.00,0.00>, PSYS_SRC_TEXTURE, Texture ]); } Reminder: you have to stop & restart a particle system to see any changes...( llParticleSystem([]) to stop. )
  10. i've tried REZ_PARAM_STRING on aditi, and it sends the key just fine , ( tho you have to use the bitflag ... 13 )
  11. ty all, I checked on Aditi, and it works with the integer value of 13, but not with the string... REZ_PARAM_STRING ....
  12. The function is on the wiki, but one of the params doesn't work, and i see no jira .. when i try ... REZ_PARAM_STRING , "sum test string" i get the message, "Name not defined within scope" , when i use the bitflag (13) it says not found. any ideas?
  13. @TrashPanda Starling you can rez your obj and set it to your group, then rez another prim and set it to the land group... when you link the two, make the land group one the root. any "samegroup" code will work as long as the root has no touch event i think
  14. @Innula Zenovka here is how i did it with a test server. not sure if you have access to your own server I don't think it is possible with just a static webste ? https://replit.com/@TikiHed/fetch-with-cert
  15. yah, it works fine when i use a server with the SL cert, kk ty anyways
×
×
  • Create New...