Jump to content

Woody

Members
  • Posts

    715
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Woody

  1. nah man tobacco is bad for you tongue.png. But seriously, I don't smoke tobacco so it's not really worth buying some just to test a bit of hash.

    You could roast the cigarette so the nicotine and other harmful things vaporize; you would get "healthier" tobacco.

     

    Trust me, I really, really hate tobacco but roasting the cigarette makes it better, at least I think so.

  2.  

    To draw an arbitrary area on the minimap you could do:

     

    Area area = myPlayer().getArea(4);
    Polygon p = new Polygon();
       for(int i = 0; i < area.getPolygon().npoints; i++) {
          short[] mm = GraphicUtilities.getMinimapScreenCoordinate(bot, area.getPolygon().xpoints[i], area.getPolygon().ypoints[i]);
          p.addPoint(mm[0], mm[1]);
       }
    g.setColor(Color.RED);
    g.draw(p);
    

    spoon-feeding.jpg

    • Like 2
  3. My bad, @Bobrocket corrected me, but I found this

    public Point minimapTranslate(Position pos) {
    		//Get local position coordinates
    		int x = pos.getX() - getMap().getBaseX();
    		int y = pos.getY() - getMap().getBaseY();
    
    		//Get the players current offset from the provided position
    		//Using grid coordinates we get a more accurate result when we're in
    		//the process of walking between two tiles.
    		//1 tile = 2 units, in rX and rY
    		int rX = (x * 4 + 2) - (myPlayer().getGridX() / 32);
    		int rY = (y * 4 + 2) - (myPlayer().getGridY() / 32);
    
    		//Get the current minimap position and camera rotation offsets.
    		//these are often changing even without moving/rotating the camera.
    		//^ This is probably to prevent autoclicking
    		int offset = client.accessor.getMinimapX();
    		int minimapAngle = client.accessor.getMinimapRotation();
    		int angle = minimapAngle + offset & 0x7FF;
    
    		//Calculates the sine and cosine vars to be used for rotation from the
    		//minimap center. The minimap zoom is also random and often changing.
    		//These are scaled up to improve accuracy in the following calculations
    		int sin = (GraphicUtilities.CAMERA_SIN[angle] * 256) / (client.accessor.getMinimapZoom() + 256);
    		int cos = (GraphicUtilities.CAMERA_COS[angle] * 256) / (client.accessor.getMinimapZoom() + 256);
    
    		//Standard trigonometry; calculate the offset from minimap centre
    		//Then downscale the result by right shift. We use 16 instead of 8 due to the unit of
    		//rX and rY being doubled in comparison to real X,Y coords
    		int mX = rY * sin + rX * cos >> 16;
    		int mY = rY * cos - rX * sin >> 16;
    
    		//Return the point. 644 and 80 are the minimap X, Y coordinates
    		return new Point(644 + mX, 80 - mY);
    	}
    

    You can do

    g.drawOval(minimapTranslate(position.get(i)).x -4, minimapTranslate(position.get(i)).y -2, 6, 6);
    
    • Like 1
  4. HA! oh my gosh i'm dumb, ty!

     

     

    I guess i'm confused. Shouldn't I return to different states?

    Does:

    
    int huntLvl = skills.getStatic(Skill.HUNTER); 

    check my hunter lvl?

    or is that wrong?

    Your getState() sucks. You don't check hunter lvl in your getState(), you should only write conditions and return to different states.

     

    Yes, only conditions in your getState.

     

    Yes, that is how you check your hunter level. However I'd do that in onStart(), same with "my" and "mx". 

     

    EDIT: This is a good guide for you to learn something. Don't rush with making scripts; everyone started from the bottom.

  5.  

    No because it caused more problems in other cases. It actually made several assumptions that leads to bugs. That's why it needed extra patches.

    Edit: I also mentioned this to you before

    Oh yea, now I remember, my bad.

     

    By the way, the mouse tend to make a circle and sometimes two before clicking on the entity. Just some info.

  6. It should be a lot better on .131+

    I tested the interaction and it's better now. However, in the begging when it moves towards the entity, the mouse kinda lags for a very short time then normal movement. 

     

    The interaction in V .123 was really good, maybe you could go back to that?

  7. hahaha crack head was a clever one. To answer, I definitely care about them man because of them ill be successful so get the fuck out of here with your pathetic insults. Are you compensating for something? Maybe a little slow, maybe can't get into school or maybe just a lazy ass fuck who likes to be someone else on the internet. Also, before you go on telling us to smoke crack or snort dope, were smoking a fucking plant. you know... like people do with tobacco, right? You ingest more negative things waking up taking your fucking ADHD medicine so you can trash us!

    Come on man, it was only a joke. You don't have to go all in on me...

     

    I'll be honest, you are right, this is me

    hqdefault.jpg

    Please don't make fun of me. It takes a lot of courage to post this picture.

  8. We were just elected a new prime minister lol, he claims he is going to legalize it here shortly.

     

    You must be pretty bored then, cause you ain't getting much from me lol and making yourself look like a tool. But carry on

    If you didn't care about my posts then you wouldn't have quoted me at all. Just keep snorting that stuff, dope monger.

  9. Kid.. you really that butt hurt you gotta come here and flame? Lol were you bullied when you were younger and this is your way of making yourself feel better? The image you're portraying of yourself is pretty sad.. lol

    Nah man lol Ontario

    This is what this section is for; spamming, flaming and being totally random. I enjoy posting here and make fun of people like you. The best thing is their reaction, I just love it.
    • Like 1
  10. Lol. You clearly understood what i meant, I am gonna assume you are roughly between ages 14 - 17. No knowledge on the benefits of cannabis. And putting your input where it doesn't belong smile.png lol talk to me when your balls drop little guy smile.png

    Wow dude, you really know me. Are you a wizard or something?

     

    fuck this bs

×
×
  • Create New...