SRL Archive - Help and Support

help with radial


jakeyboy29

2011-12-29 09:12:16

hi there. Im currently making a SW script, my first script in around 2 years. As you can imagine, its not coming along very fast. The TPA's and autocolouring functions to pass barrier and such are coming along fine.
However, I am having trouble with, at this very moment, the Radialwalk.

 
function RadialWalkTolerance(Color, sRadial, eRadial, r, modX, modY, Tol: Integer): Boolean;
var
TPA: TPointArray;
i, h: Integer;
begin
Result := False;

if RadialWalkEx(TPA, MMCX, MMCY, Color, Tol, sRadial, eRadial, r) then
begin
h := High(TPA);
for i := 0 to h do
if MFNF(TPA[i].x, TPA[i].y, modX, modY) then
begin
FFlag(10);
Result := True;
Exit;
end;
end;
end;

I have these points, but cant for the life of me work out how to, "if at one, goto another".


//RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 319, 336, 70)
//RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 352, 22, 64)
//RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 66, 104, 73)
//RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 70, 121, 73)
//RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, 34, 91, 65)

Hero

2011-12-29 11:05:11

I didn't know radial walk could be as specific as that. I personally like to fool around with SPS(you can do SPS tile checks :P) I always thought radial walking just went in which ever direction the degrees and color were set to. With no "set" path. :3

jakeyboy29

2011-12-29 11:21:59

i would use sps, but as im working on a mac is near/is imposible

Tickyy

2011-12-29 13:49:01

I was thinking about making a soul wars script as well but then i got high(jk). No really i was going to make one(yesterday) just join game and chase the red or blue points that shows where the avatar is so it just dies while walking there or just dies at the avatar by others attacking or something. Well what i wanted to ask you is do you want to work together and try to make one. I have a 1-2 years old script that i've tried to make but back then i just wasn't experienced enough and now i think the time has come :p. That idea with just walk and die should work for sure, because when you die you gain a lot of activity on the bar.

So what do you think do you wanna wanna work together on this shizzle :p :D

jakeyboy29

2011-12-30 20:55:31

YES! ive been looking for a partner! Have you got msn?

Tickyy

2011-12-30 21:00:43

From: jakeyboy29
YES! ive been looking for a partner! Have you got msn?


[email]Tickyy_@msn.com[/email], what's urs?

jakeyboy29

2011-12-30 21:02:09

[email]jake_1_@hotmail.co.uk[/email]