Log in

View Full Version : Wilderness Agility Script



wantonman
07-30-2011, 04:22 AM
http://villavu.com/forum/showthread.php?t=62458


i noticed this guys script was very good but there's a problem with the rope swing is there any information on altering this script to fix this error?

what happens is that from time to time the courser will keep searching for the little rope but not search good enough and it ends up failing and throws off the whole script.

who here knows how to edit this and or show me how!?:spot:

grats
07-30-2011, 04:26 AM
well this is the rope:


with Obstacles[ROPE] do
begin
StartTile := Tile(3005, 3953);
ClickTile := Tile(3005, 3955);
EndTile := Tile(3005, 3958);
Height := 10;
Color := 861739;
UpText := 'Ropeswing';
Option := 'Swing';
end;

can you use the color picker on simba and get the color?
I'm going to sleep.. but tomorrow I can see if the tile is correct for it.. but if you pick the color and put it in (line 77) of the script it might help, I'd have to go there to look at it and see if stuff changed

wantonman
07-30-2011, 08:03 PM
okay, okay well, well good fix. Works lovely but now that i know your a great helper i shall ask more. well, your right the color was off but now i'm in an even worse position this i was in from the start and hopefully you have the answer.

I noticed that it clicks the rope at the color i chose for it flawlessly but maybe too flawlessly... It clicks the exact same spot all the time every time. how would i set it up so that it can click the rope a various random locations?

grats
07-30-2011, 08:12 PM
it does click the exact spot every time? normally with color it would pick any of the colors around there.. I'm not much of a coder.. but I would think it would click that color anywhere in that tile.

someone else would need to help with that one, are you sure it clicks the exact spot?

wantonman
07-30-2011, 08:19 PM
yeah, I selected the color with the color selector on the rope. I watched it run several times and its just in one spot so I gets me scared of it, haha. well none the less I think maybe i would have to pick more colors and do some sort of or, or, or statement crap but yeah thanks for the first suggestion it really got me started!

grats
07-30-2011, 08:32 PM
yeah, I selected the color with the color selector on the rope. I watched it run several times and its just in one spot so I gets me scared of it, haha. well none the less I think maybe i would have to pick more colors and do some sort of or, or, or statement crap but yeah thanks for the first suggestion it really got me started!

yea the color should repeat itself throughout the rope so it should be clicking different spots.. I couldn't help you if it does only 1 spot I don't know :P

wantonman
07-30-2011, 08:49 PM
hmm, maybe i selected a rare color on the rope, or maybe the guys script doesn't have the range set high enough when searching. Somebody please help me understand how to adjust this!

wantonman
07-30-2011, 09:15 PM
okay, okay here if you test it with this color on the rope '795946' you'll see that it clicks this one in the same spot. I found a different color that's used more in the rope and will not get confused with anything around it which is this color here '729638'. the issue was that the color i chose was like a rare on but then again i don't know because i think simba had a function to pick certain colors withing a certain range but still this works now for me thank you Mr.Grats , i mean Goku!

grats
07-30-2011, 09:20 PM
yea normally there is a tolerance for it.. allowing it to have a range for color picking, I know how to do that in TPA's but not this script..

you can go check out some tutorials looks like you understand this pretty will :P