So I attempted to try this out on my own project.
As usual, I removed the default recipes and made one of my own.
Recipes[1] = { # Sharpened Flint :recipe_type => 2, # Crafting :auto_learn => false, # Auto-learn this recipe when level is reached :req_level => 1, # Level required to use this recipe :shop_fee => 5, # Fee charged if crafted at a shop :craft_time => 200, # Time it takes to make the item :earned_exp => 1, # Exp gained on success :crafted_item => [:i3478, 1], # :failed_item => [:i2866, 2], #
😛re_failed => [:i2889, 2], # Failed item if crafted before timer :ingredients => [ # [:i2889, 2], ]} # <- DO NOT REMOVEHowever I keep getting the following error when I enter the crafting window:
undefined method 'icon_index' for nil:NILClass
I check the scripts section and it show up in the main Crafting Script, line 644.
draw_icon(item.icon_index, rect.x + 1, rect.y, @list[index][:enabled])So, what am I doing wrong here?