jimthesoundman
2010-02-11 19:58:59
I'm writing a firemaking script for the Grand Exchange. Two main problems:
1) I'm having trouble with getting the character back close to the banker, as there are usually dozens of people crowded around. I have been trying to just use find bank symbol in the minimap, and that will usually work, but because the symbol drifts, sometimes I end up too far away, and the banker isn't visible in the main screen.
2) I've found a fairly unique color, that is in the hair of the bankers, but it is also found in fire, so if there is a fire burning the main screen that will confuse the script and it takes a long time to open the bank. So I've tried the hair color method and that sometimes fails and I've tried OpenBankNPC and that sometimes fails. I can make them both recursive on each other so that gives me about a 99% success rate, but it takes a long time to work (sometimes over a minute) so obviously I'd like something faster and better.
I was thinking that for problem one, maybe I ought to find the bank symbol, then find the grand exchange symbol that is right next to it and have the mouse click in the centerpoint between those two symbols. Anyone know an easy way to do that?
For the second problem, I'm stumped. Maybe using the black circle post in the center of the Gr Ex as a reference point and then only search in a certain radius from that point? How would I find the center of that black circle post?
Thanks in advance,
JIM
1) I'm having trouble with getting the character back close to the banker, as there are usually dozens of people crowded around. I have been trying to just use find bank symbol in the minimap, and that will usually work, but because the symbol drifts, sometimes I end up too far away, and the banker isn't visible in the main screen.
2) I've found a fairly unique color, that is in the hair of the bankers, but it is also found in fire, so if there is a fire burning the main screen that will confuse the script and it takes a long time to open the bank. So I've tried the hair color method and that sometimes fails and I've tried OpenBankNPC and that sometimes fails. I can make them both recursive on each other so that gives me about a 99% success rate, but it takes a long time to work (sometimes over a minute) so obviously I'd like something faster and better.
I was thinking that for problem one, maybe I ought to find the bank symbol, then find the grand exchange symbol that is right next to it and have the mouse click in the centerpoint between those two symbols. Anyone know an easy way to do that?
For the second problem, I'm stumped. Maybe using the black circle post in the center of the Gr Ex as a reference point and then only search in a certain radius from that point? How would I find the center of that black circle post?
Thanks in advance,
JIM