1. Before posting any MODs, please contact us at support@portalarium.com to ensure your MOD is acceptable to the Terms of Service and EULA of the game. Portalarium is not responsible for use of MODs and possible adverse effects on your client or computer, and we may take action on accounts using MODs that are deemed illegal. Whether submitted here or elsewhere in the community, use MODs at your own risk!
    Dismiss Notice

Bastion's Point Announces: The Lunar Rift Chronometer!

Discussion in 'Player Created Resources' started by Aartemis, Sep 21, 2016.

  1. Barugon

    Barugon Avatar

    Messages:
    11,344
    Likes Received:
    18,141
    Trophy Points:
    153
    Gender:
    Male
    Jaesun and Aartemis like this.
  2. Floors

    Floors Avatar

    Messages:
    4,261
    Likes Received:
    6,608
    Trophy Points:
    165
    Time to pay the bill ?
     
  3. Aartemis

    Aartemis Avatar

    Messages:
    1,329
    Likes Received:
    3,655
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Cleveland, Ohio
    As Posted Above:

    With all the QOL Enhancements now in the game and Teleport everywhere scrolls coming this release, I see no point in continuing the Chronometer counter.

    If there is ever a need for one again or they become active to for reaches of Novia, perhaps it will make a re-emergence.

    Thanks to everyone who used the Chronometer in the past and passed on so may kind words!

    Lunar Rift Chronometer: CLOSED AS OF R61 RELEASE: 12/13/18

    This was piggy-backing on my guild site page, which we have not used at all since moving to Discord. I'd rather give $10/month to Portalarium then Enjin.
    I was going to move the page to some free hosting site, bu then there would be URL updates and such I just didn't want to bother with seeing the use
    of Rifts has become almost EXTRA work compared to the QOL enhancements.

    I just tried to reduce it to the FREE Version and it won't run HTML on Free...So for now, its going to remain closed.

    However... If anyone wants to revive the project, you are welcome to the Code:

    <table style="width: 1100px;" background="https://www.dropbox.com/s/xhmzkgx5ns6a638/Chronometer.png?dl=1">
    <tbody>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td colspan="3" style="text-align: left;"><span style="font-size: 24pt;"><strong><span style="color: #ffff00;">Bastion's Point</span></strong></span></td>
    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;">
    <p><span style="color: #ffffff; font-size: 14pt;">Lunar Rift Chronometer<br /></span><span style="color: #ccffcc; font-size: 9pt;"></span><span style="color: #ccffcc;"></span></p>
    </td>
    <td id="cellPhase" style="vertical-align: top;"><span style="color: #ccffcc; font-size: 16pt;">000</span></td>
    <td width="550"></td>
    </tr>
    <tr style="height: 75px;">
    <td width="1"></td>
    <td valign="bottom" style="text-align: left;" colspan="2"><span style="text-decoration: underline;"><span style="color: #ffffff; font-size: 14pt; text-decoration: underline;">Lunar Rift Destinations and Times:&nbsp;</span></span></td>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Blood River:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Longfall, Aerie, Elysium, Artiface, Veritas Sanctuary&nbsp;</span></span></td>
    <td id="cellPH0" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">666</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Solace Bridge:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Perennial Coast, Ardoris, Soltown, Hometown&nbsp;</span></span></td>
    <td id="cellBR" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">333</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Highvale:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">South Paladis, Resolute, Nightshade Pass, Opalis&nbsp;</span></span></td>
    <td id="cellPH2" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">777</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Brookside:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Drachvald, Spite, Malice, Port Graff &nbsp;</span></span></td>
    <td id="cellSB" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">111</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Owl's Head:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Hidden Vale, Kingsport, Braemar, Ravensmoor&nbsp;</span></span></td>
    <td id="cellPH4" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">555</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Westend:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Verdantis, Bastion's Point, Vertas, Norgard, Harvest &nbsp;</span></span></td>
    <td id="cellPH5" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">888</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Brittany Graveyard:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Regalis, BRITTANY, Blood Bay, Grunvald&nbsp;</span></span></td>
    <td id="cellHV" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">222</span></td>
    <td width="550"></td>
    </tr>

    </tr>
    <tr style="height: 25px;">
    <td width="1"></td>
    <td style="text-align: left; vertical-align: top;"><span style="color: #00ffff; font-size: 14pt;">Etceter:&nbsp;<br /><span style="color: #ccffcc; font-size: 9pt;">Quel, Crag Foothills, Boreas Colossus, Midmaer&nbsp;</span></span></td>
    <td id="cellPH7" style="vertical-align: top;"><span style="color: #ffff99; font-size: 16pt;">444</span></td>
    <td width="550"></td>
    </tr>


    </tbody>
    </table>
    <!-- COMMENT OUT DEBUG DISPLAY>
    <p><br />
    <span style="color: #171207;"> Current time: <label id="lblcurrtime"> </label></span><br />
    <span style="color: #171207;"> Current Unformated time: <label id="lblcurrtimedsp"> </label></span>

    <br /><span style="color: #171207;"> start of phase: <label id="lblstartofphase"> </label></span><br /><span style="color: #171207;"> difference: <label id="lbldifference"> </label></span><br /><span style="color: #171207;"> number of cycles: <label id="lblnumcycles"> </label></span><br /><span style="color: #171207;"> actual cycle: <label id="lblactualcycle"> </label></span><br /><span style="color: #171207;"> destination: <label id="lbldestination"> </label></span><br /><span style="color: #171207;"> next flip: <label id="lblnextflip"> </label></span>

    <br /><span style="color: #171207;"> Timezone Offset: <label id="lbldtoffset"> </label></span>
    <br /><span style="color: #171207;"> Minutes Offset: <label id="lblminoffset"> </label></span>
    <br /><span style="color: #171207;"> Equalized Time: <label id="lbleqoffset"> </label></span>
    <br /><span style="color: #171207;"> Equalized Formatted Time: <label id="lblcurrtime2"> </label></span>

    </p>
    -->
    <script>// <![CDATA[
    function upd(){
    //
    // Current Date Time:
    var currentdate = new Date();
    // document.getElementById("lblcurrtimedsp").innerHTML = currentdate;

    var datetime = (currentdate.getMonth()+1) + "/" + currentdate.getDate() + "/" + currentdate.getFullYear() + " " + currentdate.getHours() + ":" + currentdate.getMinutes() + ":" + currentdate.getSeconds();
    // document.getElementById("lblcurrtime").innerHTML = datetime;

    //
    // Time Zone Differance
    // We are EST at 240 min off UTC

    var dtoffset = currentdate.getTimezoneOffset();
    // document.getElementById("lbldtoffset").innerHTML = dtoffset;
    var minoffset = dtoffset - 320;
    // var minoffset = dtoffset - 240;
    // document.getElementById("lblminoffset").innerHTML = minoffset;
    // Adjust users time to EST

    var currentdate2 = new Date(currentdate.getTime() + minoffset*60000);
    // document.getElementById("lbleqoffset").innerHTML = currentdate2;

    var datetime2 = (currentdate2.getMonth()+1) + "/" + currentdate2.getDate() + "/" + currentdate2.getFullYear() + " " + currentdate2.getHours() + ":" + currentdate2.getMinutes() + ":" + currentdate2.getSeconds();

    // document.getElementById("lblcurrtime2").innerHTML = datetime2;

    //
    // Start of Phase:
    var startofphase = new Date(2016, 8, 7, 13, 50, 0, 0);
    // var startofphase = new Date(2016, 8, 7, 12, 50, 0, 0); Original Seed. Daylight Savings put me off 1 hour
    // document.getElementById("lblstartofphase").innerHTML = startofphase;

    //
    // Difference (seconds)
    // Change by Aartemis to use currentdate2 instead of currentdate in formulas.
    var differ = (currentdate2 - startofphase) / 1000;
    // document.getElementById("lbldifference").innerHTML = differ;

    //
    // Number of cycles:
    var numcycles = differ / 525;
    // document.getElementById("lblnumcycles").innerHTML = numcycles;

    //
    // Actual Cycle:
    var actualcycle = Math.floor(numcycles % 8);
    // document.getElementById("lblactualcycle").innerHTML = actualcycle;

    //
    // time until next flip
    var nextflip = (1 - ((numcycles % 8) - Math.floor(numcycles % 8))) * 525
    // document.getElementById("lblnextflip").innerHTML = nextflip;

    //
    //--------------------------------------
    // # Destination
    //--------------------------------------
    // 0 unkn 0
    // 1 Blood River
    // 2 unkn 2
    // 3 Solace Bridge
    // 4 unkn 4
    // 5 unkn 5
    // 6 Highvale
    // 7 unkn 7
    //
    // Desination:
    var PH0sec = 0;
    var BRsec = 0;
    var PH2sec = 0;
    var SBsec = 0;
    var PH4sec = 0;
    var PH5sec = 0;
    var HVsec = 0;
    var PH7sec = 0;

    var dest = "closed";
    var moonphase = "None";

    switch(actualcycle) {
    case 0:
    BRsec = nextflip
    PH2sec = nextflip + 525;
    SBsec = nextflip + 1050;
    PH4sec = nextflip + 1575;
    PH5sec = nextflip + 2100;
    HVsec = nextflip + 2625;
    PH7sec = nextflip + 3150;
    PH0sec = nextflip
    dest = "Dest. New Moon";
    moonphase = "New Moon";
    break;

    case 1:
    PH2sec = nextflip
    SBsec = nextflip + 525;
    PH4sec = nextflip + 1050;
    PH5sec = nextflip + 1575;
    HVsec = nextflip + 2100;
    PH7sec = nextflip + 2625;
    PH0sec = nextflip + 3150;
    BRsec = nextflip
    dest = "Blood River";
    moonphase = "Waxing Crescent";
    break;

    case 2:
    SBsec = nextflip
    PH4sec = nextflip + 525;
    PH5sec = nextflip + 1050;
    HVsec = nextflip + 1575;
    PH7sec = nextflip + 2100;
    PH0sec = nextflip + 2625;
    BRsec = nextflip + 3150;
    PH2sec = nextflip
    dest = "Dest. First Quarter";
    moonphase = "First Quarter";
    break;

    case 3:
    PH4sec = nextflip
    PH5sec = nextflip + 525;
    HVsec = nextflip + 1050;
    PH7sec = nextflip + 1575;
    PH0sec = nextflip + 2100;
    BRsec = nextflip + 2625;
    PH2sec = nextflip + 3150;
    SBsec = nextflip
    dest = "Solace Bridge";
    moonphase = "Waxing Gibbous";
    break;

    case 4:
    PH5sec = nextflip
    HVsec = nextflip + 525;
    PH7sec = nextflip + 1050;
    PH0sec = nextflip + 1575;
    BRsec = nextflip + 2100;
    PH2sec = nextflip + 2625;
    SBsec = nextflip + 3150;
    PH4sec = nextflip
    dest = "Dest. Full Moon";
    moonphase = "Full Moon";
    break;

    case 5:
    HVsec = nextflip
    PH7sec = nextflip + 525;
    PH0sec = nextflip + 1050;
    BRsec = nextflip + 1575;
    PH2sec = nextflip + 2100;
    SBsec = nextflip + 2625;
    PH4sec = nextflip + 3150;
    PH5sec = nextflip
    dest = "Dest. Waning Gibbous";
    moonphase = "Waning Gibbous";
    break;

    case 6:
    PH7sec = nextflip
    PH0sec = nextflip + 525;
    BRsec = nextflip + 1050;
    PH2sec = nextflip + 1575;
    SBsec = nextflip + 2100;
    PH4sec = nextflip + 2625;
    PH5sec = nextflip + 3150;
    HVsec = nextflip
    dest = "Highvale";
    moonphase = "Third Quarter";
    break;

    case 7:
    PH0sec = nextflip
    BRsec = nextflip + 525;
    PH2sec = nextflip + 1050;
    SBsec = nextflip + 1575;
    PH4sec = nextflip + 2100;
    PH5sec = nextflip + 2625;
    HVsec = nextflip + 3150;
    PH7sec = nextflip
    dest = "Dest. Waning Crescent";
    moonphase = "Waning Crescent";
    break;

    }
    // document.getElementById("lbldestination").innerHTML = dest;

    PH0sec = Math.floor(PH0sec);
    BRsec = Math.floor(BRsec);
    PH2sec = Math.floor(PH2sec);
    SBsec = Math.floor(SBsec);
    PH4sec = Math.floor(PH4sec);
    PH5sec = Math.floor(PH5sec);
    HVsec = Math.floor(HVsec);
    PH7sec = Math.floor(PH7sec);

    // var PH0time = "Available in " + Math.floor(PH0sec / 60) + "m " + (PH0sec - (Math.floor(PH0sec / 60)*60)) + "s";
    // var BRtime = "Available in " + Math.floor(BRsec / 60) + "m " + (BRsec - (Math.floor(BRsec / 60)*60)) + "s";
    // var PH2time = "Available in " + Math.floor(PH2sec / 60) + "m " + (PH2sec - (Math.floor(PH2sec / 60)*60)) + "s";
    // var SBtime = "Available in " + Math.floor(SBsec / 60) + "m " + (SBsec - (Math.floor(SBsec / 60)*60)) + "s";
    // var PH4time = "Available in " + Math.floor(PH4sec / 60) + "m " + (PH4sec - (Math.floor(PH4sec / 60)*60)) + "s";
    // var PH5time = "Available in " + Math.floor(PH5sec / 60) + "m " + (PH5sec - (Math.floor(PH5sec / 60)*60)) + "s";
    // var HVtime = "Available in " + Math.floor(HVsec / 60) + "m " + (HVsec - (Math.floor(HVsec / 60)*60)) + "s";
    // var PH7time = "Available in " + Math.floor(PH7sec / 60) + "m " + (PH7sec - (Math.floor(PH7sec / 60)*60)) + "s";

    var PH0time = "Available in " + Math.floor(PH0sec / 60) + "m ";
    var BRtime = "Available in " + Math.floor(BRsec / 60) + "m ";
    var PH2time = "Available in " + Math.floor(PH2sec / 60) + "m ";
    var SBtime = "Available in " + Math.floor(SBsec / 60) + "m ";
    var PH4time = "Available in " + Math.floor(PH4sec / 60) + "m ";
    var PH5time = "Available in " + Math.floor(PH5sec / 60) + "m ";
    var HVtime = "Available in " + Math.floor(HVsec / 60) + "m ";
    var PH7time = "Available in " + Math.floor(PH7sec / 60) + "m ";


    switch(actualcycle) {
    case 0:
    PH0time = "Open for another " + Math.floor(PH0sec / 60) + "m " + (PH0sec - (Math.floor(PH0sec / 60)*60)) + "s";
    break;

    case 1:
    BRtime = "Open for another " + Math.floor(BRsec / 60) + "m " + (BRsec - (Math.floor(BRsec / 60)*60)) + "s";
    break;

    case 2:
    PH2time = "Open for another " + Math.floor(PH2sec / 60) + "m " + (PH2sec - (Math.floor(PH2sec / 60)*60)) + "s";
    break;

    case 3:
    SBtime = "Open for another " + Math.floor(SBsec / 60) + "m " + (SBsec - (Math.floor(SBsec / 60)*60)) + "s";
    break;

    case 4:
    PH4time = "Open for another " + Math.floor(PH4sec / 60) + "m " + (PH4sec - (Math.floor(PH4sec / 60)*60)) + "s";
    break;

    case 5:
    PH5time = "Open for another " + Math.floor(PH5sec / 60) + "m " + (PH5sec - (Math.floor(PH5sec / 60)*60)) + "s";
    break;

    case 6:
    HVtime = "Open for another " + Math.floor(HVsec / 60) + "m " + (HVsec - (Math.floor(HVsec / 60)*60)) + "s";
    break;

    case 7:
    PH7time = "Open for another " + Math.floor(PH7sec / 60) + "m " + (PH7sec - (Math.floor(PH7sec / 60)*60)) + "s";
    break;

    }

    document.getElementById("cellPH0").innerHTML = PH0time;
    document.getElementById("cellPH0").style.color = '#ffff99';

    document.getElementById("cellBR").innerHTML = BRtime;
    document.getElementById("cellBR").style.color = '#ffff99';

    document.getElementById("cellPH2").innerHTML = PH2time;
    document.getElementById("cellPH2").style.color = '#ffff99';

    document.getElementById("cellSB").innerHTML = SBtime;
    document.getElementById("cellSB").style.color = '#ffff99';

    document.getElementById("cellPH4").innerHTML = PH4time;
    document.getElementById("cellPH4").style.color = '#ffff99';

    document.getElementById("cellPH5").innerHTML = PH5time;
    document.getElementById("cellPH5").style.color = '#ffff99';


    document.getElementById("cellHV").innerHTML = HVtime;
    document.getElementById("cellHV").style.color = '#ffff99';

    document.getElementById("cellPH7").innerHTML = PH7time;
    document.getElementById("cellPH7").style.color = '#ffff99';


    document.getElementById("cellPhase").innerHTML = "Current Phase: " + moonphase;
    document.getElementById("cellPhase").style.color = '#ffff99';

    setTimeout(upd, 1000);
    }

    upd();
    // ]]></script>
     
    Alley Oop, StarLord, Jaesun and 3 others like this.
  4. Drya

    Drya Avatar

    Messages:
    29
    Likes Received:
    45
    Trophy Points:
    3
    Gender:
    Female
    Location:
    South Jersey
    Thank you do much for creating the chronometer. I used it quite a bit to get around. However, you're right that the teleport to zone scrolls have made the lunar rifts and the chronometer obsolete. It was very helpful before the scrolls were introduced.
     
  5. Browncoat Jayson

    Browncoat Jayson Legend of the Hearth

    Messages:
    5,913
    Likes Received:
    13,204
    Trophy Points:
    153
    Thank you for providing this, and for keeping it running for as long as you did. I've embedded your code into SotAwiki, so the Lunar Rift Chronometer page now displays the actual chronometer, instead of just linking to it. I hope it can continue to serve its purpose there.
     
    Alley Oop, Jaesun and Aartemis like this.
  6. Aartemis

    Aartemis Avatar

    Messages:
    1,329
    Likes Received:
    3,655
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Cleveland, Ohio
    Dude! That's AMAZING!! Thanks so much!
     
    Browncoat Jayson likes this.