SRL Archive - First Scripts

First Runescape Related Script


Death12652

2010-06-14 20:53:29

Deaths Item Pricer!!!


Thought this would be a cool little script that might be useful. Didn't take that long to make but I thought it might be handy to have. Please rate.

mrpickle

2010-06-14 21:23:31

First script?

Your standards are beautiful! However, it feels as if your code could be shortened, alot of repetative getpage related commands.

Notes:
1. How about just showing all the the items + their current price instead of typing in one by one. I'm sure some large chart would be more appreciated due to its ease :)

2. I dont see a poll :p

Death12652

2010-06-14 21:31:22

Oh yeah the poll is closed. I think? anyway I was going to change it to something like that instead. But I was to lazy so I just copy pasted lol.

bugger0001

2010-06-16 17:36:22

Using loops and arrays could shorten your code a bit. What I mean is you could have:
1)An array of integers to store the IDs* of the items;
2)an array of strings to store the names of the items;
3)an array of integers to store the prices of each item.

Then to get all the arrays filled do a for loop that goes through all the IDs and stores prices to the third array. You can have it outputting the text in that same loop or create another one where you go through IDs again and then output the equivalent values from names array and prices array.

*By ID i meant the bolded number:
http://services.runescape.com/m=itemdb_rs/Shrimps/viewitem.ws?obj=315

Death12652

2010-06-16 18:06:22

yeah i know what you mean. I was going to use arrays. In 1.1 I will. And the URL is different if you didn't see. It says Willow_log/blah.ws?=30294832084093280948

that is why I havent done ID's yet.