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

Interacting a object?

Featured Replies

Hey guys how do i let the client know im interacting a object? because myPlayer().isInteracting is only for NPCS i guess?

  • Author

I thikbn hes looking for when a player is interacting with a object.

 

Like chopping a tree, if it's possible to get the gameobject by doing myplayer.getinteracting() 

 

Right?

 

 

Yes exactly this ^ cus lets say when you're smithing and you smith, it animates stops for 2 seconds and it animates again. this wont work well with isAnimating, cus it would switch each 2 seconds or so..

 

I want to know how i can use if(myPlayer().isInteracting()) with an object :) because its only NPC wise at the moment

Edited by Daviyow

Check animations, check your inventory / interfaces / messages.

The method you're asking for doesn't exist in OSB and I'm not even sure if it's implementable / exists in the OSRS engine.

Would be cool though.

I believe we discussed this already on another thread. What I do I use a timer. Everytime I'm animating I reset timer. Then I also check to see if it's been more than three Seconds. Before interacting with the object.

I believe your looking for:

Character object = myPlayer.getInteracting();

if(object instanceOf RS2Object){
   //lets rape some trees
}

Hope I understood this correctly :p 

I believe your looking for:

Character object = myPlayer.getInteracting();

if(object instanceOf RS2Object){
   //lets rape some trees
}

Hope I understood this correctly tongue.png

 

:(

 

86ebf925b0a8392ad9737d98857ff38a.png

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.