SRL Archive - News and General

Modifying Power Chopper? help!


bricks

2012-01-07 00:51:38

I have Pink's Power Chopper and I was wondering if anyone had the code needed in order to bank the logs at specific banks.

Or how to add a new tree like a yew?

cause

2012-01-07 00:58:27

Procedure Bank;
begin
if ObjDTMWalk('631:91:4:1:7:595:89:1:7:595:73:1:7:603:50:1:7:580:77', 0, 100, 80, True)
then
begin
wait(500 + random(250));
WriteLn('made it to bank, banking...');
if OpenBank('feb', false, false)
then
begin
WriteLn('opened bank');
if DepositAll then
begin
WriteLn('deposited all');
CloseBank;
//RestUntil(RandomRange(90,100));
RestUp;
SetRun(true);
end
end
else
begin
WriteLn('Couldn''t bank');
Terminator; //Instead of TerminateScript, this is another procedure i have which
end //frees my DTM's
end
else WriteLn('didn''t make it to the bank');
end;

That's my fairly nooby banking procedure :P, works pretty good though.

bricks

2012-01-07 17:59:37

Thank you, so where do i add that in the code i already have?
And do i have to specify a bank?

cause

2012-01-07 22:00:25

if you look in bank.simba in includes/srl/core, you can see the banking functions there, to change banks you use:
OpenBank('feb', false, false)
with the 'feb' being Falador East Bank. As I mentioned you can check which banks are supported in the simba file. How I learned how to implement that was by looking through other people's scripts. Also, if you were going to copy + paste my code, you probably need to remove:
if ObjDTMWalk('631:91:4:1:7:595:89:1:7:595:73:1:7:603:50:1:7:580:77', 0, 100, 80, True)
then
begin
and an "end" (not end; ) at the bottom. That is just an objectDTM I used to make sure I was in the correct bank location as SPS isn't accurate enough to count on 100% of the time (but it is still good for probably 99%)

PatDuffy

2012-01-07 22:09:54

From: bricks

Or how to add a new tree like a yew?


Why would you Power-Chop a yew? :p

P1nky

2012-01-07 22:13:59

From: PatDuffy
Why would you Power-Chop a yew? :p


That is what I said when couple people had requested that, and that is the only reason I haven't added it to the script, it be way too slow and just not worth chopping and than just drop it all lols, and Banking procedure… hmmm what type of Logs do you want banked and where Mate, I can see what I can do.

Also, atm im working on a Chop & Burn Script, that's why no updates on the current PowerChopper.

bricks

2012-01-08 00:21:18

I'm just saying, banking the logs..especially yews would be helpfull. And also quicker if the bank is close by, takes longer to drop every log :o.

Also on Narc's fast fighter, how do I make the character pick up the gold after he kill the monster?
And how would I make him pick up the bone and then bury it and then continue fighting :o????