View Single Post
  #14  
Old 03-24-2023, 04:46 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 9,343
Default

Well, to do it in JS you'd just ... do it in JS [You must be logged in to view images. Log in or Register.]

I could easily see a page with two drop-down menus ("select elements") to let you pick the to/from zones, and a button. See https://wiki.project1999.com/Per-Level_Hunting_Guide for a general idea of wiki pages with custom forms.

When someone clicks the button, some code would grab the two zone names, plug it into the algorithm, and then that algorithm would return an array of zones. The code would then add a bunch of properly-ordered links to the zones on the page, describing the path from A to B.

If you can get the algorithm part working I'd be happy to help with the form, connecting it to the algorithm, and the display of the results ... I'm just not willing to sign up to write the algorithm itself.

As for using an extension, I'm not a PHP dev, but you can see how the existing custom extensions (for stuff like the auction tracker or the dynamic zone lists work) by downloading the source code here: https://wiki.project1999.com/utils/wikiUtils.php ("Custom Extensions Source").
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue server, you can improve the wiki to earn a "welcome package" of up to 2k+ platinum! Message me for details.
Reply With Quote