roguehippo Posted August 28, 2017 Posted August 28, 2017 (edited) 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, 2017 by roguehippo
d0zza Posted August 28, 2017 Posted August 28, 2017 You're going to need to find the spell's widget and interact with it using the widget API instead.
roguehippo Posted August 28, 2017 Author Posted August 28, 2017 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?
d0zza Posted August 29, 2017 Posted August 29, 2017 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
roguehippo Posted August 29, 2017 Author Posted August 29, 2017 i made my own function to select arceuus reanimation spells based off of a given Spell object. it seems to be working well.