User talk:Murk

From The Shartak Wiki
Revision as of 09:08, 12 June 2006 by Elembis (talk | contribs) (Mentioned my ideas for a "tree finder" script related to the existing Uber Map ones.)
Jump to navigationJump to search

The Shartak UBER MAP project

I have created an online and highly detailed map which all Shartak users can contribute to... To see the map so far, and join the project, go to the Shartak UBER MAP project website and check it out.


New messages

Tree finder

I'm considering making "tree finder" Greasemonkey and PHP scripts that would log tree finds and then let people ask for the location of the nearest fruit tree or tasty berry bush (within 20 squares or so in any direction of their coordinates). I was going to ask you for a list/database of the known trees on Shartak according to your Uber Map, but I think it'd be easiest for everyone to have such a feature attached to your existing Greasemonkey reporter and PHP recorder scripts. (And when I say "easiest for everyone" I don't mean "easiest for everyone but you, who gets to code all of this wonderful stuff for us", because I'd love to code something like this. I'd just need access to the data people have given you.) I'm only an amateur programmer, but I have some ideas, so here they are.

At first, all that would need to be done would be to write a standalone PHP script that would take a player's GPS coordinates as input, hit the database for the locations of all trees within 20 x-steps and 20 y-steps, and run through them (there shouldn't be more than ten in any case) to find and report the shortest distance as the crow flies. (A "Find Trees" box could be added to the game page using Greasemonkey without much trouble.) The next step would be to modify the Uber Map Greasemonkey reporter to look for flavor text on tree/bush squares and tell the recorder whether the fruit-bearing plant is a tree, tasty berry bush, poisonous berry bush, or bush with unknown fruit. (This would require changing the recorder script and database to record tree types and, preferably, to not replace reports of "poisonous/tasty berry bush" with "unknown berry bush" or "moderate jungle, tree/bush" with "really dense jungle, no tree/bush".) A nice final step would be to take jungle density into account when the distances of nearby trees are calculated and to add to a tree's distance value if it would only be accessible after a little chopping.

What do you think?

Elembis (talk) 10:08, 12 June 2006 (BST)