Jump to content

Very new to coding


Idcrytoo

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...
Quote

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

Incorrect. You're not stupid, you're simply new. We've all been there.

 

Always try to provide a screenshot of the log / compile window as well as the sections of code it suspects are incorrect. This helps us understand whats going on a lot faster ?

  • Like 1
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...