Jump to content

Combining Two Scripts [Help Request]


Atko Arkright
 Share

You are about to reply to a thread that has been inactive for 2783 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello and thank you for reading in advance, I am at a loss with this as I am fairly limited when it comes to scripting. 

I am trying to cobine two scripts one is a basic menu script which has two options one to play a sound (this bit works fine)  and the other is a resizer script (this will become the second option on the menu). 

If anyone has an idea on how to acomplish this I would greatly appreshiate your help. 

 

This is the Menu script:

 

list buttons = ["Play Sound", "Resize"];
string dialogInfo = "\nPlease make a choice.";
 
key ToucherID;
integer dialogChannel;
integer listenHandle;
 
default
{
    state_entry()
    {
        dialogChannel = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) );
    }
 
    touch_start(integer num_detected)
    {
        ToucherID = llDetectedKey(0);
        llListenRemove(listenHandle);
        listenHandle = llListen(dialogChannel, "", ToucherID, "");
        llDialog(ToucherID, dialogInfo, buttons, dialogChannel);
        llSetTimerEvent(60.0); // Here we set a time limit for responses
    }
 
    listen(integer channel, string name, key id, string message)
    {
        if (message == "-")
        {
            llDialog(ToucherID, dialogInfo, buttons, dialogChannel);
            return;
        }
 
        llListenRemove(listenHandle);
        //  stop timer since the menu was clicked
        llSetTimerEvent(0);
 
        if (message == "Play Sound")
        {
           llPlaySound("jingle bells",1.0);
            // Play sound
        }
        else if (message == "Resize")
        {
            //  RESIZE SCRIPT SHOULD BE HERE... I THINK 
        }
       
    }
 
    timer()
    {
    //  stop timer
        llSetTimerEvent(0);
 
        llListenRemove(listenHandle);
        llWhisper(0, "Sorry. You snooze; you lose.");
    }
}

 

 

Here is the resize script that I bought here: https://marketplace.secondlife.com/p/Perfect-Resizer-Script/3472948

(not sure if im allowed to past it here.. i doubt it but if anyone thinks they will be able to help me ill reinburse you for the price of the script.

 

Any help welcomed!

Thanks

Atko

 

Link to comment
Share on other sites

The link that you posted to the Marketplace doesn't go anywhere, but there are plenty of places that you have gone for a good, free resizer script, such as https://community.secondlife.com/t5/LSL-Library/Basic-Resizer/m-p/713675 . Welding them together shouldn't be very hard, but whoever did it would need to have both scripts, obviously.  No set of generic instructions is going to be very useful.  If you don't know how to do it yourself, I'd suggest posting in the InWorld Employment forum to attract the attention of a scripter to hire for the job.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2783 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...