Jump to content

casting spells not working


Recommended Posts

Posted (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 by roguehippo
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...