SRL Archive - Help

Calculating profits and stuff


asap1

2012-02-27 03:49:54

I have not found a tut on how to calculate profits and other things. I would like to learn this and if someont could point me to a tut or tell me that would be nice

sm321

2012-02-27 04:19:25

You do sell price - buy price. So if you payed $1 for something, and sold it for $1.50, you would do sell price, which is $1.50, take away the buy price, which is $1. So you have $1.50 - $1 = $0.50 profit. If you were doing this on a spreadsheet, if you had buy price in cell C2, and sell price in C4, you would put =C4-C2 ($1.50 - $1) = $0.50. If you have MSN, PM me if you want, and I can help you out more.

JuKKa

2012-02-27 04:42:27

omg.. u cannot do basic math???!!!

asap1

2012-02-27 07:37:07

From: JuKKa
omg.. u cannot do basic math???!!!


LOL i can do basic match but dont know how to script it

Shatterhand

2012-02-27 10:40:19

online.simba

(*

GetGEPrice
~~~~~~~~~~

.. code-block:: pascal
function GetGEPrice(v: variant): Integer;

Collects first results from the passed argument using `GetGEItems`. It is
suggested to use IDs for this function due to it only returning one option.

.. note::
by: Nava2

Example:

.. code-block:: pascal
WriteLn(GetGEPrice('rune plate')); // by name!
WriteLn(GetGEPrice(379)); //lobster, by ID!

*)

asap1

2012-02-27 11:23:26

how do you find the id number of items?

masterBB

2012-02-27 11:39:15

http://www.runelocus.com/itemlist.html

It was the first hit google btw with the following search terms: runescape id item list

last edit:
http://services.runescape.com/m=itemdb_rs/results.ws

Than just hover the items facebook link, it ends on the items id.

Shatterhand

2012-02-27 12:03:28

From: asap1
how do you find the id number of items?

You dont need IDs, you can do it by names:
WriteLn(GetGEPrice('rune plate')); // by name!

Hero

2012-02-27 15:02:21

Yes you can use names but as the description says it would be preferred to use the IDs to limit the results that you would get back. If you searched 'boots' you would get pages of boots.

Shatterhand

2012-02-27 15:35:07

From: Hero
Yes you can use names but as the description says it would be preferred to use the IDs to limit the results that you would get back. If you searched 'boots' you would get pages of boots.

Not that hard to put in exact name. 'Rune boots' or 'Dragon boots'…..

asap1

2012-02-27 15:45:05

thats you guys i have found out how to do it and im now looking for someone to make a paint for my script

masterBB

2012-02-27 18:13:05

From: hunt3rx3
Not that hard to put in exact name. 'Rune boots' or 'Dragon boots'…..


But you still got a noted and unnoted version of each item. And there are loads of items with the same name. Always use item ids.