August 28, 20178 yr Hello, i am trying to use the arceuss spell book and when i try to summon an ensouled head it never clicks on the spell. i have the spell selected and it tries to click the right spell but i think it is failing due to the option that it needs to interact with is called "Reanimate" instead of "Cast", where it was never expected a spell would use anything other than "Cast". has anyone tried using the arceuss spellbook before? maybe its just a problem with my code but its weird because it finds the right spell so its not a reference problem. here is the code of trying to use the spell: if(magic.canCast(spell)) { if(!magic.isSpellSelected()) { log("attempting to cast spell"); magic.castSpell(spell); mySleep(10,50); } else if(magic.getSelectedSpellName().equals(spell)) { log("spell we want is selected");//delete this eventually item.interact("Reanimate"); mySleep(10,50); } } spell is: spell = Spells.ArceuusSpells.REANIMATE_TROLL; item is: Item = inventory.getItem("Ensouled troll head"); all help is welcome Edited August 28, 20178 yr by roguehippo
August 28, 20178 yr You're going to need to find the spell's widget and interact with it using the widget API instead.
August 28, 20178 yr Author the log doesnt output anything related to the casting of the spell unfortunately. is there an easy way to find specific widgets for the spell i need to select? do you think the arceuss spellbook will ever work?
August 29, 20178 yr 9 hours ago, roguehippo said: the log doesnt output anything related to the casting of the spell unfortunately. is there an easy way to find specific widgets for the spell i need to select? do you think the arceuss spellbook will ever work? Just click widgets in the osbot debug settings and you'll be able to find the right one
August 29, 20178 yr Author i made my own function to select arceuus reanimation spells based off of a given Spell object. it seems to be working well.
Create an account or sign in to comment