Anonymous

In-game Functions: Difference between revisions

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