Skip to content

Commit

Permalink
fix guide links for dungeons/professions
Browse files Browse the repository at this point in the history
  • Loading branch information
etinquis committed Oct 3, 2023
1 parent 6a0701f commit 0ceaef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/current/fhlandv8.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DC(v) {
}
getObj('Stuff2').innerHTML = '<b style=\"color: ' + Markers[v].c + '\">' + Markers[v].tn + '</b><br><b>' + GetLT(Math.abs(Markers[v].t)) + '</b><br>Recommended for: ' + strx + (Markers[v].a != 0 ? '<br>Monster Allegiance: ' + GetAName(Markers[v].a) : '') + '<br>Level: ' + Markers[v].l + (Markers[v].ml > Markers[v].l ? ' - ' + Markers[v].ml : '') + '<br>Location: ' + Markers[v].x + ', ' + Markers[v].y + ' ' + GetRealm(Markers[v].g) + (Markers[v].u == 0 ? '<br>' + Markers[v].d : '');
getObj('Pic').innerHTML = "<img src='" + IPath + (Markers[v].p == '' ? 'na.gif' : Markers[v].p) + "'>";
getObj('Buttons').innerHTML = "" + (Markers[v].u == 1 ? "<table class=\"weakcell\"><tr><td><input type='hidden' name=li id=li value='" + Markers[v].v + "'>Min Level: </td><td><input name=ll id=ll size=4 maxlength=4 value='" + Markers[v].l + "'></td><Td>Max: </td><td><input name=ml id=ml size=4 maxlength=4 value='" + Markers[v].ml + "'></td></tr><tr><td colspan=4>Description:</td></tr><tr><td colspan=4><textarea id=ld name=ld cols='30' rows='5'>" + Markers[v].d + "</textarea></td></tr><tr><td colspan=4>" + Adf2("", "Save changes", "Change") + Adr('getObj(\'ld\').value = \'DELETE\';this.form.submit();', 'Delete Landmark', 'Delete') + "" : "") + Adr('if (Processing == 0) {Processing = 1; window.top.HideInterface(); window.top.Ninja.location.replace(\'fh.asp?Redraw=1&x=' + Markers[v].x + '&y=' + Markers[v].y + '&MapNum=' + Markers[v].g + '\');};', 'Recall', 'Recall') + (Markers[v].c == "red" ? Adr('window.open(\'http://www.landsofhope.com/dungeons/' + Markers[v].tn + '.html\',\'_new\',\'\');', 'Info', 'Info') : "") + "</td></tr></table>";
getObj('Buttons').innerHTML = "" + (Markers[v].u == 1 ? "<table class=\"weakcell\"><tr><td><input type='hidden' name=li id=li value='" + Markers[v].v + "'>Min Level: </td><td><input name=ll id=ll size=4 maxlength=4 value='" + Markers[v].l + "'></td><Td>Max: </td><td><input name=ml id=ml size=4 maxlength=4 value='" + Markers[v].ml + "'></td></tr><tr><td colspan=4>Description:</td></tr><tr><td colspan=4><textarea id=ld name=ld cols='30' rows='5'>" + Markers[v].d + "</textarea></td></tr><tr><td colspan=4>" + Adf2("", "Save changes", "Change") + Adr('getObj(\'ld\').value = \'DELETE\';this.form.submit();', 'Delete Landmark', 'Delete') + "" : "") + Adr('if (Processing == 0) {Processing = 1; window.top.HideInterface(); window.top.Ninja.location.replace(\'fh.asp?Redraw=1&x=' + Markers[v].x + '&y=' + Markers[v].y + '&MapNum=' + Markers[v].g + '\');};', 'Recall', 'Recall') + (Markers[v].c == "red" ? Adr('window.open(\'https://guide.landsofhope.com/World/dungeons/' + Markers[v].tn + '.html\',\'_new\',\'\');', 'Info', 'Info') : "") + "</td></tr></table>";
}

function GetLT(x) {
Expand Down
2 changes: 1 addition & 1 deletion js/current/fhlibrarypev3.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function AvC2(pid, Itty, l, aa, pic, pid2, Itty2, l2, aa2, pic2, pid3, Itty3, l3

// t="II" r=' + pid + ' aa=' + aa + ' l=' + l + ' rc="" i="' + Itty + '"

Shops[county][counter] = '<tr><td width=\'33%\' style="color:' + Color + '; border-left: 1px solid white; border-bottom: 1px solid white; " onclick="DC(' + pid + ', ' + l + ');" onmouseover="PC(this,\'' + pic + '\',\'' + Itty + '\',\'II\',' + aa + ',' + l + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'http://www.landsofhope.com/professions/' + Itty + '.htm\',\'_new\',null);">' + Itty + ' (' + GetAT(aa) + ')</td><td width=\'33%\' style="color:' + Color + '; border-bottom: 1px solid white" onclick="DC(' + pid2 + ', ' + l2 + ');" onmouseover="PC(this,\'' + pic2 + '\',\'' + Itty2 + '\',\'III\',' + aa2 + ',' + l2 + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'http://www.landsofhope.com/professions/' + Itty2 + '.htm\',\'_new\',null);">' + Itty2 + ' (' + GetAT(aa2) + ')</td><td width=\'33%\' style="color:' + Color + '; border-bottom: 1px solid white" onclick="DC(' + pid3 + ', ' + l3 + ');" onmouseover="PC(this,\'' + pic3 + '\',\'' + Itty3 + '\',\'IV\',' + aa3 + ',' + l3 + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'http://www.landsofhope.com/professions/' + Itty3 + '.htm\',\'_new\',null);">' + Itty3 + ' (' + GetAT(aa3) + ')</td></tr>';
Shops[county][counter] = '<tr><td width=\'33%\' style="color:' + Color + '; border-left: 1px solid white; border-bottom: 1px solid white; " onclick="DC(' + pid + ', ' + l + ');" onmouseover="PC(this,\'' + pic + '\',\'' + Itty + '\',\'II\',' + aa + ',' + l + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'https://guide.landsofhope.com/Professions/' + Itty + '.htm\',\'_new\',null);">' + Itty + ' (' + GetAT(aa) + ')</td><td width=\'33%\' style="color:' + Color + '; border-bottom: 1px solid white" onclick="DC(' + pid2 + ', ' + l2 + ');" onmouseover="PC(this,\'' + pic2 + '\',\'' + Itty2 + '\',\'III\',' + aa2 + ',' + l2 + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'https://guide.landsofhope.com/Professions/' + Itty2 + '.htm\',\'_new\',null);">' + Itty2 + ' (' + GetAT(aa2) + ')</td><td width=\'33%\' style="color:' + Color + '; border-bottom: 1px solid white" onclick="DC(' + pid3 + ', ' + l3 + ');" onmouseover="PC(this,\'' + pic3 + '\',\'' + Itty3 + '\',\'IV\',' + aa3 + ',' + l3 + ');" onmouseout="RC(this)"><img src="' + OPath + 'info.png" width=12 height=12 style="cursor: pointer" title="View Description" onclick="window.open(\'https://guide.landsofhope.com/Professions/' + Itty3 + '.htm\',\'_new\',null);">' + Itty3 + ' (' + GetAT(aa3) + ')</td></tr>';
counter = counter + 1;
}

Expand Down

0 comments on commit 0ceaef1

Please sign in to comment.