Files
al-code/js/12.int-base.js
T
2026-11-12 22:14:32 +01:00

9 lines
343 B
JavaScript

async function apply_int() {
await smart_move(find_npc("newupgrade"));
var slot = character.items.findIndex(function (item) {
return item && item.name === "coat" && (item.level || 0) === 0 && !item.stat_type && !item.l;
});
var scroll = locate_item("intscroll");
if (slot === -1 || scroll === -1) return;
await upgrade(slot, scroll);
}