Jump to content

XbabylonX

Resident
  • Posts

    281
  • Joined

  • Last visited

Everything posted by XbabylonX

  1. Hello, I was reading the following article http://wiki.secondlife.com/wiki/Linden_Lab_Official:Map_API_Introduction and at the "Accesing map images directly" paragraph, provides an example: X,Y - X and Y coordinates on the Second Life Grid of the region, for example, region Ahern is (997,1002). Says Ahern coordinates are 997-1002. I dont know how one can get these numbers for any sim. Some lights please? PS Im sorry if this is not the correct forum to post it!
  2. Ok I found it. The on_rez is needed in every state the script contains...
  3. Nope, even the logic of pausing the script for few seconds (its just a visually solution*), the text is still there. *That made the first rez just to be delayed 10 seconds, it doesnt fix the second rez.
  4. Before splitting the script in 2 states, the whole code was only in the default state. Doesnt work either.
  5. default { on_rez(integer start_param) { llResetScript(); } changed(integer change) { if (change & (CHANGED_OWNER | CHANGED_INVENTORY)) llResetScript(); } state_entry() { state First; } } state First { state_entry() { llSetText("Please wait...", <1.000, 0.863, 0.000>, 1.0 ); //HERE CODE FOR COMMUNICATING WITH A WEBSERVER } http_response(key request_id, integer status, list metadata, string body) { if (request_id==myRequest) { //THE RESPONSE OF THE WEBSERVER IS BEING SET AS TEXT ON THE PRIM llSetText(body, <1.000, 0.863, 0.000>, 1.0 ); } } }Hello, I have a problem with the script above. When I rez a prim with this script in it for the first time, everything goes as it should. The problem is when I take back the rezed prim in my inventory and then re-rez it again. It has as a text the webserver's response it took when it was rezzed for the first time. Shouldnt the llResetScript() solve this issue and force the script to run from the beggining when rezed for the second time? Thank you for your time.
  6. That worked perfect. Thank you steph Arnott, Qie Niangao, Rolig.
  7. Rolig, I guess you mean here "money(key id, integer amount)" , in my own code: money(key id, integer amount) { state Two; } the key id is the avatar id, right? If yes, I have to set a global variable inside the money brackets?
  8. Thank you for your replies. You both must be correct. Here is the deal: 1) Someone clicks a prim for a payment 2) After payment is done, I want to popup a dialog box with text input Just like you saying, I have to be careful with the process. Any advice on how to make it as it should?
  9. Hello, Im trying to get avatar's key id in the state_entry of a state called Two. Notice that the user gets in the state Two after a different state called One, for example state One { state_entry() { llSay(0, "Hello, Avatar!"); } touch_start(integer total_number) { state Two; } } So in place of the ??? in the following code: state Two { state_entry() { AvatarKey=??? } } what should I write? Thank you for your time.
  10. No way! I already saw these 3, they are very low, nothing similar with the link!
  11. Just like the following: http://www.elite-heels.com/shop/images/product_images/popup_images/190_0.jpg Searching for months but never found anything similar, someone else maybe...? Thank you
  12. Even on mouse over the cursor remains as saying "there is a clickable object", indeed the function is no longer available with this scenario. That works too Thank you both!
  13. Cerise, I have to init my object having the touch trigger and only in some cases (depending the callbacks) I need to cancel the trigger. So isnt possible to use your scenario up side down? Revochen, I didnt mean injecting a function from outside of sl, my server just sends 1 or 0, then the simple things happens: if callback=1 everything fine else if callback=0 remove the touch trigger of the object Maybe that example can point you to the right idea of what Im trying to make. But thanks again guys, I will read your responses tomorrow since I need to sleep
  14. Thank you for your answer. Do I have to negate the touch_start? If yes, how this can be done?
  15. Thank you for your answer. Even I found a different way of achieving the desired result, you mean that there is no a way to dynamically change the object's (on touch) function depending on some IF statetements?
  16. Please ignore everything than the way one can make the object lost its function on touch. Thank you.
  17. Hello, Im trying for many days to do this, after gatting a callback from a webserver to assign a function on an object, with few words, its a simple prim with no function called when clicking on it, but after the callback it should have a function. With the same logic, depending on the callback value I would like to remove the function. Someone who is familiar with jquery would understand that as: $("#objectid").attr("onClick","newfunction()"); One more thing Im trying to achieve after the callback is to create a global variable, but again with no success. I would appreciate your help. Thank you for your time
  18. Yes, I made some tries going from here to there and my db seemed to get the data I sent
  19. That did the job :matte-motes-smitten: And for gods, I dont have a problem remind to myself my username lol obviously I need to retrieve it in order to send it to my server :matte-motes-asleep-2: Thank you all.
  20. Saying im wearing a hud, I need its script to retrieve my username each time I land anywhere after teleporting from another place.
  21. Hello, Im trying to retrieve my username after I teleport from one position to another. Whats the trigger in lsl to do so? Thank you for your time!
  22. As I already did I would like to thank you all for your replies!
  23. I did that, the bra loses the opacity in world
×
×
  • Create New...