Jump to content

Get inventory item as Entity help


roguehippo

Recommended Posts

Hello all, I am trying to incorporate alching into a script but I can not seem to get it. I am currently using the getMagic().castSpellOnEntity(Spells.NormalSpells.HIGH_LEVEL_ALCHEMY, item); method. 

the "item" is gotten through the inventory like so: Item item = getInventory().getItem("item to alch"); but it says that Item cannot be used as an Entity (even though i looked into the api and it seems like Item extends the Entity class so I thought i would be able to turn an inventory into a useable entity.) 

can anyone guide me in the right direction? should i not use "CastSpellOnEntity" ? thanks :)

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...