User:Damian Darkwyr

From Second Life Wiki
Revision as of 13:53, 26 February 2011 by Damian Darkwyr (talk | contribs)
Jump to navigation Jump to search

I made these contributions.... lol


Specific Contents Giver random giver script

-s8OpenRelay- WHAT IS THE OpenRelay System?

The OpenRelay system is a bounce server that bypasses the tardports for LSL HTTP IN. Linden Lab, by their own admittal think that the restriction on ports is stupid. So what does that mean exactly? Well it means that if you want your awesome new web page to send info to sl you have to do one of the following, Stop using http in from web pages. but that is what we are doing isnt it. Use Email instead. which is slow as hell. pay for a VPS or Dedicated server. which could run you upwards of 75-100x dollars a month. add your own alternative here.

OpenRelay is the cheapest and quickest answer. Its free and allows your pages to connect and fire messages to second life without lag, without delay, and without paying hundreds of dollars a month.

OpenRelay is brought to you by the creators of Carbon8 Android2SL Remote. The first android application that allows you to send AND recieve messages from second life on your android devices. And the Uriel Core AIO(Carbon8) Utility Device which allows you to control your weapons play from anywhere in the world without the teather of your computer.


Developer Damian Darkwyr has multiple patches in production with TPV compliant clients, as well as helped develop many open source projects for Second Life. A college student at the University of Phoenix majoring in Information Systems and Technology with a focus in Software Engineering.

WE HAVE DECIDED TO LAUNCH THIS SERVICE FOR FREE. TO HELP THE MANY PROGRAMMERS OUT THERE WHO COULD BE CAPABLE OF DOING SO MUCH MORE.

http://slurl.com/secondlife/Knightlyrose/17/243/22 if this link is invalid we have moved. Please check Damian Darkwyr's profile for the new link.



Usage of the OpenRelay System is simple. Here is a quick and dirty tutorial to get you started.


Step 1.

Include the following link into your web pages that will communicate with Second Life. ex. http://s3kshun8.dyndns-remote.com/s8openrelay.php?url=http://sim4414.agni.lindenlab.com:12046/cap/39cb22a8-4e71-97b9-df84-1b688d696162&mes=test

the main url is our personal servers. http://s3kshun8.dyndns-remote.com/s8openrelay.php

? <----- means you are sending arguments

url is your second life prim's url. this is retrieved by using llRequestURL();

mes is all of the data you want to send to that prim. be creative.

THE STRING SENT IN CAN BE DIVIDED ANYWAY YOU LIKE AND PROCESSED LSL SIDE HOWEVER YOU LIKE.

Please enjoy the service if you need help feel free to ask.

http://s3kshun8.dyndns-remote.com/s8openrelay.php?url=http://sim4414.agni.lindenlab.com:12046/cap/39cb22a8-4e71-97b9-df84-1b688d696162&mes=test


<lsl> /*Hippo Vendor Crowd Discount Plugin by Damian Darkwyr

*
*Create prim.
*Place this script inside prim.
*Link this prim to your Hippo Vendor
*DONE
*/

float setting = 0.5;//change this to effect the amount of discount. it will be 0.5*0.numberofscanned avatars integer i; integer fil; list keys; key buyer; default {

   state_entry()
   {
       llSetText("Earn a (0.5*x) discount for each person you get within 25m of this vendor when you make your purchase.",<1,1,1>,1);
       llRequestPermissions(llGetOwner(),PERMISSION_DEBIT);
   }
   run_time_permissions(integer p)
   {
       if(p & PERMISSION_DEBIT)
       {
           
       }else
       {
           llResetScript();
       }
   }
   link_message(integer s,integer r,string str,key id)
   {
       if(r == -147900)
       {
           list d = llParseString2List(str,["^"],[]);
           buyer = (key)llList2String(d,0);
           llSetObjectDesc(llList2String(d,2));
           llSensor("","",AGENT,25,PI);
       }
   }
   sensor(integer x)
   {
       keys = [];
       i = 0;
       do
       {
           fil = llListFindList(keys,[(string)llDetectedKey(i)]);
           if(fil == -1)
           {
               keys += [(string)llDetectedKey(i)];
           }
           i++;
       }while(i < x);
       string avcount = "0."+(string)llGetListLength(keys);
       float pS = setting * (float)avcount;
       if(pS >= 0.86)pS = 0.85;
       integer pricepaid = (integer)llGetObjectDesc();
       float client_rake = (float)pricepaid * pS;
       integer owner_rake = pricepaid - (integer)client_rake;
       pricepaid = pricepaid - owner_rake;
       //llOwnerSay((string)pricepaid);
       llInstantMessage(buyer,"thank you for bringing a crowd. Here is you discount.");
       llGiveMoney(buyer,pricepaid);
   }
   no_sensor()
   {
       
   }

} </lsl>