Xiija

Resident
  • Content count

    560
  • Joined

  • Last visited

Community Reputation

106 Excellent

About Xiija

  • Rank
    Lotus Eater

Recent Profile Visitors

507 profile views
  1. llDie not working

    i wonder if calling something like llSetPos( llGetPos() + <0,0,0.1>): ...before doing the "Die" would help?
  2. how to get object http url?

    Basically you create a google form, and then link it to a google sheet... so all the form entries go to the sheet. Your http post fills the form and sends it, and you query the sheet when you need info. You can use right click / view page source - on the form to get the entry id#'s. I googled and used youtube to find out how to do it all also... if you need a FREE host for web pages for anything, you can use Github Pages... https://pages.github.com/ ( I used that to test a code page I am building.... https://xiija.github.io/index.html )
  3. how to get object http url?

    else if (method == URL_REQUEST_GRANTED) the prim got a url, ... so i post it to the web... else if (method == "GET") .... something is polling this prim for it's info... so i send it! ( in a diff part of the script) hope this helps
  4. how to get object http url?

    I send the url in the get request ...? here is a snippet where i send the url & info to a google form, which is linked to a google spreadsheet. http_request(key id, string method, string body) { integer responseStatus = 400; string responseBody = "Unsupported method"; if (method == URL_REQUEST_DENIED) throw_exception("The following error occurred while attempting to get a free URL for this device:\n \n" + body); else if (method == URL_REQUEST_GRANTED) { url = body; llLoadURL(llGetOwner(), "Click to visit my URL!", url); string send = "https://docs.google.com/forms/d/e/1FAIpQLSfmFFNdHlOpvkXBU_AyPKj4ATjTJdS8iA2N3K2ervPNxNwE_A/formResponse?entry.1012667783=" + region + "&entry.457815027=" + url + "&submit=Submit"; llHTTPRequest(send, [HTTP_METHOD, "POST", HTTP_VERBOSE_THROTTLE, FALSE, HTTP_BODY_MAXLENGTH, 16384], ""); llOwnerSay("sent..."); } else if (method == "GET") { avi = llGetRegionAgentCount(); responseStatus = 200; responseBody = "REGION NAME : " + region + "\nTIME DIALATION : " + (string)llGetRegionTimeDilation() + "\nREGION FPS : " + (string)llGetRegionFPS() + "\nAVATARS : " + (string) avi ; } llHTTPResponse(id, responseStatus, responseBody); }
  5. Time based clicking script

    put the touch event in a script.. and put the script in the thing people will click?
  6. Time based clicking script

    like... touch_start(integer num_detected) { // do something kewl llSetTimerEvent(2.0); } timer() { llSetTimerEvent(0.0); // redo something kewl }
  7. How would i change this script to have SubMenus?

    Sub menus are just lists, so you could do something like... list currentButtons= []; list Main = ["Face-1", "Face-2", "Face-3"]; list choices = [ "texture", "color"]; list textures = [ "tan skin", "blue skin"]; list colors = ["red", "green", "blue" ]; integer currentFace; ...so you would start out with....currentButtons = Main; ...... ...... => llDialog(ID, "Menu Choices:", currentButtons, channel_dialog); and when the user clicks a choice ( say they choose face-2 ), change your buttons and variables to their choice... currentFace = 2; ...... currentButtons = choices; ...... => llDialog(ID, "Menu Choices:", currentButtons, channel_dialog); if they then choose color .... currentButtons = colors; ..... => llDialog(ID, "Menu Choices:", currentButtons, channel_dialog); etc etc?
  8. Menu in object

    you would need to have someone write a script to do that?
  9. touch_start, touch, touch_end

    dunno if this is relevent, but it's an example of a smooth touch increment/decrement kinda thing? You can link 3 prims together, and put the main script in the root, and the others in the other prims to get a kind of volume control effect? This lets you click the up & down prims.. and also ... click & hold them ~ touch_start ...starts a timer, touch_end ... stops it ~ ::MAIN:: ( root prim) integer time; integer place; string pList ; list zList = []; list Charsetz = [" ","▏","▎","▍","▌","▋","▊","▉","█","█"]; list Charsetx = [" ","█","█","█","█","█","█","█","█","█", "█ - Max!"]; default { state_entry() { } link_message(integer sender_num, integer num, string msg, key id) { if (num) { llSetTimerEvent( 5 ); time += num; if (time >= 20) { time = 20; llSay(0," Max\n\n"); } if (time <= 0) { time = 0; llSay(0," Muted\n\n"); } place = llFloor(time / 2); zList = llList2List(Charsetx,0,place); pList = llDumpList2String(zList,"" ); llSetText("Current Volume : " + (string)time + "\nPower: " + pList, <1.0, 1.0, 1.0>, 1.0); } } timer() { llSetText("", <1.0, 1.0, 1.0>, 1.0); } } ::ADJ UP :: ( prim #2 ) integer time = 0; integer flag; default { state_entry() { llSetTimerEvent( 0 ); } touch_start(integer total_number) { llSetTimerEvent( 0.3 ); } touch_end(integer end) { if( flag != 1 ) { llMessageLinked(LINK_ROOT, 1,"", ""); } llSetTimerEvent( 0 ); flag = 0; } timer() { llMessageLinked(LINK_ROOT, 1,"", ""); flag = 1; } } ::ADJ DOWN:: ( prim #3 ) integer time = 20; integer flag; default { state_entry() { llSetTimerEvent( 0 ); } touch_start(integer total_number) { llSetTimerEvent( 0.3 ); } touch_end(integer end) { if( flag != 1 ) { llMessageLinked(LINK_ROOT, -1,"", ""); } llSetTimerEvent( 0 ); flag = 0; } timer() { llMessageLinked(LINK_ROOT, -1,"", ""); flag = 1; } }
  10. Raycast Visualizer

    Works good
  11. Would the URL be attached to the owners Land settings, like an experience key? ... list of experience details [string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id, string experience_URL] or perhaps the owners uri namespace? ... i.e. secondlife:///app/agent/{AVI_ID}/registeredURL
  12. parcel media/ media on prim options?

    You could mebbe try a youtube livestream.. not sure if people will all see the same time frame or not .. hmmm How to Live Stream on Youtube you could use OBS to set it up... Open Broadcaster Software OBS is pretty easy... here is a vid i made with it in SL... OBS example
  13. Late-Night String Sorting Blues

    @Innula..trutru here is a small snippet to strip all alpha characters from a string, if you ever need it? integer TrimInt(string in_str) { string num = "1234567890"; string tp; string test; integer i; integer LS = llStringLength( in_str ); for(;i<LS;++i) { test = llGetSubString(in_str,i,i); if(llSubStringIndex(num,test)>=0)tp+=test; } return (integer)tp; } default { state_entry() { } touch_start(integer total_number) { string new = "12a34bc56"; integer me = TrimInt(new); llOwnerSay( "got " + (string) me); } }
  14. Late-Night String Sorting Blues

    hmmm... http://wiki.secondlife.com/wiki/LlGetListEntryType
  15. Strided List Oddity

    It's a good catch Phil Someone should make a note in the wiki.... if start & end both point to the same list item, the function apparently has NO operating range ? list mylist = [0,1]; list result_a = llList2ListStrided(mylist,1,-1,2); ( or ... llList2ListStrided(mylist,1,1,2); )