Potenti Posted February 5, 2023 Share Posted February 5, 2023 Hi all, Im new to scripting and try to code an enchantment script. However, I want to automated the buying of the resources on the GE, but im having errors which I can not resolve. same applies to the error on the symbol of 'spell'. I thought this had somehting to with my import, but can't seem to figure out what is the problem. Any help is appreciated! This is the project import: Quote Link to comment Share on other sites More sharing options...
Rays Posted February 5, 2023 Share Posted February 5, 2023 As you can see by looking at the API of OSBot there is no getItem() method in the GrandExchange class. https://osbot.org/api/ Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted February 6, 2023 Share Posted February 6, 2023 16 hours ago, Potenti said: Hi all, Im new to scripting and try to code an enchantment script. However, I want to automated the buying of the resources on the GE, but im having errors which I can not resolve. same applies to the error on the symbol of 'spell'. I thought this had somehting to with my import, but can't seem to figure out what is the problem. Any help is appreciated! This is the project import: You are looking for this I believe: getGrandExchange().getOverallPrice(ID) Quote Link to comment Share on other sites More sharing options...
Czar Posted February 6, 2023 Share Posted February 6, 2023 Spell should also be import org.osbot.rs07.api.ui.MagicSpell; and individual spells are called via NormalSpells.ENCHANT etc Quote Link to comment Share on other sites More sharing options...