SRL Archive - First Scripts

Runescape Woodcutting Calculator


Grumps

2012-02-19 12:31:46

Runescape Woodcutting Calculator


Hello people, this is my first script. Its not a bot script but more of a tool for you. This is a very basic Runescape woodcutting calculator. It is simple and easy to use if you read the instructions. I know you can go on the web and find one however if you ever need one at hand, or just simple want to review please download. I would like to thank Coh3n for his awsome Tutorial in Simba which helped write this.

program Runescape_Woodcutting_Calculator;

// Instructions
// 1) Insert your players Woodcutting XP amount in the XP :=.... ; Section ( Line 23)
// 2) Your desired amount of XP in the XP_WANTED := ... ; Section (Line 24 )
// 3) Run The Script!
// Do not change anything else expect where told too!


var
LOGS : Extended;
TYPE_OF_TREE : String;
XP : Integer;
XP_WANTED : Integer;
TREE_XP : Integer;
XP_NEEDED : Integer;


procedure Calculator;

begin
XP := 25000 //Type in the amount of Xp you have
XP_WANTED := 100000 ; //Type in the amount of Xp you need for your target
XP_NEEDED := XP_WANTED-XP;

TYPE_OF_TREE:= 'Magic';
LOGS := XP_NEEDED/250

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Magic Trees! ');

TYPE_OF_TREE:= 'Normal'
LOGS := XP_NEEDED/25

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Normal Trees! ');

TYPE_OF_TREE:= 'Oak'
LOGS := XP_NEEDED/37.5

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Oak Trees! ');

TYPE_OF_TREE:= 'Willow'
LOGS := XP_NEEDED/67.5

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Willow Trees! ');

TYPE_OF_TREE:= 'Maple'
LOGS := XP_NEEDED/100

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Maple Trees! ');

TYPE_OF_TREE:= 'Yew'
LOGS := XP_NEEDED/175

Writeln('You need to cut ' + FloatToStr(LOGS) + ' Yew Trees! ');
Writeln(' ')
Writeln('Thank you for using Grumps Runescape Woodcutting Calculator!!!! ')
Writeln(' ')

end;


begin
ClearDebug;
Calculator;

end.

Thanks :sasmokin:

tehq

2012-02-19 12:46:31

Looks great! Have you considered rounding the # of trees?

Grumps

2012-02-19 13:26:54

What do you mean?

tehq

2012-02-19 13:38:20

Say you need to cut 315.111111.. logs. You could just round it to 315. Also maybe you could do something with the xp for levels too? Just throwing ideas out there :p

Grumps

2012-02-19 13:40:15

I could do , I would need to know how to work out how much xp goes for each level. That would be quite hard. Will see what I can do ;)

I dont know, how to round it , can you tell me?

tehq

2012-02-19 14:03:10

Here's a nifty little equation to help you

Experience Required

where L = current skill level

Runaway

2012-02-19 14:11:47

From: Grumps
I could do , I would need to know how to work out how much xp goes for each level. That would be quite hard. Will see what I can do ;)

I dont know, how to round it , can you tell me?


Round() is what you're looking for ;)

weequ

2012-02-19 14:19:42

From: Runaway
Round() is what you're looking for ;)
Ceil() I think because if you need to cut 315.111111 logs for next level then you would have to cut 316 not 315.

Grumps

2012-02-20 02:11:41

Thanks, I will see to improve it