1. If l log in and run this, I get 0.

       local numtradeskills = GetNumTradeSkills();

    print(numtradeskills);



    However, if I open my enchanting window and run the same code, it returns 177 items. Is there a way to populate this without having the user open the tradecraft window?

     

  2. If l log in and run this, I get 0.

       local numtradeskills = GetNumTradeSkills();

    print(numtradeskills);



    However, if I open my enchanting window and run the same code, it returns 177 items. Is there a way to populate this without having the user open the tradecraft window?