Jump to content

Very new to coding


Recommended Posts

Posted

Hey guys, just need help. Currently working on a script learning pretty well. Started trying to make my own scripts a few days ago and I'm currently stuck.

I'm trying to get the amount of gold in my inventory and set it to a name and use that value later in the script but it keeps saying error.

 

Item originalGold = getInventory().getAmount("Coins"); //SCRIPT GATHERING HOW MUCH GOLD IS IN INVENTORY

I have this on start. It keeps saying that I'm missing required API but it's already imported on top with color so I know it imported.

P.S. I'm setting it up like in the OSBOT tutorial videos by chris. Using his NPC example but this time for gold.

Sorry if I sound stupid it's because I am.

  • 3 weeks later...

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