WritCalculator

From WoWRosterWiKi
Revision as of 06:03, 10 May 2007 by Zanix (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:RosterMenu

Contents

Writ Calculator

This originated as Roster Addon.

This addon helps you take a stack (or one) of Argent Dawn Writs and calculate out all the raw materials you'll need to gather to fulfill it, as well as display which guildmates to talk to for the crafting.

Note

Currently, this mod is only in enUS language, as I don't know any other useful translations.

Installation

This mod simply needs to be downloaded and the contents placed into your Roster Addons folder. It requiries/makes no database changes.

Use

Once installed, just click on "Writ Calculator" in your Roster Addons menu. Enter the quantities of which writs you have and press Calculate.

Technical Notes

Writ List

The writ list is a php file in the Addon's directory called writs.php. It looks something like:

$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['item']='Brightcloth Pants';
$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['qty']=6;
$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['shortname']='BrightclothPants';
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['item']='Dense Weightstone';
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['qty']=120;
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['shortname']='DenseWeightstone';

The 'item' defines what the search tag should be in the Recipes listing within roster. 'qty' defines how many of 'item' are needed per writ. 'shortname' is my lazy way to make a safe name to use with the form elements (check the source, you'll see text areas named like qtyBrightclothPants).

You can add anything to this list to get raw materials listing, so this could be expanded beyond Writ requirements if someone wants later (functionalizing the whole thing for calling from outside).

Raw Material Override Functionality

The override functionality is setup to denote particular items as 'not to be parsed as recipes' - just treat them as raw materials as soon as they're encountered. As of verion 1.1, that list looks like so:

$rawMatOverrideArray['enUS']['fish1'] = 'Plated Armorfish';
$rawMatOverrideArray['enUS']['fish2'] = 'Lightning Eel';
$rawMatOverrideArray['enUS']['fish3'] = 'Stonescale Eel';
$rawMatOverrideArray['enUS']['ruggedleather'] = 'Rugged Leather';
$rawMatOverrideArray['enUS']['thickleather'] = 'Thick Leather';
$rawMatOverrideArray['enUS']['heavyleather'] = 'Heavy Leather';
$rawMatOverrideArray['enUS']['mediumleather'] = 'Medium Leather';
$rawMatOverrideArray['enUS']['lightleather'] = 'Light Leather';

Leather is included on this list, for example, as otherwise something requiring rugged leather may show hundreds of thousands of Heavy Leather instead.

Other

This currently only goes 3 iterations deep. It's possible that engineering items may cause this to need to be expanded.

Sample Screenshots

File:WritScreen1.gif
Writ Calculator Addon Preview - Entry Form
File:WritScreen2.gif
Writ Calculator Addon Preview - Sample Results
WR.net

Important note: When you edit this page, you agree to release your contribution into the public domain.
If you do not want this or can not do this because of license restrictions, please do not edit.

Personal tools
Namespaces
Variants
Actions
WoWRoster
Navigation
Toolbox