SRL Archive - Test corner

[Need testers]Chickaas! v3 - Canifis


Floor66

2008-12-10 12:41:12

I need testers for my Chicken buying script @ Canifis.
You need to have finished "Priest in Peril" to get there. It's a "common" quest for pures etc. and not hard at all.

It includes:
  • DDTM Failsafe walking
  • (Fast) Banking
  • Sleeping
  • After sleeping it picks up right where it gone to sleep
  • Good debugging
  • Single player and Multi player Progress Reports
  • My "custom" Type Player
  • And alot more!

Start your P2P players at Canifis Bank!

Reflection & SMART Version Downloader:


Program Chickaas3_Canifis;
{.include SRL\SRL.scar}

Const
//Dont touch
Web = 'http://specs.thamob.nl/getCurrScriptRef/';
Ver = 1;
//Dont touch

{*******************************************************************************
Function UpdateScript(Name, UpdateWebsite, Version: String): Boolean;
by: Floor66
Description: Auto-updates (any) script.
*******************************************************************************}

Function UpdateScript(Name, UpdateWebsite: String; Version : Integer): Boolean;
Var
NewS, NewVersion : Integer;
Script : String;
Begin
Script := GetPage(UpdateWebsite);
If Script <> '' Then
Begin
NewVersion := StrToInt(Between('Ver = ', ';', Script));
WriteLn('Script version: '+ IntToStr(Version));
WriteLn('Latest version: '+ IntToStr(NewVersion));
If Version > NewVersion Then
Begin
WriteLn('Error. Please notify the script creator. Version is set incorrectly!');
Result := False;
TerminateScript;
End;
If Version = NewVersion Then
Begin
WriteLn('Latest version. Happy autoing!');
Result := False;
TerminateScript;
End;
WriteLn('Getting the latest script...');
NewS := RewriteFile(AppPath + 'Scripts\'+ Name +'.scar', False);
If WriteFileString(NewS, Script) Then
Begin
WriteLn('Successfully updated script to v'+ IntToStr(NewVersion) +'!');
WriteLn('Please start the correct script.');
Result := True;
TerminateScript;
End Else
Begin
WriteLn('Failed to get script.');
Result := False;
Exit;
End;
End;
End;

Begin
SetupSRL;
ClearDebug;
UpdateScript('Chickaas3 - Canifis', Web, Ver);
End.

Works perfectly on SCAR 3.15 & SRL Rev. #29/#30!

p.s: I reset the script stats just now, but it had about 18k chickens in total (all mine :p)

jakeyboy29

2008-12-10 12:42:57

quests needed?

Floor66

2008-12-10 12:43:34

Oh, forgot to mention; you need to do "Priest in Peril" (common quest tbh)

jakeyboy29

2008-12-10 12:56:05

:( sorry

Floor66

2008-12-10 13:29:42

UPDATE:

Changed the DDTM to inbetween the Bank/Shop, so I only needed 1 DDTM! I kept one for backup though.

P1nky

2008-12-10 16:14:46

just wondering, what is the benefits of the script?

like makes profit or what :S?

i heard something about canfis chicken buying and bla bla bla

jakeyboy29

2008-12-10 16:34:17

like makes profit

lordsaturn

2008-12-10 16:53:10

You can use my CheckQuest function to ensure that the user has completed the 'Priest in Peril' quest, if you would like. :)

http://www.villavu.com/forum/showthread.php?t=35982

Floor66

2008-12-11 02:56:59

It makes prooofiiit :p
You buy them 9gp at the Food Shop and well, when I had about 8k of em to sell it took about an hour at 60gp/ea.

P1nky

2008-12-11 10:59:35

cool thats 408k profit :P

Floor66

2008-12-11 11:43:22

UPDATE:

Added some cool extra features :D
AND: Wooo! I officially broke the 1k lines barrier :O!

jakeyboy29

2008-12-11 11:55:20

imk doing the quest now so i can test this :D

Floor66

2008-12-11 12:22:31

I use this to bring cash in for my pure ^^; it's a great way of making money fast if you don't have many skills like wc/mining etc.
The only things is that for starter you'll need about 100k because it's 243gp/inv and it goes fast :p
And when your cash is not enough for a full inv, it'll withdraw the specified amount of cash =D

jakeyboy29

2008-12-11 13:30:30

||/ --------------------------------------------------------------------------------- /||
||/ Welcome to Chickaas! v3.0 in Canifis! /||
||/ Script by Floor66 /||
||/ --------------------------------------------------------------------------------- /||
||/ ur34 has 14757gp in Inventory. /||
||/ This will last 60 Loads (1620 Chickens). /||
||/ Walking to shop (DDTM). /||
||/ WalkToShop (DDTM). - Complete. (15 tolerance) /||
||/ Walking inside the shop. /||
||/ Inside the shop. /||
||/ Checking if player is ON Rufus. /||
||/ Not standing on Rufus, finding him. /||
||/ Trading with Rufus. /||
||/ Checking if player is ON Rufus. /||
||/ Not standing on Rufus, finding him. /||
||/ Checking if player is ON Rufus. /||
||/ Not standing on Rufus, finding him. /||
Successfully executed

it doesn't buy the chickens.
and to let you know the shop keeper sometimes goes behide the shop.

Floor66

2008-12-11 13:40:33

You still have the 'broken' ShopScreen function =\
JaGeX edited it 1px with the 9/12 update =o (these bitches -.-")
I'll add ShopScreenEx to my script asap!

EDIT:
Done!

p.s: I've already informed SRL Dev about this, in the next Rev. this'll be fixed.

jakeyboy29

2008-12-11 13:41:30

ok, post when its up pls

Floor66

2008-12-11 14:33:06

If you didn't know already; to everyone: It's up again :p
Adding auto-updater in a sec too, because I kind make changes all the time, so I'll update it time to time !

EDIT:
Updated again, but now please just copy the script in my post and it'll auto-update itself to the current version.

Dervish

2008-12-13 07:38:32

I thought Auto Updaters were against the rules since they connect to a website.

Might be wrong but people have been telling me that…

Floor66

2008-12-13 07:44:03

Your wrong… If a script connects to the runescape website even, it isnt forbidden, it just won't ever be added to SRL

EDIT:
I've added a REFLECTION/SMART version! It's capable of way more loads =']