Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Wheel of Mediocrity Script Request

  1. #1

    Join Date
    Feb 2013
    Gender
    Posts
    59
    Thanks
    9
    Thanked 5 Times in 3 Posts


    Downloads
    24
    Uploads
    0
    Mentioned
    1 Post(s)
    Time Online
    1 d 16 h 33 m
    Avg. Time Online
    1 m
    Rep Power
    5

    Wheel of Mediocrity Script Request

    Just looking for a simple script that will open a new tab with the wheel in firefox every 40 minutes and spin the wheel (and log me in??) using Greasemonkey. Some explanation would be helpful too so that I can adapt it for other uses!!

    Thank you!

    Please move if this is in the wrong section

    Also, I have a decent understanding of coding so don't be afraid to throw some words and concepts at me..
    Last edited by ob3; 03-27-2013 at 07:27 PM.

  2. #2

    Join Date
    Jul 2012
    Gender
    Posts
    728
    Thanks
    105
    Thanked 201 Times in 114 Posts


    Downloads
    24
    Uploads
    0
    Mentioned
    88 Post(s)
    Time Online
    22 d 18 h 41 m
    Avg. Time Online
    17 m
    Rep Power
    7
    As far as I know, greasemonkey doesn't handle flash applications so I don't think what you want to do is possible with simple scripts.

  3. #3
    Banned
    Join Date
    Jan 2013
    Gender
    Posts
    7
    Thanks
    747
    Thanked 1,255 Times in 692 Posts


    Downloads
    86
    Uploads
    0
    Mentioned
    464 Post(s)
    Time Online
    70 d 14 h 40 m
    Avg. Time Online
    56 m
    Rep Power
    0
    You would need to use iMacros, not greasemonkey

  4. #4

    Join Date
    Feb 2013
    Gender
    Posts
    59
    Thanks
    9
    Thanked 5 Times in 3 Posts


    Downloads
    24
    Uploads
    0
    Mentioned
    1 Post(s)
    Time Online
    1 d 16 h 33 m
    Avg. Time Online
    1 m
    Rep Power
    5
    Fair enough, I do have some decent experience with iMacros as well, but it can't really handle logic statments or anything so I'm not sure how to do the login.. perhaps logout everytime so it knows it has to log in?

  5. #5
    Banned
    Join Date
    Jan 2013
    Gender
    Posts
    7
    Thanks
    747
    Thanked 1,255 Times in 692 Posts


    Downloads
    86
    Uploads
    0
    Mentioned
    464 Post(s)
    Time Online
    70 d 14 h 40 m
    Avg. Time Online
    56 m
    Rep Power
    0
    Quote Originally Posted by ob3 View Post
    Fair enough, I do have some decent experience with iMacros as well, but it can't really handle logic statments or anything so I'm not sure how to do the login.. perhaps logout everytime so it knows it has to log in?
    Yep, I'd recommend starting the Macro with logging in, then navigating to WoM, spinning it, collecting prize, then logging off. Once you do that, then just add:
    WAIT SECONDS=2400

    Play (Loop) and win.

  6. #6
    Banned
    Join Date
    Jun 2012
    Gender
    Location
    90 90
    Age
    31
    Posts
    1,714
    Thanks
    876
    Thanked 2,877 Times in 1,139 Posts


    Downloads
    44
    Uploads
    1
    Mentioned
    562 Post(s)
    Time Online
    118 d 6 h 45 m
    Avg. Time Online
    1 h 30 m
    Rep Power
    0
    Gamer IDs

    Gamertag: DarkByt3 PSN ID: raredaredevil
    This game uses a amf packet:



    def process_wheelofknol(self):
    #Process wheel of knoledge
    print "knol"
    self.wheelofknoltime = time.time()
    self.newsql.setsetting("wheelofknoltime",time.time ()) #Save Settings

    self.gateway = RemotingService('http://www.neopets.com/amfphp/gateway.php')
    self.gateway.opener = self.acc.opener.open

    WheelService = self.gateway.getService('WheelService')
    html = WheelService.spinWheel("1")
    if (html.find("You win a free spin.")) > 1:
    self.process_wheelofknol()


    ###bad logic

    elif (html.find("'slot': 12")) > 1:
    return 1 # just a game tip , no dice
    elif (html.find("'slot': 8")) > 1:
    return 1 # just a game tip , no dice













    elif (html.find("Your Neopet has been healed")) > 1:


    html="Active Neopet Healed"
    sql = "INSERT INTO dailylogs(id,logname, logresult , userid , username) VALUES (NULL,'Wheel Of Knoledge','%s','%s','%s')" % (html,str(self.theuserid),self.acc.user)
    self.newsql.insertsql(sql)

    elif (html.find("Not everyone is as lucky as you")) > 1:


    html="Won item (standard)"
    sql = "INSERT INTO dailylogs(id,logname, logresult , userid , username) VALUES (NULL,'Wheel Of Knoledge','%s','%s','%s')" % (html,str(self.theuserid),self.acc.user)
    self.newsql.insertsql(sql)





    print html
    extrainfo= ""
    filename = "wheelofknol_" + str(time.time())
    self.writestringtofile(filename,html)


    Here is the encoded url:

    http://www.neopets.com/amfphp/gatewa...1%2%0%1%225%22

    This must be sent as a post request , not get! Hope that makes things easier. Above is wheel of knol , just change the wheel id

  7. #7

    Join Date
    Feb 2013
    Gender
    Posts
    59
    Thanks
    9
    Thanked 5 Times in 3 Posts


    Downloads
    24
    Uploads
    0
    Mentioned
    1 Post(s)
    Time Online
    1 d 16 h 33 m
    Avg. Time Online
    1 m
    Rep Power
    5
    oh man.. that was a little over my head haha
    if i make it in iMacros, when I spin and collect, is there a better command to use than a click x,y sorta thing? or is that my best bet?

  8. #8
    Banned
    Join Date
    Jan 2013
    Gender
    Posts
    7
    Thanks
    747
    Thanked 1,255 Times in 692 Posts


    Downloads
    86
    Uploads
    0
    Mentioned
    464 Post(s)
    Time Online
    70 d 14 h 40 m
    Avg. Time Online
    56 m
    Rep Power
    0
    x,y for flash. It's not technically supported by iMacros unless you buy the paid version, so x,y is all we got.

  9. #9

    Join Date
    Feb 2013
    Gender
    Posts
    59
    Thanks
    9
    Thanked 5 Times in 3 Posts


    Downloads
    24
    Uploads
    0
    Mentioned
    1 Post(s)
    Time Online
    1 d 16 h 33 m
    Avg. Time Online
    1 m
    Rep Power
    5
    awesome, thanks so much for your help

    Here is what I made, feel free to use/spread/make better. The wait times are probably pretty conservative/unnecessary. The X and Y will likely have to be changed depending on your screen.

    URL GOTO=http://www.neopets.com/index.phtml
    TAG POS=1 TYPE=A ATTR=TXT:Log<SP>in
    WAIT SECONDS=1.5
    TAG POS=1 TYPE=INPUTUBMIT FORM=ACTION:/login.phtml ATTR=VALUE:Log<SP>In!
    WAIT SECONDS=3
    URL GOTO=http://www.neopets.com/prehistoric/mediocrity.phtml
    WAIT SECONDS=5
    CLICK X=1048 Y=539
    WAIT SECONDS=25
    CLICK X=1048 Y=539
    WAIT SECONDS=4
    TAG POS=1 TYPE=B ATTR=TXT:Logout
    WAIT SECONDS=2400
    is : S without the space. not sure how to change that

    ---------- Post added 03-28-2013 at 12:55 AM ---------- Previous post was 03-27-2013 at 11:48 PM ----------

    hmm the x y click doesn't seem to work

  10. #10
    Banned
    Join Date
    Jan 2013
    Gender
    Posts
    7
    Thanks
    747
    Thanked 1,255 Times in 692 Posts


    Downloads
    86
    Uploads
    0
    Mentioned
    464 Post(s)
    Time Online
    70 d 14 h 40 m
    Avg. Time Online
    56 m
    Rep Power
    0
    Odd it does in fact work on BD. I'll take a look at it tomorrow.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •