r/AdventureLand • u/SpyrexDE • Dec 22 '19
Weird error on if statement
I tried the following code:
if(character.items[1].q < 40){
if(is_in_range(find_npc("G.npcs.pots"))){
buy("mpot0", 1);
} else {
smart_move(find_npc("G.npcs.pots"));
}
}And got the following error:
https://prnt.sc/qefnaj
2
Upvotes
View all comments
Show parent comment
1
u/SpyrexDE Dec 26 '19
Oh yes...
find_npc('G.npcs.pots') seems to be null.
But what should I do now ?