Jump to content

[Req] osbuddy like npc rendering snippeto


Isolate

Recommended Posts

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.

Link to comment
Share on other sites

This is the snippet I sent you earlier https://pastebin.com/sK661QsT

Converts an array of vertices into a convex shape
Scammed most of it from this guy: https://github.com/bkiers/GrahamScan

Can be optimized by removing the Point <-> short[] conversions

Edited by FrostBug
Link to comment
Share on other sites

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