Renzanity
2015-03-09 10:41:33
Hi everyone, I need help about how I can fix the sequence of my script. I can't seem to make it do what I intend it to do. It does kill the cows, but it continuously goes on killing and not loot anything.
To put it simply, I want it to:
1st Run to the location where the Cows are
2nd Kill 1 cow
3rd Wait for the loot to surface and then loot it
4th Continue to kill Cows and looting until the bag is full
5th Run to the bank to deposit
[SPOILER= This is my code]
Or I think maybe it's my looting procedure that's wrong so I'm displaying it here as well.
[SPOILER= My looting procedure]
If you want to see my whole script to look into it more, let me know on a post below.
Thanks in advance! :norris:
To put it simply, I want it to:
1st Run to the location where the Cows are
2nd Kill 1 cow
3rd Wait for the loot to surface and then loot it
4th Continue to kill Cows and looting until the bag is full
5th Run to the bank to deposit
[SPOILER= This is my code]
repeat
if (tabBackpack.isEmpty) then
pToCowPen();
repeat
killCows();
pReport();
lootHides();
pReport();
until (tabBackpack.isFull);
if (tabBackpack.isFull) then
pToBank();
dHides();
until (false);
[/SPOILER]Or I think maybe it's my looting procedure that's wrong so I'm displaying it here as well.
[SPOILER= My looting procedure]
//To loot cowhides
procedure lootHides();
var
x, y: integer;
begin
mainscreen.findObject(x, y, 8422864, 26,colorSetting(2, 0.05, 0.87), mainscreen.playerPoint, 10, 70, 70, ['aw', 'owhide', 'ones'], MOUSE_RIGHT);
wait(randomRange(800, 1000));
chooseOption.select(['ake Cowhide']);
wait(randomRange(1000, 1500));
inc(hC);
end;
[/SPOILER]If you want to see my whole script to look into it more, let me know on a post below.
Thanks in advance! :norris: