Jump to content

casting spells not working


roguehippo

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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