SRL Archive - SRL Archives

function FindBrokenAxe;


Secet

2007-03-17 16:42:20

{*******************************************************************************
function FindBrokenAxe: Boolean;
By: Secet
Description: Looks inventory for broken axe. Results true if found.
*******************************************************************************}
function FindBrokenAxe: Boolean;
var Broken,x,y: integer;
begin
Broken := DTMFromString('78DA6364676060606540011EF1990CFF81342' +
'310FF07024636208399010D302291409A9B48356C04D470020976' +
'22CCE126C21C1E026A40F670115003722F070135CC44AA6125A08' +
'695701802003CA406D8');
GameTab(4);
if (FindDTM(Broken,x,y,553,204,744,463)) then
begin
WriteLn('Ent broke our axe =(');
Result := True;
end else
FreeDTM(Broken);
end;

I was surprised how there wasn't function for this in SRL, so here I made one.

bullzeye95

2007-03-17 16:43:59

Don't do
end else
FreeDTM(Broken);
Do
end;
FreeDTM(Broken);
So that it frees it anyway.

Sumilion

2007-03-17 17:03:56

the entire WC.scar is pretty much screwed :)

JuKKa

2007-03-17 19:10:39

u should also make it search for woodcutting handles if it finds then it will return true ..

if u do then i WILL use this in my woodcutting script im currently making which will rock!

Bobarkinator

2007-03-18 14:37:31

Whew I need one of these. I was going to make one but you beat me to it so that's less work for me. Thanks

Secet

2007-03-18 16:01:41

From: JuKKa
u should also make it search for woodcutting handles if it finds then it will return true ..

if u do then i WILL use this in my woodcutting script im currently making which will rock!


Just use FindHead made by Starblaster100

JuKKa

2007-03-31 08:57:10

im gonna add this to my yew cutter ill credit u ofc :)

Wizzup?

2007-03-31 11:24:51

From: Sumilion
the entire WC.scar is pretty much screwed :)


Well.. you are the dev, rewrite it…

Dark_Sniper

2007-03-31 23:20:54

haha you got told sum :p

i expect it done in less than a week sum :p

Just messin wit ya.


but the firmakin skill is kinda limited…

so work there to sum XD

anmd it dont matter if he rewrite it anyway.. you guys arent going to release a new SRL version for 3 more years XD!

Sumilion

2007-04-01 05:51:34

From: Dark_Sniper
haha you got told sum :p

i expect it done in less than a week sum :p

Just messin wit ya.


but the firmakin skill is kinda limited…

so work there to sum XD

anmd it dont matter if he rewrite it anyway.. you guys arent going to release a new SRL version for 3 more years XD!


-.-

But without the kidding, i might rewrite WC.scar once i get the axe head finding function to work properly.