Money making guide/Adding/CodingHelp
From the RuneScape Wiki, the wiki for all things RuneScape
Just write down the section your method is under, and the name of your method, what your attempted calculation was (e.g. 500 trout - 500 raw trout)and what your problem is. We'll fix up your coding for you, and try to explain it on your talk page so you don't need us next time.
[edit] Unfixed
If anyone fixes any in the above category, move them to fixed
I don't get how to express the expression format for something, say a Yew log, minus the price of a trout, minus the price of a lobster, plus the price of a Coif. Anyone know how I can input so many variables? Fruit.Smoothie TalkContribs
07:01, December 5, 2009 (UTC)
- I asked the same thing a few days ago, at Forum:Template to add/subtract GEPrices and get a total. You may want to bookmark that page, as Gaz explains it better than I.
- The code you're looking for is:
{{formatnum:{{#expr:{{GEPrice|Yew logs}}-{{GEPrice|Trout}}-{{GEPrice|Lobster}}+{{GEPrice|Coif}}}}}}
- which would give you
- 171
- Don't forget for individual item prices over 1,000 coins you use {{GEPrice|item|n}} to remove the comma (compare {{GEPrice|Dragon bones}} (4,474) with {{GEPrice|Dragon bones|n}} (4474)); this is because #expr: throws a fit when unrecognised symbols (such as commas and square brackets) are used.
Gaz Lloyd Calcs!Awesome 15:58, December 5, 2009 (UTC)
- Don't forget for individual item prices over 1,000 coins you use {{GEPrice|item|n}} to remove the comma (compare {{GEPrice|Dragon bones}} (4,474) with {{GEPrice|Dragon bones|n}} (4474)); this is because #expr: throws a fit when unrecognised symbols (such as commas and square brackets) are used.
[edit] Fixed
| Free-to-play guides |
| ||||
| Members guides |
| ||||
|
See also: How to add methods/content • Coding help | |||||
