Fishh
2013-02-26 14:49:42
Hey, I'm having some problems with UpText, I cannot distinguish between the fishing spots 'Cage, Harpoon' and 'Net, Harpoon'.
I can find fishing spots perfectly fine, but I only want to find the 'Cage, Harpoon' fishing spots. When a fishing spot is found my script will proceed to right and and select 'Harpoon', but this is useless if I cannot select the right spot.
My code so far:
If I remove the 'Fishing', 'spot' from the UpText, the cursor will move very rapidly between all fishing spots on the screen and then do nothing. With them, it will select the spots and right click them, just not the correct spots.
Could someone tell me if I'm missing something out/doing anything wrong, or is UpText for '07 just not working at the moment?
I haven't added PlayerDeclare yet because I'm just trying to get the spot selection working correctly first.
Thanks very much for any help, I've been reading through tons of tutorials, other scripts for examples and still can't solve it.
I can find fishing spots perfectly fine, but I only want to find the 'Cage, Harpoon' fishing spots. When a fishing spot is found my script will proceed to right and and select 'Harpoon', but this is useless if I cannot select the right spot.
My code so far:
program GuildFisher;
{$i SRL/SRL.simba}
{$i P07Include.simba}
function FishingSpotClick: boolean;
var
x, y: integer;
begin
x := MSCX;
y := MSCY;
If P07_FindObjCustom(x, y, ['Cage', 'age', 'Fishing', 'spot'], [14597535, 14597268, 15123625, 14398100, 15058085], 5) then
begin
GetMousePos(x, y);
Wait(100 + random(125));
ClickMouse2(mouse_right);
Wait(50 + random(175));
P07_ChooseOptionMulti(['Harpoon']);
end;
end;
begin
SetupP07Include;
FishingSpotClick;
end.If I remove the 'Fishing', 'spot' from the UpText, the cursor will move very rapidly between all fishing spots on the screen and then do nothing. With them, it will select the spots and right click them, just not the correct spots.
Could someone tell me if I'm missing something out/doing anything wrong, or is UpText for '07 just not working at the moment?
I haven't added PlayerDeclare yet because I'm just trying to get the spot selection working correctly first.
Thanks very much for any help, I've been reading through tons of tutorials, other scripts for examples and still can't solve it.