Jump to content

[Req] osbuddy like npc rendering snippeto


Recommended Posts

Posted

I would have posted the code but I’m at work and my boss was coming lol, something like 

g.draw(yournpc.getModel()(yournpc.getGridX(),yournpc.getGridY(),yournpc.getZ())

i know that’s not quite right , but I’m trying to portray my train of thought. That should outline the npc with whatever you set your color too.

Posted
31 minutes ago, sonda said:

Now that i am home, this is the code i use 


NPC WARRIORS = (NPC) myPlayer().getInteracting();
				gr.setColor(Color.GREEN);
				g.draw(WARRIORS.getModel().getArea(WARRIORS.getGridX(), WARRIORS.getGridY(), WARRIORS.getZ()));

 

 

He wants to know how to do it without using OSBot's methods.

  • Like 1

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