Reply To: Mod Questions

Home Forums Wayward Mod Questions Reply To: Mod Questions


Here is the correct code that should work, you dont need the preventdefault since this command goes into your inventory and not a map location. Also double check all your variables, you had chicken listed on the second part you showed. Also, the copy and past won’t work for this as the ” ‘ and other symbols don’t seem to register correctly. Your best bet is to manual retype it all in notepad or whatever you use before you save it as a .js

$(“#optionswindow”).append(‘<button type=”button” id=”getarrow”>Get Arrow</button>’);
$(“#optionswindow”).on(“click”, ‘#getarrow’, function(e) {itemGet(“arrow”);message(“got arrow!”);});

You are better off just typing the command in the js console though, much easier then loading the mod.