Yodix
2012-01-31 14:56:24
I'm working on a powerfisher, but I can't get the script to compile. There seems to be something wrong at line 93. The script is not finished yet, but I can't proceed before the dropping procedure is finished. Please tell me what I'm doing wrong, and if you have any suggestions please tell me! :)
MouseItem(FishPattern,false); to MouseItem(FishPattern, MOUSE_RIGHT);
NickMystre
2012-01-31 15:01:37
MouseItem (line 93) takes two integers as arguments. Your second one is a boolean - which needs to be changed.
Also, function Lurefish should return a boolean, but nowhere in that function do you set 'Result' to either 'true' or false' which is what it needs.
Yodix
2012-01-31 15:17:09
Thanks Guys! But for some reason it won't drop the fishes once it has a full inventory. Do you know why?
NickMystre
2012-01-31 15:21:31
What does it do, does it not do ? Details, please !
EDIT: You have the procedure DropFish, but it's never called.
Yodix
2012-01-31 16:43:15
I updated it, and put DropFish; in the main loop, but once it has fished a full inventory, it doesn't do anything and it highlights line 90 and says:
Error: Out Of Range at line 90
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap].
What I want it to do is find the fishing spot, click on it, and once it gets a full inventory it should drop the fishes.
Spiker
2012-02-01 00:46:37
From: Yodix
I updated it, and put DropFish; in the main loop, but once it has fished a full inventory, it doesn't do anything and it highlights line 90 and says:
Error: Out Of Range at line 90
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap].
What I want it to do is find the fishing spot, click on it, and once it gets a full inventory it should drop the fishes.
I don't see where you added DropFish; Make sure you included the updated script after saving it.
Good Luck
Yodix
2012-02-02 11:24:07
Here's the updated version, sorry about that :)
Nataurs
2012-02-02 13:22:38
@ line 90 add a semicolon( ; ) at the end of the TIntegerArray
Yodix
2012-02-03 10:19:04
There is one at the end of line 90, is that the one you mean or should it be placed elsewhere?
lilcmp1
2012-02-04 10:58:31
Your last txt file compiled for me. Are you still getting errors?
Yodix
2012-02-07 18:45:31
It compiles, but it won't drop the fishes once it has a full inventory :(