Jump to content

Did we break something in the recent update?


TTScripts

Recommended Posts

Hi, i'm coding my script and it's not finding objects. Refer to picture below. Maybe bad code? Idk but using this line to check if an object nearby has always worked in the past.
 

I added some debugging because I wanted to make sure but in the top left you'll see 9348 is being called a null even though you can see (through Entity hover debug) there is a 9348 object right there (Bird snare with Tropical wagtail in it)

What's going on?

VWfMlfYsTaOo9vCygNwDSQ.png

 

Link to comment
Share on other sites

37 minutes ago, Project said:

Would try to help if I could understand the logic. :( 

Same. 

Edit: figured it out. I think i was having similar issues yesterday. Most Players with spaces in their name were ==null for some reason even if they existed. Maybe it has something to do with spaces NPCs Objects and Players

Edited by Juggles
Link to comment
Share on other sites

On 9/14/2017 at 9:17 PM, Juggles said:

Same. 

Edit: figured it out. I think i was having similar issues yesterday. Most Players with spaces in their name were ==null for some reason even if they existed. Maybe it has something to do with spaces NPCs Objects and Players

So how do we correct the issue? Does OSBot's API recognize underscores in place of spaces?

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