User:Inno/calculator test: Difference between revisions

From Ylvapedia
(Created page with "{{JSCalc}} {{Calc use|Calculator:Thieving/Master farmer success/Template}} This calculator determines the chance of succeeding to pickpocket master farmers. <pre class="jcConfig"> template = Calculator:Thieving/Master farmer success/Template form = Form result = Result param = playername|Name||hs|ThievingLevel_Input,18,1 param = ThievingLevel_Input|Thieving Level|38|int|38-99 param = ArdyDiary|Ardougne Hard Diary Completed|true|check|ischecked,notchecked </pre> {| c...")
 
No edit summary
 
Line 15: Line 15:
<br/>
<br/>
----
----
<div id="Result">{{Calculator:Thieving/Master farmer success/Template}}</div>
<div id="Result">{{Calculator:Test Template}}</div>
 
 
<noinclude>{{Calculator template|Calculator:Thieving/Master farmer success}}</noinclude>
<div style="display:none;">
{{#vardefine:thief|{{{ThievingLevel_Input|99}}}}}
{{#vardefine:chance|{{#switch: {{#expr: floor(((5 / 833 * {{#var:thief}}) + 17/49) * {{#ifeq:{{{ArdyDiary|ischecked}}}|ischecked|1.1|1.0}})}} | -1 = 0 | 1 = 100 | {{#expr:((((5 / 833 * {{#var:thief}}) + 17/49) * {{#ifeq:{{{ArdyDiary|ischecked}}}|ischecked|1.1|1.0}}) * 100) round 2}}}}}}
</div>
 
At level <b>{{#var:thief}}</b> Thieving, you have a <b>{{#var:chance}}%</b> chance to successfully steal from master farmers.
 
At a theoretical maximum efficiency, you can expect to earn up to <b>{{Formatexpr|(43 * ((60 * {{#var:chance}}) / (2 + ((1 - ({{#var:chance}} / 100)) * 8)))) round 0}}</b> {{SCP|Thieving}} experience each hour, the equivalent of <b>{{Formatexpr|((60 * {{#var:chance}}) / (2 + ((1 - ({{#var:chance}} / 100)) * 8))) round 0}}</b> successful pickpockets.

Latest revision as of 16:22, 24 December 2024

Template:JSCalc Template:Calc use This calculator determines the chance of succeeding to pickpocket master farmers.

template = Calculator:Thieving/Master farmer success/Template
form = Form
result = Result
param = playername|Name||hs|ThievingLevel_Input,18,1
param = ThievingLevel_Input|Thieving Level|38|int|38-99
param = ArdyDiary|Ardougne Hard Diary Completed|true|check|ischecked,notchecked
Please input the data and submit the form.




Template:Calculator template

{{#vardefine:thief|99}} {{#vardefine:chance|Expression error: Unrecognized punctuation character "{".}}

At level {{#var:thief}} Thieving, you have a {{#var:chance}}% chance to successfully steal from master farmers.

At a theoretical maximum efficiency, you can expect to earn up to Template:Formatexpr Template:SCP experience each hour, the equivalent of Template:Formatexpr successful pickpockets.