SRL Archive - News and General

Have you ever?


radiclerobby

2011-11-19 20:10:20

Have you ever stayed up late to finish a really difficult part of your script. Then the next morning you surprise yourself on what you did the night before?

Like last night, i needed to find tin ore in varrock east mine but it would find the street. So i made two TPointArray's, one for the tin rock color and one for the second color of the tin rock(brownish). Then seperated The TPA's into a ATPA. Then filtered out the TPA's of the tin that had more points then a average rock. Now we are down to few TPA's in that array of tpoint. Now i needed to find a point were the tin and the brown were close.(finding the distance between tin tpa's to the brown tpa's) if the Brownish TPA and the Tin TPA were close enough together then it would move the mouse to the point check the uptext then click.

I may not have explained it very clear to some people but this method i used found the rock almost instantly and will never click the wrong rock. What are some things youve done?

P1nky

2011-11-19 20:12:53

All the time, Like last night I finally fixed a problem and just keep adding features to my PowerChopper :)

It's fun, when you finally get it. :)

Flight

2011-11-19 20:52:19

It's ironic, I was asking for help for the very same problem: finding two colors close to each other. I was successful. Read Narcle's reply in the bottom of this thread.

radiclerobby

2011-11-19 21:27:32

Yeah there are tons of ways to do these kinds of things :) its crazy how much imagination comes into the picture later in life. I still wish they would add a snippets section for i can post my function and procedures that would make scripting for everyone so much easier. Thats one of the reason reflection bots had so many script writers

Kyle Undefined

2011-11-20 16:35:25

I do that all the time but with projects at work, and drunk lol.

Blupig

2011-11-21 15:18:10

I don't script, but I have coded a pretty good basic scriptable bot in C# (autotalking, mouse recording and basic color functions) while drunk coming home from a party. I blacked out in my chair, woke up on my floor the next morning to a lovely, though messy bot. I should refine it and release it, it's pretty much done and can do some pretty cool things :P