Calculator:Template/Other/Base

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search

This calculator provides formatting for Calculator:Other/Urns.

Template documentation
This documentation is transcluded from Calculator:Template/Other/Base/doc. [edit] [history] [purge]
Calculator:Template/Other/Base invokes Calculator:Other/Urns using Lua.

This calculator calculates the number of urns needed through straightforward math.

Parameters

hs_toggle

Toggles whether a highscores lookup is done.

name

Player name for highscore lookup.

current

Choice between xp and level when no highscores lookup is done.

currentlvl

Current xp or level.

desired

Choice between xp and level for the goal.

lvl

Level goal.

exp

Experience goal.

skill

Skill choice for urn.

Skill is also used to find the correct plink in the output.

tier

Tier of urn (not prayer).

tier is also used to find the correct plink in the output.

ptier

Tier of prayer urn

ptier is also used to find the correct plink in the output.

enh

Whether an urn enhancer is used or not.

bxp

Amount of bonus xp.

xpboost

Boost in xp. Affects base xp but not urn xp.

Variables

skill_nr

Number corresponding to the skill in the highscores lookup.

hs

The xp name has in skill.

manualxp

If no highscore lookup is done, the xp manually entered into currentlvl or the xp corresponding to it if current is set to level.

currentxp

manualxp or hs depending on hs_toggle.

desiredxp

The exp or xp corresponding to lvl depending on desired.

xpneeded

desiredxp minus currentxp

xp

max(xpneeded, 0) to ensure no negative numbers mess us up.

urnxp

Xp for teleporting an urn.

basexp

Base xp needed to teleport an urn.

bxpnumber

0 if prayer urns, otherwise the number of urns you can teleport while on bxp.

urnbxp

The total xp you get if you used all your bxp while using urns. Takes into account xpboost.

number

If urnbxp > bxp: the number of urns you can teleport, while getting 100+xpboost % bxp.

if urnbxp < bxp: the number of urns you can teleport wihout bxp (see formula on main page) + bxpnumber.

Number is then used to calculate the number of divine charges needed and their cost.