SRL Archive - First Scripts

Function: SpiralMovenClick


Queso

2008-07-13 23:52:10

After much screaming at myself, I did it!

//By: Queso
//Spirals mouse around character, looking for UpText, then selecting Option
//if found. Useful for finding rocks and trees in conjunction with color
//finding. Suggested to mix with color finding after verification of object's
//existance around the character!

//Procedure SpiralMovenClick(UpText, Option: String; Distance: Extended);

//UpText: Text to find at top left.
//Option: Option to find after right clicking.
//Distance: Distance between spiral lines. Personal usage is 5.4
//NOTE: The greater the distance, the less chance it has on falling
//on your object!

It requires NO color finding, which makes it stand out (or so I believe :) )!

Try it out in your own scripts!

I'll even supply a test script for it searching for rocks to give you an idea ;)

I'd like to give a special thanks to everyone on the IRC channel that put up with my tired being, and a special thanks to Wizzy for reminding me about the distance formula!

HyperSecret

2008-07-14 00:38:58

do you think this would work better? this would probably get you banned in a pretty short amount of time…but nice learning experience.

instead of going straight to a color, your just going around in a circle from your character, unique but probably not to usable

Queso

2008-07-14 07:35:01

From: HyperSecret
do you think this would work better? this would probably get you banned in a pretty short amount of time…but nice learning experience.

instead of going straight to a color, your just going around in a circle from your character, unique but probably not to usable


Yeh, I thought about this, but I was thinking about branching off of this and making it move the mouse on a swirel between, say, 180 and 225 degrees (user defined). This way it narrows down the direction and the points!

Meh, first script ain't supposed to be ban-free :p