Jump to content

bigmoe Whitfield

Resident
  • Posts

    3,374
  • Joined

  • Last visited

Posts posted by bigmoe Whitfield

  1. I think what people do forget is that aws is not cheap to host with, nor is having a floor on a datacenter like LL did in the past,  the fee's when they go up, LL has to figure out how to handle, best option is to hand them down to the userbase,  I'd hate to see what would happen if LL decided to try and eat all of them, betting they would be in the red so fast we'd lose SL.

    • Like 1
    • Thanks 1
  2. Slammed into another issue with it,  Trying to pass the clickers name with the message to our server...  I can get it to throw the key in there but it's zeroed out... which is not helpful.  but when attempting to make it place the name with the function it's either not defined in scope or syntax error.   I need a break right now though lol, beer time!

    • Like 1
  3. 32 minutes ago, Love Zhaoying said:

    How does it work / what does it do? Are you "just" posting the number to a specific Discord channel or..?

    yep, they click a prim, it gives them a number, that number is given to them and to a private discord channel, so if they come to claim a prize they say they won and give us the same number and it matches with the name that clicked it and the number given they get the prize.

    • Thanks 1
  4. ugh brain fog.  but this compiles

    string WEBHOOK_URL = "you cant haz";

    default
    {
        state_entry()
        {
            llSetTimerEvent(30); // Change the timer interval as needed
        }

        timer()
        {
            integer number = llFloor(llFrand(100)) + 1; // Generate a random number between 1 and 100
            string message = "Your number is: " + (string)number;

            // Construct the HTTP request body as a JSON string
            string json  =  llList2Json ( JSON_OBJECT ,  [
        "content" ,  message
     ]);

            // Send the HTTP request using llHTTPRequest()
           llHTTPRequest ( WEBHOOK_URL ,  [
                HTTP_METHOD, "POST",
                HTTP_MIMETYPE, "application/x-www-form-urlencoded",
                HTTP_VERIFY_CERT,TRUE,
                HTTP_VERBOSE_THROTTLE, TRUE,
                HTTP_PRAGMA_NO_CACHE, TRUE
            ],  json );
    }
            
        }

  5. 9 minutes ago, Wulfie Reanimator said:

    llList2Json's second parameter must be a list. You've given it a string. Do this instead:

     
         
        
    

     

    That works,  it's not posting anything to the discord channel and then threw me this error "[00:50] Too many HTTP requests too fast."  hmhmh

  6. So I'm setting up a give away with a random number that will be given from this device, but the device must also put this into discord for verification on a private channel that only admins have access too, I know how to get it to give the number to verify,  that's not an issue.

     

    string WEBHOOK_URL = "https://discord.com/api/webhooks/<removed rest of url";

    default
    {
        state_entry()
        {
            llSetTimerEvent(30); // Change the timer interval as needed
        }

        timer()
        {
            integer number = llFloor(llFrand(100)) + 1; // Generate a random number between 1 and 100
            string message = "Your number is: " + (string)number;

            // Construct the HTTP request body as a JSON string
            string json = llDumpList2String([
                "content", message
            ], ",");

            // Send the HTTP request using llHTTPRequest()
            return llHTTPRequest(WEBHOOK_URL, [
                HTTP_METHOD, "POST",
                HTTP_MIMETYPE, "application/x-www-form-urlencoded",
                HTTP_VERIFY_CERT,TRUE,
                HTTP_VERBOSE_THROTTLE, TRUE,
                HTTP_PRAGMA_NO_CACHE, TRUE
            ], llList2Json(JSON_OBJECT, json));
    }
            
        }

     

    I think I'm missing things,  but it's almost 3:30am and I've been at this for 2 hours slamming my head into a wall, I've combined a few working discord scripts and have gotten closer, but dumb me is having issues getting this,  any ideas?

    • Thanks 1
  7. 36 minutes ago, Kavarek said:

    Date is irrelevant nor is creating a NEW POST needed (redundant) for posting updated information at the end of existing posts when it is searched (the 2 main post regarding it). Keep that in mind before commenting.

     

     

     

     

     

     

     

     

    8 years is a dead topic.   that's all there is for me to say about that.   Have fun.

    • Like 4
    • Thanks 1
    • Sad 2
  8. On 2/19/2023 at 1:29 AM, ToniaKR said:

    On Osgrid I could download the region OAR "Open Simulator archive" with "save oar" and then change my region.ini coordinates to another place on the map and then "load oar." Seems very expensive $150 for this simple operation? Cost of living is effecting a lot of people at the moment so I myself have to think carefully about my spending!

    LL is not using opensim software to run regions, so maybe think about that one too.

  9. 1 hour ago, Gavin Hird said:

    It you place a client in the iOS store, it immediately becomes available to 1.5 billion active users. Even if 0.1% of those downloaded and tried the client, it represents 1,5 million users, which easily could happen within days if hyped up by media.

    we've only had 80k and that hammered the doors shut, years ago, it's not been put the pressure on like that since, I hope with this aws they use now, it scales and handle the demand if 1.5 million come knocking.   last time everything went nope and went offline here

    • Thanks 1
    • Haha 1
  10. I am watching the superbowl,  I noticed "Meta" had an ad for their "virtual world"  why is the lab not making ad's like this to promote one of the oldest worlds in the metaverse?   I know some of us old timers will have some things to say about it, but SL should be at the top of the list for worlds out there. 

    • Like 2
  11. Another one of these "I must have attention" types?   from the quoted message and the replies, I can tell, you must not understand what SL really is for or how to take it as an item many people use as their own life because of maybe a disablity, maybe some social complexe.   I'm sorry you can not grasp it.

    • Like 2
×
×
  • Create New...