Jump to content

XbabylonX

Resident
  • Posts

    281
  • Joined

  • Last visited

Everything posted by XbabylonX

  1. XbabylonX

    Vendor stand

    Hello, Im looking to buy a vendor stand which gives things after payment but also has the ability to send it as a gift to a third person. I cant find any in marketplace. Could someone point me somewhere? Thank you very much!
  2. Thank you all for your answers. Was entirely my mistake, and a stupid one too. I bought an animation to do my tests but I was so excited for it, so much that I was adding in the chair's inventory the poseball of the animation. Of course I had first to rez it, drag the anim file into my inventory, and then place it in the chair. Im terrible sorry for your trouble. Now the script works perfect!
  3. I didnt understand anything of what you wrote but anyway maybe someone who used that could post something in here. Thank you.
  4. Hello, I tried to create my own chair with many animations and for that I bought the Poly SitTarget, but no matter Im doing, it doesnt works, as only the default anim is recognised. Can anyone who made it work give me some lights? :/ Thank you!
  5. Negative, negative Works!!!!!! Thank youuuu
  6. Thank you Darkie for your anwer. It doesnt get back the response.
  7. Hello, I have the following code: key myRequest; string Who; default { state_entry() { } touch_start(integer number) { Who=llDetectedKey(0); llInstantMessage(Who,"Sending request to the server! Please wait..."); myRequest=llHTTPRequest("http://example.com/Page.asp", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Who=" + llGetUsername(llDetectedKey(0))); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == myRequest) { llInstantMessage(Who,body); } } } The scenario is as follows: Avatar clicks the prim and the code runs. If avatar wants to click it again, has to wait some seconds. As you understand, I want to protect my webserver from accepting mass requests with this button.
  8. Most probably I was doing it all wrong, because in the state cash it worked perfect Again, thank you all for your help!
  9. No, I have to right click and click Pay
  10. Yes, that worked Thank you both for your help! However I have one more question regarding this piece of code. When trying to add a touch event, nothing works again.
  11. Thank you for your answer. It throws an error integer price=100; default{ state_entry() { llSetPayPrice(PAY_HIDE, [PAY_HIDE ,PAY_HIDE, PAY_HIDE, PAY_HIDE]); llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); } run_time_permissions(integer perm) { if(perm & PERMISSION_DEBIT) state cash; }} state cash{ state_entry() { llSetPayPrice(price, [price ,PAY_HIDE, PAY_HIDE, PAY_HIDE]); } money(key id, integer amount) { if(amount != price) { llGiveMoney(id, amount); llInstantMessage(id, "You paid "+(string)amount+", which is the wrong price, the price is: "+(string)price); } else { Who = id; llInstantMessage(Who,"Sending request to the server"); myRequest=llHTTPRequest("http://example.com/Page.asp", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Username=" + (string)Who); llInstantMessage(id, "You paid the right price"); http_response(key request_id, integer status, list metadata, string body) { if (request_id == myRequest) { llInstantMessage(Who,body); } } } }} At the line I wrote http_response(key request_id, integer status, list metadata, string body)
  12. Hello, Im using this script from here http://wiki.secondlife.com/wiki/LlSetPayPrice After recieving the payment (means inside the else condition) I want to inform my webserver and recieve back a response. What Im trying to do is to include inside the else the following code: key myRequest; string Who; Who=llDetectedKey(0); llInstantMessage(Who,"Sending request to the server"); myRequest=llHTTPRequest("http://example.com/Page.asp", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Who=" + llGetUsername(llDetectedKey(0))); http_response(key request_id, integer status, list metadata, string body) { if (request_id == myRequest) { llInstantMessage(Who,body); } } The code above works perfect in other places Im using it but not in this scenario. Could someone give me instructions on how to make it work? Thank you very much!
  13. Sounds right! Thank you very much!
  14. Or should I let my server send back the id of the person to sl?
  15. So, any way to send a response to the avatar who touched the prim?
  16. Hello, I use on touch_start the llInstantMessage(llDetectedKey(0),"test"); The person who clicked the prim, gets the test in local chat as he should. The same message method doesnt work inside a http_response as it says "Invalid Key passed to instant message." Could someone tell me how to make it work? Thank you!
  17. Ok just after my previous post I realized that I have to use mouse view to make it work correctly. So, is there any way to use it with norma view?
  18. Using your info I founf this old thread http://community.secondlife.com/t5/LSL-Library/Object-AV-scanner-using-llCastRay-in-mouse-look/td-p/1365957 which works as I wated, pretty handy, but it doesnt give me the correct name of my testing prims I rezzed. For example I have a simple prim with name "The name", but when I touch it I have the following output in local chat: Name = Object
  19. Thank you both for your answers. So by wearing a hud, I can get the id of the prim I touch?
  20. Hello is there any way (probably by wearing a hud) to get the info of different prims I touch and which I dont own? Thank you very much for reading.
×
×
  • Create New...