Jump to content

Perg0

Resident
  • Posts

    35
  • Joined

  • Last visited

Reputation

6 Neutral

Recent Profile Visitors

524 profile views
  1. NGL when the first thing you read from the wiki is: //all these functions are untested functions that may have some very strange cases were they acd badly or where the comments are wrong //see them as buggy PSEUDO-code and consider yourself lucky if there are less than 2 wrong counters and 4 bad pointers/names. //they are more an example and a concept and unlikely fully functional AS IS. You get sketchy XD. Tho it looks to have promising offers- i re-downloaded my python 3 aswell as configured a Google-Sheets doc for it. Ontop LSL seams to read the website just fine if i don't post "code" on it. All in all it looks like 2021 might be a better year, since already now stuff is working better! ^^ Thanks for the help again! imma keep looking into this.
  2. Thanks- i will experiment with it and see what i can get to work.
  3. i should mention by "limit" i mean that the script litteraly reads the entire HTML code like: !DOCTYPE html <head> <Title> SL </title> </head> <Body.....
  4. Bois... i think i finaly got in over my head big time. I'm working on a script that will work like a interactive cleverbot (because that seams like a good idear after 2020 >.<) I'm trying to make a script that can read the <p>Content</p> tags on my website- Tho i don't seam to be able to limit it. Here is the code and sorry for bad english in advance. key http_request_id; default { state_entry() { http_request_id = llHTTPRequest("https://purge-0.000webhostapp.com/SL.html", [], ""); } http_response(key request_id, integer status, list metadata, string body) { if (request_id != http_request_id) return; // exit if unknown vector COLOR_GREEN = <0.0, 1.0, 0.0>; float OPAQUE = 1.0; llSetText(body, COLOR_GREEN, OPAQUE); } } Thanks in advance for the help! this forum is the best! Link to the web ofc: https://purge-0.000webhostapp.com/SL.html ~Perg0
  5. Hi again Second life Fourms. It's a long while since i was on the game and i have been working on alot of scripts. Recently i re-watched the HBO chernobyl serie and got inspired to try and build a Powerplant in second life with a few friends. Tho i strongly recall that we all had 1 issue with the game. The prim count- Our main problem with Second life is that we would like a big building with alot of small rooms but it would take up 200+ prims. Dose anyone know of a program, designer and/or place you can make/buy/get buildings with a low-prim count? Thanks to everyone in advance and hope you have a wonderfull day! :3 (also sorry for bad grammar-)
  6. This is what the script looks like now- integer listen_handle; integer channel = 0; default { attach(key id) { if (id) { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); listen_handle = llListen(channel, "", NULL_KEY, ""); } } run_time_permissions( integer perm ) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llOwnerSay("Permissions has been granted automatically."); } } listen(integer channel, string name, key id, string message) { if (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "Bot sit") { llSay(0, "Roger, Roger"); llStartAnimation("sit_ground"); } else if (llToLower(message) == "Bot stand") { llSay(0, "Roger, Roger"); llStopAnimation("sit_ground"); llStartAnimation("stand"); } } } }
  7. Wow that worked (both of you) THANSK! now when i read it i can see the falut *face palm*. Guess i don't have such a good grip after all ^^' Thanks again tho! you guys are the best
  8. So it kinda works! I can now make the bot sit by using the following: (it's croped) listen(integer channel, string name, key id, string message) { if ( llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "bot sit") { llSay(0, "roger, roger."); llStopAnimation(""); llStartAnimation("sit_ground"); } if (llToLower(message) == "bot stand") { llSay(0, "roger, roger."); llStopAnimation(""); llStartAnimation("stand"); llResetAnimationOverride(""); } } } As you can see i have been having issus trying to make the bot stand again... the llstopanimation and llresteanimationoverride dose not seam to make it stand back up. Any idears on how to make her stand? (i have also tried running the animation standup and Stand_1 ect...) I will go and read up on the WIKI and post if i find a solution- Thanks for all the help again, You guys are the best! ^w^
  9. Oh thanks! I will give it a quick try and see if i can make it work- I will also try to post the finished code here with a few edits so that ppl might be able to use it later as refmaterial- (or maybe it should be in "LSL lib?")
  10. I have been looking around but could not find the "sit_ground_constrained" in my inventory- But maybe im looking the wrong place? ^^ also thanks for the help
  11. Thanks for that i will give it a try tho i'm not sure if i understand this correct- Are you saying i should create an object that i can attach to the bot which will make it sit or that i need to make an object it can sit on. incase it's an object for it to sit on, that is not what im looking for. I need a function that uses the "Sit here" function you normaly have when you right click on you avi.
  12. Hello again fourm- I have been working on my "bot" and was wondering if there is a LSL function or command to make an avatar sit on ground (Not on an object)? Here is the current code i'm working with (also thanks to Rolig Loon for making the original script this is based off from.) integer listen_handle; integer channel = 0; default { attach(key id) { if (id) { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); listen_handle = llListen(channel, "", NULL_KEY, ""); } } run_time_permissions( integer perm ) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llOwnerSay("Permissions has been granted automatically."); } } listen(integer channel, string name, key id, string message) { if ( llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "bot sit") { llSay(0, "roger that."); llSitTarget(<0,0,0>, ZERO_ROTATION); //This is the function i want to make it sit } } } } Thanks again you guys, I have gotten a real bite into this LSL stuff after a while! ~Perg0
  13. Alright thanks! ^^ I must have added payment to the account at a point by accident then-
  14. Yes that is correct! But will that not also remove the ability to "buy L$" from my main ("perg0" this one)
  15. I have been working on some really fun project in LSL lately and wanted to give the AGENT and "BOT" functions a try too! You see i have an alt account that i would like to use... Tho i do not like the fact that i can use the "BUY $L" function on that account- Is there a way i can block that account incase of my code or anything else going totaly wrong- Don't wanna end up sleeping in a box on the street during this corona stuff. ^^' Thanks for your help and sorry for the bad grammar. I hope you all have a great day. ~Perg0
×
×
  • Create New...