SRL Archive - SRL Bugs

[Fix]RuneAmount


masterBB

2011-06-10 11:24:23

It loads the with bitmaps.scar, but uses a normal FreeBitmap procedure. Replaced with srl_FreeBitmapEx.

{*******************************************************************************
function RuneAmount(area, runetype: String): Integer;
By: masquerader and modified by Ron and ZephyrsFury
Description: Returns the amount of a certain rune in the specified area.
*******************************************************************************}
function RuneAmount(Area, RuneType: string): Integer;
var
RuneBmp, II: Integer;
RuneNames: TStringArray;
begin
RuneNames := ['air', 'mind', 'water', 'fire', 'earth', 'law', 'nature', 'chaos', 'death', 'body', 'cosmic', 'soul', 'blood'];
if (InStrArrEx(Lowercase(RuneType), RuneNames, II)) then
begin
srl_GetBitmap(18 + II);
Result := ItemAmount(Area, 'bmp', srl_Bitmaps[18+II], [20]);
srl_FreeBitmapEx(18+II);
end else
srl_Warn('RuneAmount', 'Invalid RuneType: ''' + RuneType + '''', warn_AllVersions);
end;

edit: The rune bitmaps also seems to be outdated, is this function even used?

Shuttleu

2011-06-10 12:32:10

to be honest, most people dont use colour much anymore :crying:

~shut

masterBB

2011-06-10 12:44:39

Should I update the bitmaps of the runes, or isn't there much animo?

Also, should I try to update SRL? Fix some broken functions(there are many), cause I think its a shame.

Shuttleu

2011-06-10 12:47:24

sure go ahead, im sure the devs would be very thankful

~shut

Tlachtli

2011-06-10 13:18:39

From: Shuttleu
to be honest, most people dont use colour much anymore :crying:

~shut


I was under the impression that you still need a good color-only script to become an SRL Member?

I plan to rework my Earth crafter to be color-only, so this would probably be useful; however it's nothing I couldn't just put into my script myself.

masterBB

2011-06-10 13:27:27

Earth rune bmp is still working. I'm going to fix this part of the include(amount,bitmaps).

Most rune bitmaps are renewed: They are now all for 100% working. I also added the astral rune bitmap.

Could I get svn permission to edit bitmaps.scar. To fix broken bitmaps more efficient? I would like to check all 110 and maybe add a few.

Sabzi

2011-06-10 15:48:54

From: Tlachtli
I was under the impression that you still need a good color-only script to become an SRL Member?


Yeah, I was under that impression too.
If you want to become a member try it now all I can say …

masterBB

2011-06-10 19:31:01

Is there anyone that can think of a use for this file, if no one wants it. Than I will only update the most necessarily ones.

KingKong

2011-11-03 05:00:49

Bumping this, as runeamount still doesn't work.

masterBB

2011-11-03 07:44:16

Nobody wants this to be fixed.

NCDS

2011-11-03 08:06:39

I'll commit this after work. Thanks masterBB.

masterBB

2011-11-03 08:19:23

The updated bitmaps of the runes can be found here:

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

NCDS

2011-11-03 21:45:20

Committed. Thanks masterBB!