PDA

View Full Version : [07] Troll Cow Troller



wthomas
02-28-2013, 12:56 AM
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,17 0,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
02-28-2013, 02:23 AM
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

helppp

ajg0001991
02-28-2013, 03:41 AM
err i dont know eat food maybe lol gratz on release

BGXD
02-28-2013, 03:42 AM
more errors and errors!

wthomas
02-28-2013, 11:52 AM
@iautoi your error is caused by smart errors. All the other errors are part of the anti leach.

jsorr2
02-28-2013, 02:25 PM
[Error] D:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(7 8:8): Unknown identifier 'RSReady' at line 77
wutt?

xtrapsp
02-28-2013, 02:36 PM
Your standards are slightly off, at work so I haven't tried it but good job on the release

p3tr1k0v
02-28-2013, 03:30 PM
What does it do?

Im fkn rare
03-02-2013, 01:20 AM
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
04-07-2013, 04:57 PM
Anti-Leech is no longer allowed.

Hoodz
04-07-2013, 05:03 PM
Anti-Leech is no longer allowed.

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

Atomsk
04-19-2013, 03:07 AM
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
04-19-2013, 03:50 AM
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
07-18-2013, 11:08 PM
nice

foofer1
07-21-2013, 09:20 PM
[Error] (26:1): Unknown identifier 'Tesult' at line 25
Compiling failed.


help me please i dont understand :[

tealc
07-21-2013, 09:36 PM
[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
07-21-2013, 11:59 PM
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
07-22-2013, 02:03 AM
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
07-22-2013, 02:09 AM
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.