4,683
edits
(→Add Item to Bank: Added console command to search for item IDs) |
m (→Locate Ancient Relic: Fixed relic being undefined) |
||
Line 260: | Line 260: | ||
| relic || object || No || || The relic that you wish to add. | | relic || object || No || || The relic that you wish to add. | ||
The relic can be obtained with <syntaxhighlight lang="js" inline><relicSet>.relicDrops.find(x => x.relic.id.toLowerCase().includes('relic<#>'));</syntaxhighlight> where <code><#></code> is replaced with the relic number, starting from 1 and ending with 5. | The relic can be obtained with <syntaxhighlight lang="js" inline><relicSet>.relicDrops.find(x => x.relic.id.toLowerCase().includes('relic<#>')).relic;</syntaxhighlight> where <code><#></code> is replaced with the relic number, starting from 1 and ending with 5. | ||
|} | |} | ||
Line 267: | Line 267: | ||
let realm = game.realms.getObjectByID('melvorD:Melvor'); | let realm = game.realms.getObjectByID('melvorD:Melvor'); | ||
let relicSet = game.woodcutting.ancientRelicSets.get(realm); | let relicSet = game.woodcutting.ancientRelicSets.get(realm); | ||
let relicDrop = relicSet.relicDrops.find(x => x.relic.id.toLowerCase().includes('relic1')); | let relicDrop = relicSet.relicDrops.find(x => x.relic.id.toLowerCase().includes('relic1')).relic; | ||
if (!relicSet.foundRelics.has(relicDrop | if (!relicSet.foundRelics.has(relicDrop)) | ||
game.woodcutting.locateAncientRelic(relicSet, relic); | game.woodcutting.locateAncientRelic(relicSet, relic); | ||
</syntaxhighlight> | </syntaxhighlight> |