SRL Archive - RS Scripts

Combat Level Calculator


The_Scripts

2010-01-14 16:25:39

Combat Level Calculator
By: The_Scripts


Instructions
-> Run script
-> Fill in form - Click on the stat you would like to change

Features
-> Rather sexy gui
-> Hiscores stat retrieval
-> Shows how many levels you can get without leveling

Bugs - Please report any bugs you find
-> Rendering issues on: Windows 7 64-bit, Ubuntu 9.10

Version History

[B]Version 1.1[/B]
-> Modified hiscores stat retrieval algorithm
[B]Version 1.0[/B] - 13 views
-> Initial release

Wanted

2010-01-14 16:32:12

Very nice!

Rep +!

Frement

2010-01-14 16:34:25

Looked nice, worked good. Good job :)

Wanted

2010-01-14 16:37:48

Only thing I can think of is using statchars from SCAR's font folder.

The_Scripts

2010-01-14 16:42:26

@IceFire908: I was actually thinking about doing that, but it seemed to be more trouble
then its worth. I could not think of a simple way to convert the bitmaps into a font.

Shuttleu

2010-01-14 17:19:51

next thing to add, make it so it tells you what you need to get up to get to the next combat level
or set your own combat level and it will tell you what you need to improve

but all in all very nice well done

~shut

The_Scripts

2010-01-14 17:57:08

@Shuttleu:
- The lower numbers show the max level you can get in the skill without leveling. To
level you will need to get one level higher then what it shows. So in a way it does show
you what you need to get in order to level up.
- Settings your own combat level and having the script figure out what levels you
should get to reach that combat level would be neat. But it would be hard to implement
since one person might want to keep there skills evenly leveled, and another might want
to focus on only a few skills.

WT-Fakawi

2010-01-15 03:35:26

Allthough I haven't actually run this script, it is very neatly organised. Well done!

YoHoJo

2010-01-15 03:44:17

Running on windows 7, 64bit, when I press play the GUI is just a gray box with a black outline. :p. Ill run on main comp later, but great code!

NCDS

2010-01-15 03:52:59

From: YoHoJo
Running on windows 7, 64bit, when I press play the GUI is just a gray box with a black outline. :p. Ill run on main comp later, but great code!


Same on Ubuntu 9.10

The_Scripts

2010-01-15 09:46:47

@WT-Fakawi: Thank you! Compliments mean more coming from the SRL Leader :)

@YoHoJo, NCDS: Unfortunately I do not have any computer running either of those
operating systems. I have only been able to test on XP and Vista, and it works fine on
those. Is there a title bar or is it literally just a gray box with a black outline?

Nava2

2010-01-15 09:58:04

From: The_Scripts
@WT-Fakawi: Thank you! Compliments mean more coming from the SRL Leader :)

@YoHoJo, NCDS: Unfortunately I do not have any computer running either of those
operating systems. I have only been able to test on XP and Vista, and it works fine on
those. Is there a title bar or is it literally just a gray box with a black outline?


Literally a grey box with a black outline! :)

Its really well organized though, great job.

The_Scripts

2010-01-15 10:03:17

@Nava2: Thank you! I like to keep my code on the neat side. I rewrote the script four
times before I was satisfied with the way it all looked.

Hmm… Perhaps those operating systems do not support the border style?
Could someone comment out line 502 {BorderStyle := bsToolWindow;} and tell me if
that fixes the problem?

Daniel

2010-01-16 20:25:17

Excellent work. I like how it shows the required level of a particular skill is required to advance a combat level, however, I noticed that it was always one off. So, I just changed line 406 from:

TIA[I] := StrToInt(Labels[1][I].Caption);
to:

TIA[I] := StrToInt(Labels[1][I].Caption) + 1;

:)

Also, works for me on Windows 7 Ultimate 32-bit ;)

The_Scripts

2010-01-16 23:01:39

@Dan's The Man: The lower number was always meant to show the max level you can get
without raising your combat level. Thank you for letting me know that the script
works on Windows 7 32-bit. It would appear that the rendering bug only happens on 64-bit
systems.