SRL Archive - OSR Outdated / Broken Scripts

[07] Troll Cow Troller


wthomas

2013-02-27 19:56:40

This script trolls cows anywhere just start the script up next to cows :)

NB: there is super awesome hidden ANTI_LEACH, yes the script will basically run as it is. but with changes to less than 8 lines of code the script will run for 5+hours. Hope you enjoy.


program TrollFighter;
{$DEFINE SMART8}
{$i Srl/Srl.simba}

{$I P07Include.Simba}

var
foodSlot,x,y:integer;

Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='';
P07_PlayerPass:='';
End;

Function getHp:double;
Var
green,red:TpointArray;
x,y:Integer;

Begin
FindColorsTolerance(green,65280,240,70,275,170,0);
FindColorsTolerance(red,255,240,70,275,170,0);
If (length(red)>0) And (length(green)>0) Then
Tesult:=100*length(green)/(length(green)+length(red))
Else Result:=100;
//writeln(result);
End;


Function inCombat:Boolean;
Var x,y:integer;
Begin
Result:=findColorTolerance(x,y,65280,240,70,275,170,5);
End;

Procedure eatFood;
Var i:integer;
Begin
Repeat
Inc(foodslot);
Writeln('trying to eat foods troll style');
Wait(300);
Until P07_UseInvItem(foodslot,'Eat') Or (foodslot>28);
//NB this procedure ^^ is an easily modified version of P07_UseInvItem()
end;

procedure fightcow;
var x,y:integer;
begin
If P07_FindObjCustom(x, y, ['Attack', 'Cow,Monkey'], [4343892,4740971,5397094], 5) Then
Begin
// wait(50);
ClickMouse2(MOUSE_LEFT);
Writeln('waiting for hp bar');
WaitFunc(@incombat ,50,2000)
Writeln('waiting for hp bar to-go, we''re fighting now');
Repeat
If getHP<20 Then eatFood;
Wait(200);
Until NOT inCombat;
end;
end;

begin
SRL_SixHourFix := True;
SMART_FixSpeed := True;

foodSlot:=0;
SetUpSRL;
P07_DeclarePlayer;
SetupP07Include;
//P07_LoginPlayer;

Writeln('starting script');
P07_MakeCameraAngleHigh;

Repeat
fightCow;
//mysteryfunctionwashere?iwonderwhatitdid.
Wait(1000000);
until false;
end.


Um, also I'll probably release an actual non troll version of this in a few days, probably adding the other half of the code that handles more monsters, stops it attacking other peoples monsters etc oh and also the combat random detection+avoidance. stay tuned.

iautoi

2013-02-27 21:23:08

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

helppp

ajg0001991

2013-02-27 22:41:05

err i dont know eat food maybe lol gratz on release

BGXD

2013-02-27 22:42:52

more errors and errors!

wthomas

2013-02-28 06:52:48

@iautoi your error is caused by smart errors. All the other errors are part of the anti leach.

jsorr2

2013-02-28 09:25:23

[Error] D:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(78:8): Unknown identifier 'RSReady' at line 77
wutt?

xtrapsp

2013-02-28 09:36:38

Your standards are slightly off, at work so I haven't tried it but good job on the release

p3tr1k0v

2013-02-28 10:30:17

What does it do?

Im fkn rare

2013-03-01 20:20:11

I'm getting the "Unkown identifier 'RSReady' at line 77" error. Can't figure out what this is, as it's a SmartParams error.

Fade Out

2013-04-07 12:57:31

Anti-Leech is no longer allowed.

Hoodz

2013-04-07 13:03:16

From: Fade Out
Anti-Leech is no longer allowed.


No he said it is a hidden bonus :) and it is REALLY EASY to fix it

Atomsk

2013-04-18 23:07:46

From: hoodz
No he said it is a hidden bonus :) and it is REALLY EASY to fix it


i'm not quite new but my account is…you're correct when you say its an easy fix hahaha

Kevin

2013-04-18 23:50:52

From: wthomas
This script trolls cows anywhere just start the script up next to cows :)

NB: there is super awesome hidden ANTI_LEACH, yes the script will basically run as it is. but with changes to less than 8 lines of code the script will run for 5+hours. Hope you enjoy.


A)I honestly expected the… bonus script edit to involve using CTRL+F on "ANTI_LEACH". Slightly disappointed it doesn't :p
2)I like your cow monkey.
III)I hate lists.

Good luck un-trolling this up lol :p

mortician

2013-07-18 19:08:25

nice

foofer1

2013-07-21 17:20:38

[Error] (26:1): Unknown identifier 'Tesult' at line 25
Compiling failed.


help me please i dont understand :[

tealc

2013-07-21 17:36:51

From: foofer1
[Error] (26:1): Unknown identifier 'Tesult' at line 25
Compiling failed.


help me please i dont understand :[


It looks like that error is the 'Result' of a misspelling

foofer1

2013-07-21 19:59:23

From: tealc
It looks like that error is the 'Result' of a misspelling



whats about this? //NB this procedure ^^ is an easily modified version of P07_UseInvItem()


[Error] (45:9): Unknown identifier 'P07_UseInvItem' at line 44
Compiling failed.

Ashaman88

2013-07-21 22:03:22

I'm on my phone, but it sounds like this still has anti leach? Can anyone confirm? If so ill move it when I get to comp.

rj

2013-07-21 22:09:09

From: Ashaman88
I'm on my phone, but it sounds like this still has anti leach? Can anyone confirm? If so ill move it when I get to comp.


I can confirm.