Log in

View Full Version : TPA issues



StickToTheScript
04-03-2012, 02:33 AM
I am currently trying to learn how to use TPA's and i also want to include them in my scripts.

So i've used a few TUT's and i still cant seem to get it to work.

I am willing to share the script with those who are able to help.

Please let me know if you can help at all.

Oh, and nice attempt for all of those people who tried to steal my password....

Thanks,

StickToTheScript

Awkwardsaw
04-03-2012, 02:40 AM
just post the script here so we can all help. also actually saying what the problem is would be awesome :p

StickToTheScript
04-03-2012, 02:57 AM
Well, i tried making it use TPA's but there seems to be a problem when trying to compile, it states:

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] (278:9): Invalid number of parameters at line 277
Compiling failed.

And there isn't even 1352 lines!!!!!

Also, if you want to see the entire script, its attached above.

eska
04-03-2012, 03:01 AM
Your function ChopTree require you to put 2 integer in it. Also it was missing a semicolon.
This compiles:

var
x, y: integer;
begin
ClearDebug;
SetUpSRL;
ActivateClient;
DeclarePlayers;
CheckSRLStats;
LoginPlayer;
Proggy;
Writeln('Your using Draynor Willow Destroyer V1.6');
Writeln('Please report any bugs on the thread.');
Writeln('Thanks!');
repeat
ChopTree(x, y);
WalkToBank;
Bank;
Proggy;
DepositBank;
WalkToTree;
Until (AllPlayersInactive);
end.



Also, this is only a warning:

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352

It's related to SRL, I'm not sure you can do something about it. I think it's harmless, I'm getting it in my scripts too.

Valithor
04-03-2012, 03:06 AM
It's pretty simple...
Your "ChopTree" function needs two parameters 'X' and 'Y'. So in your main loop you need to include those parameters. It would look something like this...

Choptree(x, y);

I really didn't look at your code a whole lot more than that, but I know that is your issue. Try playing around with it now that you know what the problem is.

Hoped that helped.

E: That [Hint] message you are getting is related to SRL; don't worry about it - it don't hurt anything.

E2: Ninja'd :ninja:

StickToTheScript
04-03-2012, 03:10 AM
Sweet, now, when it logs in, i have an issue with it trying to click on trees. If you test it out, it might help to know what im talking about... Do u have any ideas on how to help me?

Thanks,

StickToTheScript

Valithor
04-03-2012, 04:02 AM
Yea buddy, I'll take a look at it...
Not sure how much help I will be - TPA's are still kind of elusive for me.

StickToTheScript
04-03-2012, 04:08 AM
alrighty... but let me know how u go. Im going to try to fix it to...

Valithor
04-03-2012, 04:22 AM
Check your PM