Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ruby iMobster Bot
01-18-2011, 08:33 PM (This post was last modified: 01-18-2011 08:37 PM by feiteira81.)
Post: #1
Information Ruby iMobster Bot
Hi, there..
I've been running this little script on my PC for a while now and decided to make it public.. let's see if storm8 doesn't get too upset.

What does it do?

Well, currently I have functions that allow you to:
IMob.deposit(amount): Deposits a specific amount of money
IMob.depositall(): Deposit all your money (nice to have running as a crontab task over the night, making sure you never loose any cash)
IMob.buyBestDeal(): Why use real estate calculators? This function will automatically do the math and buy in the best deal (as long as your wallet [i.e. not including the bank] money is enough to do so)
IMob.withdraw(amount): Takes money from the bank to the wallet.
IMob.inviteMob(mobcode): Invites a person to your mob.. nice to have.. if you can process the HTML from any of the IMobsters listings on the internet, then it's possible to simply invite a list of thousands of players to join your mob.
spendAllMoneyOnRealEstate(IMob): With this little tool you can spend all your money in a smart way, it will keep buying the best deals in real estate until you cannot buy any more the best deal.

Others:
getNextNetIncome(): Time in seconds until you get your next income.
getWalletMoney(): Money in the wallet..
getNetIncome(): Returns your net income (after deducting the upkeep)
getBankMoney(): Returns the money in your bank..

processPage(url,content=nil): This litle function is the core of the script and allows you to parse any page, submit any request or both.


Installation
Install Ruby: http://www.ruby-lang.org
Edit the file and update your UDID.
Run the script via Ruby: ruby imob_v001.rb


How to find my UDID?
On Android: Turn of your network, start IMobsters. An error message will appear with a link, something like: http://im.storm8.com/apoints.php?fpts=12...b23122b687
Only the text in italic-bold of the link about is of interest. Take it and replace it on the line at the top of the script saying:
PAGE="/apoints.php?fpts=12&version=a.1.54&udid=200145745b874941&pf=7761ad4efac1dc9e6b87a016d4e1d0dc"
That's it! Now you can use the script. Smile

On iPhone: Check the iPhone bot forum...

Testing:
You can run the script as it comes, it will simply printout some of your player's specific info.

Download: (see below)

Have fun, and be kind to share any upgrades you may add to this script.

-- Update --
You may now download the new version from the script here. To know more on how to run/configure the bot read the previous post on it first.

This new version adds the ability to do missions via scripting, I've added the doNextMission() function that automatically tries do do the last non-complete mission.

I've also provided an example bot main cycle that:
-Tries to do the first non-complete mission (if it needs to buy equipment and there is money available it will also do it - including withdrawing from the bank if necessary).
- Second it will look at the best real estate investment and buy it, if possible.
- Finally it deposits all remaining money

I'm running this every 2 minutes on my home computer for a month now without any problems Smile

** Download Lastest iMobsters Ruby Bot for Android **
Find all posts by this user
Quote this message in a reply
04-01-2011, 09:08 AM
Post: #2
RE: Ruby iMobster Bot
I am executing imob_v010.rb and nothing is happening. (ruby imob_v010.rb) just black DOS window. Any ideas?
Find all posts by this user
Quote this message in a reply
05-02-2011, 12:24 AM
Post: #3
RE: Ruby iMobster Bot
(04-01-2011 09:08 AM)immune Wrote:  I am executing imob_v010.rb and nothing is happening. (ruby imob_v010.rb) just black DOS window. Any ideas?

Not really, did you setup your UID?
Find all posts by this user
Quote this message in a reply
05-05-2011, 12:16 AM
Post: #4
RE: Ruby iMobster Bot
ok i installed it and all i get the dos screen that pops up and lines saying different things. question is now what do i do? thx alot
Find all posts by this user
Quote this message in a reply
05-05-2011, 12:43 AM
Post: #5
RE: Ruby iMobster Bot
(05-05-2011 12:16 AM)bacardi2001 Wrote:  ok i installed it and all i get the dos screen that pops up and lines saying different things. question is now what do i do? thx alot

hmm, at this moment you'll need to read the code and add any functionallity you may wish.

Assuming you have the latest version, it's simply buying the "best deal" and depositing the money if it cannot yet make the best real-estate deal.

The log should be +- clear.


As it is by default, the script should be executed either automatically every couple of minutes (as I have), or manually every hour when you get your income.
Find all posts by this user
Quote this message in a reply
05-05-2011, 01:18 AM
Post: #6
RE: Ruby iMobster Bot
so i pretty much just run it and let it sit? cause i cant type anything where the command prompt is. thx again
Find all posts by this user
Quote this message in a reply
05-05-2011, 02:08 AM
Post: #7
RE: Ruby iMobster Bot
yep that should be enough, in any case, if you spend some time and learn about the code you can really tune it and define your own mosbter strategy Wink

I may spend sometime in the future and update the script so it also attacks for me..
Find all posts by this user
Quote this message in a reply
05-09-2011, 07:37 AM
Post: #8
RE: Ruby iMobster Bot
Hello. I am trying to use the RUBY script, but have a question.

My question is about this portion of the script: "/apoints.php?fpts=12&version=a.1.54&udid=XXXXXXXXXXXXX&pf=YYYYYYYYYYYYYYYY"

I understand what the udid="XXXX" is (the UDID Tongue), but what is the "pf="YYYYY""?

To summarize, what should I put where the Y's are?

Thanks,

-Andrew
Find all posts by this user
Quote this message in a reply
05-09-2011, 08:04 AM
Post: #9
RE: Ruby iMobster Bot
(05-09-2011 07:37 AM)ajc1996 Wrote:  Hello. I am trying to use the RUBY script, but have a question.

My question is about this portion of the script: "/apoints.php?fpts=12&version=a.1.54&udid=XXXXXXXXXXXXX&pf=YYYYYYYYYYYYYYYY"

I understand what the udid="XXXX" is (the UDID Tongue), but what is the "pf="YYYYY""?

To summarize, what should I put where the Y's are?

Thanks,

-Andrew

Hi, good question. I found the UDID/PF using the Android technique that I wrote on the other post, I guess you can also find it with a sniffer or proxy as it comes in the link.

What it is, I am not sure, I can guess that maybe is a internal key, as we can have diferent UDIDs sharing the same account, then maybe they use this second key to say which account it is. Not sure though.

There is a web site where you can write your UDID and it is supposed to give you back your PF, I would not recommend it and will actively remove any reference as, this just seems to dangerous, giving out your UDID like that.

hmm, not sure if this helped Smile let me know..
Find all posts by this user
Quote this message in a reply
05-09-2011, 10:10 AM
Post: #10
RE: Ruby iMobster Bot
(05-09-2011 08:04 AM)feiteira81 Wrote:  
(05-09-2011 07:37 AM)ajc1996 Wrote:  Hello. I am trying to use the RUBY script, but have a question.

My question is about this portion of the script: "/apoints.php?fpts=12&version=a.1.54&udid=XXXXXXXXXXXXX&pf=YYYYYYYYYYYYYYYY"

I understand what the udid="XXXX" is (the UDID Tongue), but what is the "pf="YYYYY""?

To summarize, what should I put where the Y's are?

Thanks,

-Andrew

Hi, good question. I found the UDID/PF using the Android technique that I wrote on the other post, I guess you can also find it with a sniffer or proxy as it comes in the link.

What it is, I am not sure, I can guess that maybe is a internal key, as we can have diferent UDIDs sharing the same account, then maybe they use this second key to say which account it is. Not sure though.

There is a web site where you can write your UDID and it is supposed to give you back your PF, I would not recommend it and will actively remove any reference as, this just seems to dangerous, giving out your UDID like that.

hmm, not sure if this helped Smile let me know..
Thanks for the reply!

Im guessing my main issue is that i'm attempting to run the script when I have an iPhone. I an certain of my UDID, but not the "PF" part.

I tried to change the page to "/apoints.php?fpts=0&version=i.4.1.2&udid=XXXXXXXXX (<- my UDID)", modifying the version from "a.1.2" to "i.4.1.2".
However, this didn't work. When I ran the script in Terminal (i'm on a Mac), nothing appeared. My only guess is that the page i'm using is incorrect.

Dodgy

I have been trying for a while to find a way to automatically buy real estate according to the best ROI. I have tried http://www.untouchablehacks.com, http://imobsters.s8onpc.com/, and have even made my own (futile) attempt with a combination of VNC and Mac's built-in Automator. If anyone has any other suggestions, they would be great! Shy

-Andrew
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)