4,687
edits
m (→Locate Ancient Relic: Fixed relic being undefined) |
m (→Examples) |
||
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 | let relic = relicSet.relicDrops.find(x => x.relic.id.toLowerCase().includes('relic1')).relic; | ||
if (!relicSet.foundRelics.has( | if (!relicSet.foundRelics.has(relic)) | ||
game.woodcutting.locateAncientRelic(relicSet, relic); | game.woodcutting.locateAncientRelic(relicSet, relic); | ||
</syntaxhighlight> | </syntaxhighlight> |