CODE
key objid= "ddc6266b-7d80-7e1f-27c9-b1705a1c1d30"; // key of target object
default
{
state_entry()
{
}
touch_start(integer total_number)
{
llSay(0, "Initializing...");
//llSay(0,"Calling the Lift. Please wait.");
llEmail((string)objid + "@lsl.secondlife.com","CALL LIFT - DOWN","no message");
llSay(0, "Done!");
}
}
Second Script (one needs fixed)
CODE
vector velocity;
integer shot = FALSE;
integer fade = FALSE;
float alpha = 1.0;
float damage = 100;
float hitpower = 9999;
float lifetime = 120;
key owner;
key objid;
string strid;
default
{
on_rez ( integer start )
{
llResetScript(); // Resets the script on rez
}
state_entry()
{
key objid = llGetKey();
string strid = (string)objid;
llEmail(strid + "@lsl.secondlife.com", "Init", "This is a test message."); // send email to self
llSetTimerEvent(10); // Poll for more emails (Yuck!)
}
timer()
{
llGetNextEmail("", ""); // check for email with any subject/sender
}
email(string time, string address, string subj, string message, integer num_left)
{
llSay(0,"Received an email - " + subj);
llSay(0, "5.");
llTriggerSound("", 10.0);
llSleep(1.0);
llSay(0, "4.");
llTriggerSound("", 10.0);
llSleep(1.0);
llSay(0, "3.");
llTriggerSound("", 10.0);
llSleep(1.0);
llSay(0, "2.");
llTriggerSound("", 10.0);
llSleep(1.0);
llSay(0, "1.");
llTriggerSound("f", 10.0);
llSleep(1.0);
llSetStatus(STATUS_PHYSICS, FALSE);
vector vel = llGetVel() * hitpower;
llPushObject(llDetectedKey(0), vel, ZERO_VECTOR, FALSE);
llSetForce(<0,0,0>, TRUE);
llTriggerSound("", 10.0);
llMakeExplosion(20, 20, 20, 20.0, 50.0, "smoke", ZERO_VECTOR);
llMakeExplosion(20, 20.0, 20, 20.0, 50.0, "smoke", ZERO_VECTOR);
llMakeExplosion(20, 20, 20, 20, 50, "fire2", <0,0,0>);
llMakeExplosion(10, 20, 10.0, 10, 10.0, "fire2", <0.0, 0.0, 0.0>);
llMakeExplosion(5, 0, 2, 0, PI, "fire2", ZERO_VECTOR);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "fire2", <0.0, 0.0, 0.0>);
llMakeExplosion(10, 20, 10.0, 10, 10.0, "fire2", <0.0, 0.0, 0.0>);
llMakeExplosion(5, 0, 2, 0, PI, "fire2", ZERO_VECTOR);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "fire2", <0.0, 0.0, 0.0>);
llSetDamage(50.0);
llMakeExplosion(20, 15.0, 15, 6.0, 1.0, "smoke", ZERO_VECTOR);
llMakeExplosion(25, 15.0, 15, 5.0, 1.0, "smoke", ZERO_VECTOR);
llMakeExplosion(10, 1.0, 1, 1, 1.0, "smoke", <0,0,0>);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llMakeExplosion(5, 1.0, 2, 3.0, PI, "smoke", ZERO_VECTOR);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llMakeExplosion(60, 15.0, 15, 60.0, 1.0, "Smoke", ZERO_VECTOR);
llMakeExplosion(100, 15.0, 15, 75.0, 1.0, "Smoke", ZERO_VECTOR);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llMakeExplosion(80, 1.0, 13.0, 2.2, 1.0, "smoke", <0.0, 0.0, 0.0>);
llDie();
llSay(0,"Called by Email");
}
}
