SRL Archive - RS3 Help

Help with gathering data.


Ecer

2014-12-01 13:24:10

Hi all!

I've made a basic script and I would want to know how I would collect data on an item that stacks. Is there a way to see the change of 1 item in a back pack or do I have to do something with DTMs?

I just want to find the most effect method. Base on this, I can calculate the hourly item and xp rates.

Cheers, Ecer.

Ross

2014-12-01 13:35:43

From: Ecer
Hi all!

I've made a basic script and I would want to know how I would collect data on an item that stacks. Is there a way to see the change of 1 item in a back pack or do I have to do something with DTMs?

I just want to find the most effect method. Base on this, I can calculate the hourly item and xp rates.

Cheers, Ecer.


http://docs.villavu.com/srl-6/backpack.html

tabBackpack.waitForShift() might be what you're looking for.

Lipcot

2014-12-01 13:36:41

From: Ecer
Hi all!

I've made a basic script and I would want to know how I would collect data on an item that stacks. Is there a way to see the change of 1 item in a back pack or do I have to do something with DTMs?

I just want to find the most effect method. Base on this, I can calculate the hourly item and xp rates.

Cheers, Ecer.


Variable := getItemAmount(tabBackpack.getSlotBox(1));

i guess this is what you are looking for? it will tell you how much you have off the item in slot1

Ecer

2014-12-01 13:38:06

From: Ross
http://docs.villavu.com/srl-6/backpack.html

tabBackpack.waitForShift() might be what you're looking for.


Awesome! Thanks for your prompt reply.

I will test methods and see what is suitable for me.

Cheers! I will post the script up once I finalise it for fail safes too.

Ecer

2014-12-01 13:39:26

From: undorak7
Variable := getItemAmount(tabBackpack.getSlotBox(1));

i guess this is what you are looking for? it will tell you how much you have off the item in slot1


Oh awesome! Thank you too for your quick reply! I'm having loads of fun scripting hehe. Even though it was frustrating at times.

Lipcot

2014-12-01 14:07:28

From: Ecer
Oh awesome! Thank you too for your quick reply! I'm having loads of fun scripting hehe. Even though it was frustrating at times.


no problem, it does get frustrating at times, but we're here for you! if you have any other question just ask :)

Incurable

2014-12-02 10:25:54

From: Ecer
Oh awesome! Thank you too for your quick reply! I'm having loads of fun scripting hehe. Even though it was frustrating at times.


The frustration is what makes it so satisfying when you manage to write a working script. :D

Ecer

2014-12-02 14:43:34

From: Incurable
The frustration is what makes it so satisfying when you manage to write a working script. :D


Haha yeah, its like when it doesn't work and ill spend too much time scratching my head to figure out i left a ';' or the script not doing what I intended. I see it as a learning experience anyway. :D

King

2014-12-02 15:06:09

Honestly those are probably the best way to do it, what item are you looking to see? It really does depend the item and how the item is changing.

Ecer

2014-12-02 15:59:06

From: King
Honestly those are probably the best way to do it, what item are you looking to see? It really does depend the item and how the item is changing.


Oh no, I got it working. It's harmonic dust and I've got the itemshift and backpackshifts working fine. Script is messy but I got it working as intended.

I just have to add more code to improve my knowledge and script even further. SPF, breaks, SPS if fails, DTMs if VOS active. Never done them before so I will have to read more tutorials before I ask for any more help.


I do have a minor issue with calculating data (item/xp) per hour, but I'm sure I will figure it out. Probably not rounding it off since code doesn't seem to like integers with decimals. Not at home, so can't play with it unfortunately. :(

tl;dr: Item shifts working, still working on first script for improvements.

King

2014-12-03 13:35:18

From: Ecer
Oh no, I got it working. It's harmonic dust and I've got the itemshift and backpackshifts working fine. Script is messy but I got it working as intended.

I just have to add more code to improve my knowledge and script even further. SPF, breaks, SPS if fails, DTMs if VOS active. Never done them before so I will have to read more tutorials before I ask for any more help.


I do have a minor issue with calculating data (item/xp) per hour, but I'm sure I will figure it out. Probably not rounding it off since code doesn't seem to like integers with decimals. Not at home, so can't play with it unfortunately. :(

tl;dr: Item shifts working, still working on first script for improvements.


Glad to hear you got it working, feel free to ask any questions!