Skip to content

Commit

Permalink
Merge pull request #9 from Hailey-Ross/v0.1.1
Browse files Browse the repository at this point in the history
ClearMedia
  • Loading branch information
Hailey-Ross authored Oct 14, 2023
2 parents 533220d + d6c32d1 commit 4b95828
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ checkDebug()
else if (objDesc == "debug") { debug = TRUE; debugIM = TRUE; llOwnerSay(hailsObjName + " DEBUG mode Enabled.."); llInstantMessage(MyKey, "IM DEBUG mode Enabled.."); llSetObjectDesc("v" + hailsVersion + " - DEBUG"); llSetObjectName(objectName + " - DEBUG"); }
else if (objDesc == "silent") { debug = FALSE; debugIM = TRUE; llSetObjectDesc("v" + hailsVersion); llSetObjectName(objectName); }
else if (objDesc == "nosettext") { rc = FALSE; llSetText("", ZERO_VECTOR, 0.0); llSetObjectDesc("v" + hailsVersion); }
else if (objDesc == "resetme") { llSetObjectDesc("v" + hailsVersion); llResetScript(); }
else if (objDesc == "resetme") { llSetObjectDesc("v" + hailsVersion); llClearPrimMedia(mediaFace); llResetScript(); }
else { llSetObjectDesc("v" + hailsVersion); llSetObjectName(objectName); }
}

hailsSetup() //Setup Primitive Function
{
MyKey = llGetOwner();
checkDebug();
checkDebug(); llClearPrimMedia(mediaFace);
if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); }
if (llGetAlpha(oppositeFace)) { hailsStartSetup = TRUE; } else { hailsStartSetup = FALSE; }
if (hailsStartSetup & doSetup) //main function logic
Expand Down Expand Up @@ -98,7 +98,7 @@ checkSimPop()
if (debug) { llOwnerSay(hailsObjName + " is checking Sim Population.."); }
while (numOfAvatars < 1)
{
if (counter < 1) { llSetTimerEvent(0.0); hailsURL = "https://hails.cc/"; hailsHome = hailsURL; media2Prim(); if (debugIM) { llInstantMessage(MyKey, "Sim is empty, hibernating.."); } }
if (counter < 1) { llSetTimerEvent(0.0); llClearPrimMedia(mediaFace); if (debugIM) { llInstantMessage(MyKey, "Sim is empty, hibernating.."); } }
llSleep(15);
if (counter > 1000) { counter = 1; } else { ++counter; }
numOfAvatars = llGetRegionAgentCount();
Expand All @@ -111,15 +111,15 @@ checkSimPop()
default {
on_rez(integer start_param)
{
checkDebug();
checkDebug(); llClearPrimMedia(mediaFace);
llSleep(0.75); llResetScript();
}
changed(integer change)
{
if (change & (CHANGED_OWNER | CHANGED_INVENTORY | CHANGED_REGION))
{
if (debug) { llOwnerSay(hailsObjName + " has detected a change, Rebooting. . ."); }
checkDebug(); llSleep(hailsTimer); llResetScript();
checkDebug(); llClearPrimMedia(mediaFace); llSleep(hailsTimer); llResetScript();
}
}
state_entry() {
Expand All @@ -137,7 +137,7 @@ default {
}
touch_start(integer total_number)
{
checkDebug();
checkDebug(); llClearPrimMedia(mediaFace);
if (debug) { llOwnerSay(hailsObjName + " Touch Function has been Activated"); }
hailsRandTimer = random_integer(59, 199); llSetTimerEvent(0.0);
lineid = llGetNotecardLine(card, random_integer(0, linemax));
Expand Down

0 comments on commit 4b95828

Please sign in to comment.