SRL Archive - OSR Help

grandexchange.simba


Wardancer

2012-09-06 10:28:12

I found this extremely promising and I'm starting to wonder if I'm doing something wrong or the functions simply aren't up to date anymore. I can get the GEBuyAt function to work flawlessly, but I'm having issues with pretty much everything else. For example, when I try to use to GEBuy function, it goes all the way to opening a buy menu but then it exits.

I found myself rewriting some functions entirely to do what I need (which was extremely interesting and educating in its own way), but I'd like to know if I can get it to work before I entirely rewrite it =).

Note: I also tried the grandexchange.simba posted by ProphesyOfWolf and Kyle Undefined, to no avail.

Thank you for your time.

riwu

2012-09-06 10:34:47

it was made by rasta many months ago so i won't be surprised if it doesn't work anymore. You will probably have to edit quite alot of it urself if you want to get it to work.

P1ng

2012-09-06 10:47:22

I am finding InGE to be quite temperamental at the moment, will test all the other functions out and see if I can see what changes need to be made to the include so that it works more efficiently. But at present I would say that, yes, you will probably need to edit those functions so that they work appropriately for you.

Wardancer

2012-09-06 11:05:24

Thank you for the quick replies.

I was planning to (eventually) change all the waiting times to rely on colour (I'll see how well WaitColorGone works as that's the only option I can think of for some cases), so this will be a nice opportunity to do so. For object finding, I'm using TPA whenever possible, but I'm wondering if there is a way to add this in a SRL include file usable by everyone without writing down the whole TPA function every single time. In other words, I wonder if global variables put in the include would work the same way on the main script and what's your opinion on this (aka excessively dumb as it might come into conflict with the main script's variables as well as confusing by itself or worth the saved space and safe by using weird name variables (ex: iehjghd). Finally, this will be a nice opportunity for me to play around with DTMs instead of coordinates.

I'll come back in a few days with my edited functions (busy life) for your pleasure and critics.

P1ng

2012-09-06 11:09:09

I recommend you have a look at using WaitFunc and WaitFuncEx once you get all of the colours and checks correct. Also, yes - it is possible to put this into an include for both personal and public use. For it to be used publicly it would need to be committed to the SRL GitHub.

Nevertheless, this will be a great learning experience and I'd love to see how you go with touching the include up to your likings :)

Olly

2012-09-06 11:45:43

http://villavu.com/forum/showthread.php?t=88948

I believe this was updated quite recently?

Wardancer

2012-09-06 12:31:14

From: P1ng
I recommend you have a look at using WaitFunc and WaitFuncEx once you get all of the colours and checks correct. Also, yes - it is possible to put this into an include for both personal and public use. For it to be used publicly it would need to be committed to the SRL GitHub.

Nevertheless, this will be a great learning experience and I'd love to see how you go with touching the include up to your likings :)


I did play a bit with WaitFunc already. I find it very useful, but its uses are somewhat limited (very reliant on your way of coding failsafes from my understanding). As for the WaitFuncEx, I'm having trouble thinking of uses for it. I'll look it up though. Thanks for the head up.

I honestly don't think my scripting knowledge is on par with the public releases. I simply see this as a learning experience which, I hope, can help some other people too.

From: Ollybest
http://villavu.com/forum/showthread.php?t=88948

I believe this was updated quite recently?


That's what I thought too which is why I'm that surprised.

EDIT: Someone mentioned InGE being a bit "temperamental". Here is the code I propose to replace it. It works flawlessly for me (so far). More to come later. Just posting this one since there was a comment about it.

function InGE: Boolean;
begin;
result := findTextTPA(39116, 20, 204, 27, 248, 49, 'Grand', upCharsEx, nothing);
end;