toohot Posted December 10, 2009 Share Posted December 10, 2009 I'm working on a bot for a website based game. This bot creates characters for me. I have already done that part. I'm currently stuck on the part where I can detect the character stats. I would like a character with Agility higher than 150+. The text is displayed as "Agility: XX" where XX is replaced with a number. How can I detect the XX and then compare it to 150? I'm going to use a "IF" function if the value is greater than 150 and add it to a list I have open. How can I go about this? Thanks in advance. Link to comment Share on other sites More sharing options...
X42Negative Posted December 10, 2009 Share Posted December 10, 2009 Is this text in the web browser itself? You might have to use flash or the equivalent to read that text from there and check if it 150. Link to comment Share on other sites More sharing options...
toohot Posted December 10, 2009 Author Share Posted December 10, 2009 What you mean use flash? The text is part of the website itself. I don't want it to just check if it's 150, I want it to check if its 150+ Thanks in advance. Link to comment Share on other sites More sharing options...
X42Negative Posted December 10, 2009 Share Posted December 10, 2009 (edited) Showing us the website would make this a lot easier. And what I mean by using Flash is that most browser "games" use Flash or something else, not just plain javascript/html/php. Edited December 10, 2009 by X42Negative Link to comment Share on other sites More sharing options...
MerkurAlex Posted December 10, 2009 Share Posted December 10, 2009 Can you provide us the HTML code to the page in question or better yet a link to the page? I assume your making a bot for some web based game I know what you need done but I can't show you how without seeing the site or the HTML to it. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
turbov21 Posted December 10, 2009 Share Posted December 10, 2009 What you mean use flash? The text is part of the website itself. I don't want it to just check if it's 150, I want it to check if its 150+Flash:http://en.wikipedia.org/wiki/Adobe_Flashhttp://en.wikipedia.org/wiki/SWFExtracting text from a web site (HTML) is different than extracting text from a Flash file. If you can say what game you're working with, answering your question will be easier. Link to comment Share on other sites More sharing options...
MerkurAlex Posted December 10, 2009 Share Posted December 10, 2009 Showing us the website would make this a lot easier. And what I mean by using Flash is that most browser "games" use Flash or something else, not just plain javascript/html/php.aww you beat me to it lol but yeah some do use flash but if im correct most "web orpg's" or whatever use just php/js/html flash tends to just be for singleplayer games but even if it is flash you can still get the text from a flash variable. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
toohot Posted December 10, 2009 Author Share Posted December 10, 2009 I figured it out. I just use Clipget() function. Thanks guys! Link to comment Share on other sites More sharing options...
X42Negative Posted December 10, 2009 Share Posted December 10, 2009 I figured it out. I just use Clipget() function. Thanks guys!Clip...get?What the...I don't even... Link to comment Share on other sites More sharing options...
MerkurAlex Posted December 10, 2009 Share Posted December 10, 2009 Yeah... I am gonna let this one go as a win [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now