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

character.getInteracting

Featured Replies

I know we already have  if (myPlayer().isUnderAttack()). I find this to be a slower method of finding out if we are interacting with an NPC or not. So if we could add some way to see if we are interacting with and if the NPC is interacting with us. That would be great!

 

Edit:Failed creating the title z.z

Edited by Tanner

myPlayer().isFacing(npc) and npc.isFacing(myPlayer()) should do the job.

Edited by Ande

myPlayer().isFacing(npc) and npc.isFacing(myPlayer()) should do the job.

myPlayer().getFacing() == null

is better.

  • Author

Essentially it is the same, I guess. Thanks for the feedback everyone. You can close the topic if you'd like.

myPlayer().getFacing() == null

is better.

 

Not true.

 

What the point of testing it to be null, Might be use full but testing it with another entity is the way to go.

So geting the character that your player is interacting with or following is way more accurate for combat scripts than chekcing if we are both facing each other. Honestly to write any decent combat script you'll want to have a way to see who your player is interacting with and who an npc is interacting with. This way you can accurately tell when you are in combat by if your interacting with that npc and also what npc is interacting with you or attacking you so you can reattack it and kill it.

Not true.

 

What the point of testing it to be null, Might be use full but testing it with another entity is the way to go.

Well, most obviously if the entity you are interacting with is null you aren't interacting with any entity and therefor not in combat/trying to trade a player/following a player

  • Author

So geting the character that your player is interacting with or following is way more accurate for combat scripts than chekcing if we are both facing each other. Honestly to write any decent combat script you'll want to have a way to see who your player is interacting with and who an npc is interacting with. This way you can accurately tell when you are in combat by if your interacting with that npc and also what npc is interacting with you or attacking you so you can reattack it and kill it.

Jayr is stating exactly what I was talking about.

  • Developer

Or me. Or yell at the people who called it interacting at other bots in the first place. The word interacting is vague and could mean a lot more than facing, which simply describes the act of your account being turned towards the other entity. If you would look at the rs client more closely, you would find that facing really is what it is, the part where you interact (combat, following, etc) is separated.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.