

So for prospecting we would multiply the chance of each gem per ore for each of the gems and then add them all together. To use it for this you would simply make an easy formula for expected value by multiplying the chance of one of the outcomes with the yields. This is very useful, particularly for making pricing strings for BoE materials, as well as making strings that evaluate the expected value of processes with random outcomes such as disenchanting and prospecting. ItemIDs can be found by looking up the item on wowhead, and it will be the number in the web address. To do this you just add a parenthesis after the name of the value source and then write “i:” followed by the itemID of the item you want to refer to. I showed this one a bit earlier in my last post in this guide. For instance 120% crafting as minimum, 200% crafting as normal and 500% crafting as maximum. You will also usually want to use this to get different multiples of the same price string for your minimum, normal and maximum prices. The most frequent way you want to use this is of course to simply add the cost of two different pricing sources together. You can use arithmetic to combine various price sources or to modify a value source with another value source. Obviously you will be familiar with percentages as most of my operations use various percentages such as 120% crafting which evaluates to 1.2*crafting.

Basic mathematicsĪll of your pricing operations can use simple arithmetic like addition, subtraction, multiplication and division.

We will go through all of this in a bit of detail and then show some cool examples of useful and well known strings and go through why they are the way they are. Pricing strings support refering to the value source for a specific item, simple mathematical functions and logic functions like ifgte() and round(). Pricing string functionality rundownįirsst we will take a quick rundown of the functionality you can use. We will look at how you can combine value sources and the logic functions to make very powerful pricing sources. Following on my introduction to custom prices last week we will now take a deeper look at how powerful the pricing string functionality in TSM is.
