Results 1 to 3 of 3

Thread: Neopets Mobile Internal Functions

Hybrid View

  1. #1

    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

    Neopets Mobile Internal Functions

    These can be handy when making bots:

    (you need an account to see links)


    Login Procedure
    MobileService.auth(username , password , bday)

    Bday in the above is optional (only if needed)

    Return Data e.g:

    PHP Code:
    (Object)#0
      
    banReason = (null)
      
    dailies = (Object)#1
        
    auth true
        dailies 
    = (Object)#2
          
    anchormanagement = (Object)#3
            
    accessible true
            canPlay 
    true
            cost 
    0
            image 
    "http://images.neopets.com/pirates/disappearance/anchor/h43y27.jpg"
            
    name "<tt182938>Anchor Management</tt182938>"
            
    nextPlay = (null)
          
    fruitmachine = (Object)#4
            
    accessible true
            canPlay 
    true
            cost 
    0
            image 
    "http://images.neopets.com/games/clicktoplay/icon_20.gif"
            
    name "Fruit Machine"
            
    nextPlay = (null)
          
    mobilescratchcard = (Object)#5
            
    accessible true
            canPlay 
    true
            cost 
    0
            image 
    ""
            
    name "Scratch Card"
            
    nextPlay 0
          wheelofexcitement 
    = (Object)#6
            
    accessible true
            canPlay 
    true
            cost 
    500
            image 
    "http://images.neopets.com/games/clicktoplay/icon_13.gif"
            
    name "Wheel of Excitement"
            
    nextPlay = (null)
        
    neopoints "101886"
      
    errors = (null)
      
    games = (Object)#7
        
    auth true
        games 
    = (Object)#8
          
    1134 = (Object)#9
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-1134.png"
            
    id 1134
            name 
    "Spinacles"
            
    nameShort "Spinacles"
            
    ratio 0.18
            sendMax 
    3
            sentToday 
    0
          306 
    = (Object)#10
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-306.png"
            
    id 306
            name 
    "Sutek's Tomb"
            
    nameShort "Sutek's Tomb"
            
    ratio 0.15
            sendMax 
    3
            sentToday 
    0
          381 
    = (Object)#11
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-381.png"
            
    id 381
            name 
    "Kass Basher"
            
    nameShort "Kass Basher"
            
    ratio 1.17
            sendMax 
    3
            sentToday 
    0
          500 
    = (Object)#12
            
    highScore "600"
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-500.png"
            
    id 500
            name 
    "Meerca Chase II"
            
    nameShort "Meerca Chase II"
            
    ratio 1.79
            sendMax 
    3
            sentToday 
    0
      locations 
    = (Object)#13
        
    = (Object)#14
          
    exists true
          id 
    1
          maximum 
    = (null)
          
    size 1
        14 
    = (Object)#15
          
    exists = (null)
          
    id 14
          maximum 
    30
          size 
    4
        2 
    = (Object)#16
          
    exists true
          id 
    2
          maximum 
    650
          size 
    6
        6 
    = (Object)#17
          
    exists false
          id 
    6
          maximum 
    = (null)
          
    size = (null)
        
    = (Object)#18
          
    exists true
          id 
    7
          maximum 
    = (null)
          
    size 424
      notifications 
    0
      pets 
    = (Array)#19
        
    [0] (Object)#20
          
    color 8
          gender 
    2
          happiness 
    "miserable"
          
    hash "kc96rglw"
          
    headUrl "http://pets.neopets.com/cp/kc96rglw/2/6.png"
          
    health 1
          hunger 
    "dying"
          
    hungerState 1
          largeUrl 
    "http://pets.neopets.com/cp/kc96rglw/2/7.png"
          
    maxHealth 11
          mobileFed 
    false
          mood 
    2
          name 
    "_nanook_51"
          
    owner "manymoocow__34"
          
    species 52
      sso 
    "05889ea8005180eed6f6418b76b6f769AAABRIW7oBg"
      
    success true
      time 
    "06:17 AM"
      
    token "730a4baffdf38ab663eadb98052b4d288e67a5df"
      
    user = (Object)#21
        
    active_pet "_nanook_51"
        
    age 26
        auth 
    true
        name 
    "jessica koehn"
        
    neopoints "101,886"
        
    username "manymoocow__34" 

    As we can see above , we are given a token here:
    token = "730a4baffdf38ab663eadb98052b4d288e67a5df"

    This token is now used to i.d the user. We must send the token in later request.

    Exploit alert : This function did not seem to have a limit on invalid bday attempts when i tried (only if ur password is correct , or u will get locked out)


    MobileService.anchorManagement(username,token)
    Plays anchor Management

    Return e.g:
    PHP Code:
    (Object)#0
      
    bonusMessage ""
      
    id 57227
      message 
    ""
      
    name "Forgotten Shore Map Piece"
      
    neohome false
      type 
    1
      url 
    "http://images.neopets.com/items/forgottenshoremap9.gif"
      
    wearable false 


    MobileService.validate(username,token)
    Get info on the user


    Return:
    PHP Code:
    (Object)#0
      
    banReason = (null)
      
    dailies = (Object)#1
        
    auth true
        dailies 
    = (Object)#2
          
    anchormanagement = (Object)#3
            
    accessible true
            canPlay 
    false
            cost 
    0
            image 
    "http://images.neopets.com/pirates/disappearance/anchor/h43y27.jpg"
            
    name "<tt182938>Anchor Management</tt182938>"
            
    nextPlay 63235
          fruitmachine 
    = (Object)#4
            
    accessible true
            canPlay 
    true
            cost 
    0
            image 
    "http://images.neopets.com/games/clicktoplay/icon_20.gif"
            
    name "Fruit Machine"
            
    nextPlay = (null)
          
    mobilescratchcard = (Object)#5
            
    accessible true
            canPlay 
    true
            cost 
    0
            image 
    ""
            
    name "Scratch Card"
            
    nextPlay 0
          wheelofexcitement 
    = (Object)#6
            
    accessible true
            canPlay 
    true
            cost 
    500
            image 
    "http://images.neopets.com/games/clicktoplay/icon_13.gif"
            
    name "Wheel of Excitement"
            
    nextPlay = (null)
        
    neopoints "101886"
      
    errors = (null)
      
    games = (Object)#7
        
    auth true
        games 
    = (Object)#8
          
    1134 = (Object)#9
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-1134.png"
            
    id 1134
            name 
    "Spinacles"
            
    nameShort "Spinacles"
            
    ratio 0.18
            sendMax 
    3
            sentToday 
    0
          306 
    = (Object)#10
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-306.png"
            
    id 306
            name 
    "Sutek's Tomb"
            
    nameShort "Sutek's Tomb"
            
    ratio 0.15
            sendMax 
    3
            sentToday 
    0
          381 
    = (Object)#11
            
    highScore ""
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-381.png"
            
    id 381
            name 
    "Kass Basher"
            
    nameShort "Kass Basher"
            
    ratio 1.17
            sendMax 
    3
            sentToday 
    0
          500 
    = (Object)#12
            
    highScore "600"
            
    icon "http://images.neopets.com/games/pages/icons/sml/s-500.png"
            
    id 500
            name 
    "Meerca Chase II"
            
    nameShort "Meerca Chase II"
            
    ratio 1.79
            sendMax 
    3
            sentToday 
    0
      locations 
    = (Object)#13
        
    = (Object)#14
          
    exists true
          id 
    1
          maximum 
    = (null)
          
    size 2
        14 
    = (Object)#15
          
    exists = (null)
          
    id 14
          maximum 
    30
          size 
    4
        2 
    = (Object)#16
          
    exists true
          id 
    2
          maximum 
    650
          size 
    6
        6 
    = (Object)#17
          
    exists false
          id 
    6
          maximum 
    = (null)
          
    size = (null)
        
    = (Object)#18
          
    exists true
          id 
    7
          maximum 
    = (null)
          
    size 424
      notifications 
    0
      pets 
    = (Array)#19
        
    [0] (Object)#20
          
    color 8
          gender 
    2
          happiness 
    "miserable"
          
    hash "kc96rglw"
          
    headUrl "http://pets.neopets.com/cp/kc96rglw/2/6.png"
          
    health 1
          hunger 
    "dying"
          
    hungerState 1
          largeUrl 
    "http://pets.neopets.com/cp/kc96rglw/2/7.png"
          
    maxHealth 11
          mobileFed 
    false
          mood 
    2
          name 
    "_nanook_51"
          
    owner "manymoocow__34"
          
    species 52
      sso 
    = (null)
      
    success true
      time 
    "06:26 AM"
      
    token 730
      user 
    = (Object)#21
        
    active_pet "_nanook_51"
        
    age 26
        auth 
    true
        name 
    "jessica koehn"
        
    neopoints "101,886"
        
    username "manymoocow__34" 

    MobileService.startMonotony(username,token)
    Starts wheel of monotony , we call spinwheel when its complete to collect our reward

    Return Data:
    7200 (I think this is the time until complition)

    MobileService.spinWheel(wheelid,username,token)

    PHP Code:
    Return data: (from wheelid 1)
    (Object)
    #0
      
    altimage "http://images.neopets.com/wheels/prizes/77.gif"
      
    message ""
      
    prize = (Object)#1
        
    bonusMessage ""
        
    id "question"
        
    message ""
        
    name "question"
        
    neohome false
        type 
    4
        url 
    ""
        
    wearable false
      prizedescription 
    "<tt177729>Type "recon" while playing Biscuit Brigade to reveal the path of the attackers.</tt177729>"
      
    reaction 3
      slot 
    8
      spinagain 
    false 

    MobileService.resetAnchorManagement(username,token )
    Developer only function to reset this daily

    MobileService.readEvents(id,username,token)
    Read a given event message (e.g X user bid on ur trade post item)

    MobileService.logout(username,token)
    Destroys the current user token


    MobileService.getUser(username,token)
    Gets basic user info

    Return data:
    PHP Code:
    (Object)#0
      
    active_pet "_nanook_51"
      
    age 26
      auth 
    true
      name 
    "jessica koehn"
      
    neopoints 100736
      username 
    "manymoocow__34" 




    MobileService.getPets(username,token)
    Get all pets the user owns

    Return data:
    PHP Code:
    (Array)#0
      
    [0] (Object)#1
        
    color 8
        gender 
    2
        happiness 
    "miserable"
        
    hash "kc96rglw"
        
    headUrl "http://pets.neopets.com/cp/kc96rglw/2/6.png"
        
    health 1
        hunger 
    "dying"
        
    hungerState 1
        largeUrl 
    "http://pets.neopets.com/cp/kc96rglw/2/7.png"
        
    maxHealth 11
        mobileFed 
    false
        mood 
    2
        name 
    "_nanook_51"
        
    owner "manymoocow__34"
        
    species 52 

    MobileService.getGames(username,token)
    Gets info on games we can play via mobile:

    Return data:
    PHP Code:
    (Object)#0
      
    auth false
      games 
    = (Object)#1
        
    1134 = (Object)#2
          
    highScore = (null)
          
    icon "http://images.neopets.com/games/pages/icons/sml/s-1134.png"
          
    id 1134
          name 
    "Spinacles"
          
    nameShort "Spinacles"
          
    ratio 0.18
          sendMax 
    3
          sentToday 
    = (null)
        
    306 = (Object)#3
          
    highScore = (null)
          
    icon "http://images.neopets.com/games/pages/icons/sml/s-306.png"
          
    id 306
          name 
    "Sutek's Tomb"
          
    nameShort "Sutek's Tomb"
          
    ratio 0.15
          sendMax 
    3
          sentToday 
    = (null)
        
    381 = (Object)#4
          
    highScore = (null)
          
    icon "http://images.neopets.com/games/pages/icons/sml/s-381.png"
          
    id 381
          name 
    "Kass Basher"
          
    nameShort "Kass Basher"
          
    ratio 1.17
          sendMax 
    3
          sentToday 
    = (null)
        
    500 = (Object)#5
          
    highScore = (null)
          
    icon "http://images.neopets.com/games/pages/icons/sml/s-500.png"
          
    id 500
          name 
    "Meerca Chase II"
          
    nameShort "Meerca Chase II"
          
    ratio 1.79
          sendMax 
    3
          sentToday 
    = (null

    MobileService.getEvents(username,token,page)
    Get all events from a page



    MobileService.getDailies(username,token)
    Gets info on all dailys (most likely used for push notifications)
    PHP Code:
    (Object)#0
      
    auth false
      dailies 
    = (Object)#1
        
    anchormanagement = (Object)#2
          
    accessible true
          canPlay 
    false
          cost 
    0
          image 
    "http://images.neopets.com/pirates/disappearance/anchor/h43y27.jpg"
          
    name "<tt182938>Anchor Management</tt182938>"
          
    nextPlay 30991
        fruitmachine 
    = (Object)#3
          
    accessible = (null)
          
    cost 0
          image 
    "http://images.neopets.com/games/clicktoplay/icon_20.gif"
          
    name "Fruit Machine"
          
    nextPlay = (null)
        
    mobilescratchcard = (Object)#4
          
    accessible = (null)
          
    cost 0
          image 
    ""
          
    name "Scratch Card"
          
    nextPlay = (null)
        
    wheelofexcitement = (Object)#5
          
    accessible = (null)
          
    cost 500
          image 
    "http://images.neopets.com/games/clicktoplay/icon_13.gif"
          
    name "Wheel of Excitement"
          
    nextPlay = (null)
      
    neopoints false 
    MobileService.feedPet(username,token,petname)
    A new daily , allows u to feed ur pet once per day on mobile for free.

    MobileService.deleteEvents(ids,username,token)
    Delete events , pretty simple


    MobileScratchcardService.timeRemaining(username,to ken)
    Time left until user can buy a mobile scratch card

    MobileScratchcardService.getCard(username,token)
    Get a mobiloe scratch card


    MobileScratchcardService.finishCard(username,token )
    Finish a mobile scratch card

    NewsService.getNews()
    Gets the home page news in html format..
    Last edited by DarkByte; 03-02-2014 at 06:53 PM.

  2. The Following 4 Users Say Thank You to DarkByte For This Useful Post:

    janikanicolepi (03-04-2014),Maison (03-02-2014),VitaminX (03-04-2014),wrath (03-02-2014)

  3. #2
    janikanicolepi's Avatar
    Joined
    Jan 2013
    Posts
    203
    Userbars
    2
    Thanks
    136
    Thanked
    95/49
    DL/UL
    35/0
    Mentioned
    14 times
    Time Online
    7d 11h 3m
    Avg. Time Online
    2m
    I always wonder what the token function means in the amfphp, now I know Thanks @(you need an account to see links)!
    My First Guide on [GM] Score Sending

    My Second Guide on How to AoB (Array of Bytes) Habitarium

  4. #3
    VitaminX's Avatar
    Joined
    Sep 2013
    Posts
    741
    Userbars
    5
    Thanks
    416
    Thanked
    632/340
    DL/UL
    36/0
    Mentioned
    166 times
    Time Online
    93d 23h 10m
    Avg. Time Online
    35m
    I thank you.

    Back to coding I am.

Posting Permissions

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