Log in

View Full Version : Awsome Enhanecment Idea!!!



ronny.m.p
03-02-2007, 04:21 PM
I think i have found a way to enhance all the flag procedures in srl! Currently the flag itself has the constent color of 255 and this is the color that all flag procedures are searching for. However the color of the pole on the flag is not 255. After testing i have found that the pole has a constent color of 284358. So i thought to myeslf...why not integerate that color into one of the flag procedures to see if it works. And of course it did! Why is this useful? Because this way you will be able to mapwalk greater distances because it will find the pole color and realise the flag is not gone just because it cant find the color 255! Below is my allteration of FFlag; I call it RonnyFlag; All credits for FFlag; go to Wizzup? / WT-Fakawi.

procedure RonnyFlag(Distance: Integer); //This is an edited version of FFlag; to fit the needs of this script.
var //All credits for FFlag; go to Wizzup? / WT-Fakawi.
XK, YK, XL, YL: Integer;
var
T1, T2: Extended;
begin
T1 := GetTickCount;
repeat
T2 := GetTickCount;
Wait(100);
if HumanCircleFlag(Distance) then
Break;
Wait(100);
if T2 - T1 > 30000 then
begin
if FindColor(XL, YL, 255, MMX1, MMY1, MMX2, MMY2) and FindColor(XL, YL, 284358, MMX1, MMY1, MMX2, MMY2) then
MouseFindFlag(XL, YL, 1, 1)
else Mouse(MMCX, MMCY, 0, 0, True);
break;
end;
if Random(20) = 1 then IdleTime(500, 1000, 0.01);
until (not FindColor(XK, YK, 255, MMX1, MMY1, MMX2, MMY2) and (not FindColor(XL, YL, 284358, MMX1, MMY1, MMX2, MMY2)));
end;


:sasmokin:

Sumilion
03-02-2007, 04:38 PM
Good idea, but i dont see why it would be much better ? Its fine as it is but its good that your trying ;)

ronny.m.p
03-02-2007, 04:47 PM
well think about it...if your useing radial walk and you have it click at the top of the minimap (radius would be 70 i think) then you would be able to walk all the way there where if you only used 255 as your color then you are forced to put the flag somewhere that it will see that color at all times (or until it reaches the distance specified in FFlag;) Also an off-topic note...RadialWalk defaults to FFlag(10); before you can use RonFlag...

Sumilion
03-02-2007, 11:25 PM
Yes i understood that, but why would you want that ?

ronny.m.p
03-03-2007, 07:52 PM
It would be more efficient...it would take less procedurs to get you to where you are going and seeing as the longest thing to create in most scripts is mapwalking then this would decrease the amount of time it would take to make the script by quite abit.

Yakman
03-03-2007, 08:06 PM
i agree with ronny, when your walking upwards the distance to 255 is differant from the distance when walking south
and that walking upwards makes the 255 part of the flag is hidden when walking upwards with a high radius
Dont listen to sumilion, he never reads the include source and probably doesnt know how FFlag works :-p
and ronny, theres already someone called ron, so dont sign your procedures with ron, dont give him more material :p ;)

ill see what i can do with this idea

whales
03-03-2007, 08:47 PM
I like this I had been thinking about this myself glad some one else thinks the same way. Next SRL update I say update to this new flag color.

Sumilion
03-03-2007, 11:12 PM
Dont listen to sumilion, he never reads the include source and probably doesnt know how FFlag works :-p

Grrrrrrrrrrrrrrrrrrrrrrr, did i piss you off because i called you a nigga :p ? I happen to know quite well how FFlag works, just not the functions FFlag uses xD.

ronny.m.p
03-04-2007, 04:39 PM
Well i'm glad you guys like the idea and your right yakman i better change the name...anyways im working on updateing all of the mouse/flag script to use the pole color aswell as the flag color. Hopefully it will get put into srl in the nest update.