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

Thread: Wheel of Mediocrity Script Request

  1. #1

    Joined
    Feb 2013
    Posts
    59
    Userbars
    1
    Thanks
    9
    Thanked
    5/3
    DL/UL
    24/0
    Mentioned
    1 time
    Time Online
    1d 16h 33m
    Avg. Time Online
    N/A

    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 06:27 PM.

  2. #2

    Joined
    Jul 2012
    Posts
    717
    Userbars
    3
    Thanks
    105
    Thanked
    201/114
    DL/UL
    24/0
    Mentioned
    88 times
    Time Online
    22d 22h 4m
    Avg. Time Online
    7m
    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

    Joined
    Jan 2013
    Posts
    24
    Thanks
    746
    Thanked
    1,257/693
    DL/UL
    86/0
    Mentioned
    464 times
    Time Online
    70d 14h 40m
    Avg. Time Online
    24m
    You would need to use iMacros, not greasemonkey

  4. #4

    Joined
    Feb 2013
    Posts
    59
    Userbars
    1
    Thanks
    9
    Thanked
    5/3
    DL/UL
    24/0
    Mentioned
    1 time
    Time Online
    1d 16h 33m
    Avg. Time Online
    N/A
    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

    Joined
    Jan 2013
    Posts
    24
    Thanks
    746
    Thanked
    1,257/693
    DL/UL
    86/0
    Mentioned
    464 times
    Time Online
    70d 14h 40m
    Avg. Time Online
    24m
    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

    Joined
    Jun 2012
    Posts
    1,699
    Thanks
    876
    Thanked
    2,881/1,142
    DL/UL
    44/1
    Mentioned
    562 times
    Time Online
    118d 6h 45m
    Avg. Time Online
    40m
    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:

    (you need an account to see links)

    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

    Joined
    Feb 2013
    Posts
    59
    Userbars
    1
    Thanks
    9
    Thanked
    5/3
    DL/UL
    24/0
    Mentioned
    1 time
    Time Online
    1d 16h 33m
    Avg. Time Online
    N/A
    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

    Joined
    Jan 2013
    Posts
    24
    Thanks
    746
    Thanked
    1,257/693
    DL/UL
    86/0
    Mentioned
    464 times
    Time Online
    70d 14h 40m
    Avg. Time Online
    24m
    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

    Joined
    Feb 2013
    Posts
    59
    Userbars
    1
    Thanks
    9
    Thanked
    5/3
    DL/UL
    24/0
    Mentioned
    1 time
    Time Online
    1d 16h 33m
    Avg. Time Online
    N/A
    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

    Joined
    Jan 2013
    Posts
    24
    Thanks
    746
    Thanked
    1,257/693
    DL/UL
    86/0
    Mentioned
    464 times
    Time Online
    70d 14h 40m
    Avg. Time Online
    24m
    Odd it does in fact work on BD. I'll take a look at it tomorrow.

Posting Permissions

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