9 lines
343 B
JavaScript
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);
|
|
} |