hey after you do randoms and you get items how do you make the script drop just the items you get from randoms
hey after you do randoms and you get items how do you make the script drop just the items you get from randoms
PLM'S Rimmington Yew Cutter And Banker,Worked: 4hour 54min
well if you are making a miner or wcer you should do something like this:
SCAR Code:procedure DropRandomItems;
begin
for i:= 1 to 28 do
begin
repeat
if ExistsItem(i) and (not(FindColortolerance(x,y, 0202{Color of e.g the ore}, x1, y1, x2, y2, 20) then
Chooseoption('rop');
end;
until( { until stuff here })
end;
[22:20] <[-jesus-]> freddy, go uninstall yourself
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
lol but is this function:
basicly what i need thoughif ExistsItem(i) and (not(FindColortolerance(x,y, 0202{Color of e.g the ore}, x1, y1, x2, y2, 20) then
PLM'S Rimmington Yew Cutter And Banker,Worked: 4hour 54min
haha Santa Clause has a very good point. I am not that experienced in SCAR scripting but I am learning and I spotted those errors otherwise that was a fairly good explanation to his problem.
~Insanomano~
it was a quick example, and no, i didn't really looked at it ;D
[22:20] <[-jesus-]> freddy, go uninstall yourself
SCAR Code:procedure DropItemsExceptColors(colorz : TIntegerArray);
var IC : TPoint;
var I, J, x, y : integer;
begin
Gametab(4);
Wait(1000 + random(1000));
for i := 1 to 28 do
begin
Wait(50);
if ExistsItem(i) then
begin
IC := ItemCoords(i)
For j := 0 to (GetArrayLength(Colorz)-1) do
begin
if FindColorSpiralTolerance(x, y, colorz[j],ic.x - 20, ic.y - 20, ic.x + 20, ic.y + 20, 5) then break;
if j = (GetArrayLength(Colorz)-1) then dropitem(i);
end;
end;
end;
end;
EDIT: Colorz are colors of items what should not be dropped
[CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]
ok thanks for your help every 1 i worked summink out
PLM'S Rimmington Yew Cutter And Banker,Worked: 4hour 54min
There are currently 1 users browsing this thread. (0 members and 1 guests)