Jump to content
  • 0

I need a simple script written


JJ Paragorn
 Share

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

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

Question

2 answers to this question

Recommended Posts

  • 0

string sMessage = " found all regions"; //email messagestring sSubject = "Region hunt"; //email subjectstring sEmail = "test@www.com"; //email addressvector vColor = <0.0, 1.0, 0.0>; //color of a visited region's buttonstring sRegion1 = "regionname1"; //enter the region names herestring sRegion2 = "regionname2"; //enter the region names herestring sRegion3 = "regionname3"; //enter the region names here integer iLinkButtonRegion1 = 2; //button linknumberinteger iLinkButtonRegion2 = 3; //button linknumberinteger iLinkButtonRegion3 = 4; //button linknumberinteger iBOOL_VisitedRegion1 = FALSE; //store which regions were visited yetinteger iBOOL_VisitedRegion2 = FALSE; //store which regions were visited yetinteger iBOOL_VisitedRegion3 = FALSE; //store which regions were visited yetdefault{ changed(integer change) {   if (change & CHANGED_TELEPORT)   { //teleported     if (iBOOL_VisitedRegion1 && iBOOL_VisitedRegion2 && iBOOL_VisitedRegion3)     { //already found all regions, return       return;     }     if (llGetRegionName() == sRegion1)     {      iBOOL_VisitedRegion1 = TRUE;      llSetLinkColor(iLinkButtonRegion1, vColor, ALL_SIDES);     }     if (llGetRegionName() == sRegion2)     {      iBOOL_VisitedRegion2 = TRUE;      llSetLinkColor(iLinkButtonRegion2, vColor, ALL_SIDES);     }     if (llGetRegionName() == sRegion3)     {      iBOOL_VisitedRegion3 = TRUE;      llSetLinkColor(iLinkButtonRegion3, vColor, ALL_SIDES);     }     if (iBOOL_VisitedRegion1 && iBOOL_VisitedRegion2 && iBOOL_VisitedRegion3)     { //found all regions, send email        llEmail( sEmail, sSubject, llKey2Name(llGetOwner()) + sMessage );     }   }

}}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4209 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...