Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

casting spells not working

Featured Replies

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

You're going to need to find the spell's widget and interact with it using the widget API instead.

Got a picture of the log when you run the script?

  • 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?

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

  • 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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.