Trying to fix Moscow

in
Subscribe to Trying to fix Moscow 23 posts, 11 voices



theRamenNoodle Scriptwright
FirefoxWindows

I'm not a programmer, but I'm familiar enough with scripting that I'm taking a look at the script to figure out a way to make it do Moscow jobs. Is anyone else experimenting, too?

 
bugmenot2009 Scriptwright
FirefoxWindows

Currently working on it, more later. I think I already made Mascow job help available, but I still have to fix the money counter.

 
bugmenot2009 Scriptwright
FirefoxWindows

I'm not getting any available Moscow requests to test it with... any ideas? I'll share what I did so far, if you're interested.

 
bugmenot2009 Scriptwright
FirefoxWindows

ok, I'm giving up... this is what I did so far:

replaced this code...
GM_setValue('strHTPat', "//div[@class='UIStoryAttachment_Copy']//div[@class = 'CopyTitle' and contains(., 'requested help')]");
GM_setValue('strNHTPat', "//div[@class='UIStream']//div[contains(@id, 'div_story_') and contains(@class, 'aid_') and not(contains(., 'requested help'))]");

with this code:
GM_setValue('strHTPat', "//div[@class='UIStoryAttachment_Copy']//div[@class = 'CopyTitle' and (contains(., 'requested help') or contains(., 'needs your help') or contains(., 'needs help'))]");
GM_setValue('strNHTPat', "//div[@class='UIStream']//div[contains(@id, 'div_story_') and contains(@class, 'aid_') and not(contains(., 'requested help') or contains(., 'needs your help') or contains(., 'needs help'))]");

after editing the script you need to reinit script variables from the user script commands.

What the script does so far:
It does Moscow jobs, but it does so twice, and you get a "already helped" message. The script can't keep track of money and exp yet... hope someone with better knowledge continues this.

This script still needs to deal with the "more than 25 people helped" message, and fetching boosts would be a nice addition. This is the only job helper script that works for more, and it would be a waste not to update it anymore.

 
Kethry User
FirefoxWindows

I amde the same basic chanes you need, bugmenot, yesterday and it is at least doing moscow jobs as well as the others (though do not leave yourself in moscow- non-moscow jobs dont work there). I have been taking a stab at making the other changes but obviously still have bugs as it isn't working yet.

I also made your change on another computer and acct that actually only checks for moscow jobs (eliminated the 'requested help') because I can just use Vern's MW DoJobs tool too pick up cuba and ny jobs and then it will only attempt Moscow jobs

If someone else comes up with this script fixed for Moscow, though, it would be awesome cause javascript is not my strong suit :P

 
theRamenNoodle Scriptwright
FirefoxWindows

I disable the scripts "ShowOnlyJobs" feature so I can watch for the Moscow jobs.

The problem with Vern's MW DoJobs is that it isn't realtime like this script is.

 
Kethry User
FirefoxWindows

Ramen, I agree; but my mafia on my main acct is huge and many people do not publish their non-Moscow jobs- so, I can usually pick up 25 jobs for each city from that and be done for the day. Picking and choosing high pt jobs would be ideal but thatis is a good compromise for me since a lot of the non-published jobs are often also the high value ones for whatever reason

 
Kethry User
FirefoxWindows

p.s. basically, I don't want to hit the server for all the NY and Cuba jobs I am ineligible for anyway

 
theRamenNoodle Scriptwright
FirefoxWindows

@Kethry: How is DoJobs working for you? I click it the same way I used to before, from the Gifting screen, but it now just stops and says "Found 0 mafia."

 
Kethry User
ieWindows

Ramen, spockholm created a "patched" DoJobs that runs against moscow and cuba and can read the friends list- run it while you are in moscow so that it won't be successful in cuba at all.

The orginal DoJobs will work with a manual list... bobby heartrate has a tool that you run from MW that allowed me to download my entire mafia to excel... (I had to scrub about 30 lines and tab-delimit them in notepad) I then used the first column (id) to create a manual list for DoJobs. You have to fly to NY or Cuba to run it and it crashes on unknown error when you reach the city limit- but, by then, I will prob be about maxed on the other city too and I can test once each city just to make sure. This is why it is important to be in Moscow when you run the patched version- because if you max out Cuba then you can't use the orig DoJobs to pick up NY jobs

These are the directions someone posted on Vern's Mafia Wars FB fan page in a discussion on Friday:

Do Jobs Workaround for Russia

Get Bobby Heartrate's Download Mafia Tool:
http://heartrate.se/download_mafia/
Follow his directions and create an Excel or OpenOffice spreadsheet.
Make sure the 1st column is formated as Number, zero decimal places.
Delete all but the first two columns ( ID and names)
Delete the header row.
Select all.
Copy
Open DoJobs
Select manual list.
Paste your list of friends, into the box.
Run DoJobs and enjoy

 
Kethry User
ieWindows

p.s. patched DoJobs is here:
http://www.spockholm.com/mafia/vern/

 
Kethry User
ieWindows

Oh- I made a buncg of re-writes to the jb processor. It is still not properly logging exp and money and it is re-tryign jobs but it is picking up all the jobs (this is on my small mafia acct that is unlikely to hit the city limits). But, it completely hung up doing moscow only jobs on y big acct on another computer. I finally found a completely diff script on this site that is working pretty well

 
UncleSim User
FirefoxWindows

I got Joseph Huang's 'autohelp', which now does all jobs including Moscow, and gets boosts and does wars too.

If this script could do all that his does, I would come back, because I like its feedback. I am a programmer, and I took the easy way out - I found a script that already works.

BTW, DoJobs has been practically obsolete for a month, compared to these scripts that help when the request is made, instead of raking up all the leftovers from the past day.

Also, DoJobs won't run alongside MWAP. I don't want to choose, I want it all.

 
Kethry User
ieWindows

I saw Joseph's and read that it rocks but I ended up installing the one from Aidas http://userscripts.org/scripts/show/58550 because it has a GUI display that shows what it has processed and is completely configurable to collect level and/or iced boosts, which city(ies) to do jobs in, what wars to participate in (ones where they declared or where they helped) and it tells how much money/XP gained.

I am also a programmer; but my js skills are limited and I am lazy so did not feel like tweaking this script any more once I found Aidas'.

 
ElishaBlatt User
FirefoxWindows

@Kethry,
How do you configure the script from Aidas? I installed it, it works but I could not finf a way to change/ configure any of the options you mentioned through the GUI. Did you mean to configure by changing the script or am I missing something? Thanks for your input.

 
SwissJ Scriptwright
FirefoxWindows

You need to change the regular expression on this line in order for it to be able to track the various currencies:

_oJob.iMoney = /<(strong) class=\"money\">(C?\$[^<]+)<\/\1>/i.exec(_oJob.strResult)[2];

But I haven't had enough time to mess with it. Currently, my version does jobs in Moscow, just doesn't display it properly, but it works. Also collects all the bonuses while it's at it.

 
Wingshot User
FirefoxWindows

SwissJ, care to post your script?

Josh

 
FTO User
FirefoxWindows

awesome script Kethry thanks

 
ratfuk User
FirefoxX11

Got tired of Joseph's constant tweaking and breaking it... the old version of NF Proc is at least getting more EXP points.... crap just wanna level more than 1X a day! is that tooooo much to ask?

Completed Missed XP Gain
38 14 287

 
SwissJ Scriptwright
FirefoxWindows

My version of this has a bug somewhere, keep getting null strings even though I can't figure out where... Thinking about a complete rewrite but I'm also running Joseph's autohelp and it pretty much does everything you could ask, except for the fancy visuals.

But fancy visuals cost time and therefore might cause it to miss jobs. So I'm not real sure it's even worth trying to resuscitate this script...

 
SwissJ Scriptwright
FirefoxWindows

I stripped this of the bonus thing until I get it fixed...

http://userscripts.org/scripts/show/59850

 
chatmack User
FirefoxWindows

CAN U RUN AUTO-HELPER AND Facebook Mafia Wars News Feed Processor AT THE SAME TIME?

 
mardl User
FirefoxWindows

i think same scripts do the same. so one is faster!
i changed the Facebook Mafia Wars News Feed Processor for work with moskow and boots right.

i send it to SwissJ to check. If it works it will upload to http://userscripts.org/scripts/show/59850
new version 0.2.14
please be patient

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel