Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Auto Bless Script

  1. #11

    Joined
    Oct 2016
    Posts
    13
    Userbars
    0
    Thanks
    22
    Thanked
    5/3
    DL/UL
    11/0
    Mentioned
    Never
    Time Online
    6d 13h 42m
    Avg. Time Online
    3m
    Can you make another script that reads books in the inventory?

  2. #12

    Joined
    Dec 2022
    Posts
    163
    Userbars
    14
    Thanks
    209
    Thanked
    319/92
    DL/UL
    29/0
    Mentioned
    23 times
    Time Online
    7d 7h 6m
    Avg. Time Online
    19m
    Quote Originally Posted by Zer0 View Post
    Hi,

    I got bored today, so I decided to write another script. Below is a script that opens up all Faerie Bottles in your inventory, and blesses your pet.

    Code:
    // ==UserScript==
    // @name         Auto-Bless Obfuscated
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  Automatically blesses you using all the Bottled Faeries that you have in your inventory.
    // @author       zer0
    // @match        https://www.neopets.com/inventory.phtml
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        GM.xmlHttpRequest
    // ==/UserScript==
    var _0x540be=_0x1e80;(function(_0x491822,_0x2cd642){var _0x3ce393=_0x1e80,_0x522cbd=_0x491822();while(!![]){try{var _0x1e8137=parseInt(_0x3ce393(0xe7))/0x1+parseInt(_0x3ce393(0xe8))/0x2*(-parseInt(_0x3ce393(0xe3))/0x3)+parseInt(_0x3ce393(0xe9))/0x4*(-parseInt(_0x3ce393(0xe2))/0x5)+parseInt(_0x3ce393(0xf2))/0x6+-parseInt(_0x3ce393(0x100))/0x7*(-parseInt(_0x3ce393(0xea))/0x8)+parseInt(_0x3ce393(0xfd))/0x9+-parseInt(_0x3ce393(0xe6))/0xa*(parseInt(_0x3ce393(0x106))/0xb);if(_0x1e8137===_0x2cd642)break;else _0x522cbd['push'](_0x522cbd['shift']());}catch(_0x4eebb1){_0x522cbd['push'](_0x522cbd['shift']());}}}(_0x2d5c,0x39607));const FAERIE_BOTTLE_NAMES=[_0x540be(0xf8),_0x540be(0x105),'Weak\x20Bottled\x20Earth\x20Faerie',_0x540be(0xf3),_0x540be(0xfe),_0x540be(0x102),_0x540be(0xe5)];async function accessPage(_0x2c54fa){var _0x232ef7=_0x540be,_0x4e3efb='';return await GM[_0x232ef7(0xfa)]({'method':'GET','url':_0x2c54fa,'onload':function(_0x76cf34){var _0x3cffc5=_0x232ef7;_0x4e3efb=_0x76cf34[_0x3cffc5(0xfb)];}}),_0x4e3efb;}function doBlessing(){var _0xaa0ebd=_0x540be;if(document[_0xaa0ebd(0x104)](_0xaa0ebd(0xf6))==null){setTimeout(doBlessing,0x1f4);return;}var _0x9223fd=document['getElementById'](_0xaa0ebd(0xf6))['innerText'];if(_0x9223fd!=_0xaa0ebd(0x107)){var _0x3ca722=document['getElementById'](_0xaa0ebd(0x101))[_0xaa0ebd(0xf4)](_0xaa0ebd(0xef))[0x0],_0x417ace=_0x3ca722['options'][0x1][_0xaa0ebd(0xf7)];if(_0x417ace['includes'](_0xaa0ebd(0xeb))){_0x3ca722[_0xaa0ebd(0x103)]=0x1;var _0x25574e=document['getElementsByClassName'](_0xaa0ebd(0xed))[0x0];_0x25574e[_0xaa0ebd(0xec)](),location[_0xaa0ebd(0xff)]();}}}function _0x2d5c(){var _0x394bad=['Weak\x20Bottled\x20Dark\x20Faerie','124718OqSTFR','Loading...','5vqVYbw','5193joCtMC','item-name','Unidentifiable\x20Weak\x20Bottled\x20Faerie','670hIqOXd','279316jQYVmI','78FjQaMk','812236vwniEK','8zxVhjy','Bless','click','invitem-submit','item-img','select','getElementsByClassName','grid-item','2350386GzpciS','Weak\x20Bottled\x20Fire\x20Faerie','getElementsByTagName','attributes','invItemDesc','innerText','Weak\x20Bottled\x20Air\x20Faerie','value','xmlHttpRequest','responseText','length','4034943GshMyh','Weak\x20Bottled\x20Light\x20Faerie','reload','1020985dXYaPV','iteminfo_select_action','Weak\x20Bottled\x20Water\x20Faerie','selectedIndex','getElementById'];_0x2d5c=function(){return _0x394bad;};return _0x2d5c();}function _0x1e80(_0x53c612,_0x39751d){var _0x2d5cde=_0x2d5c();return _0x1e80=function(_0x1e8024,_0xe5dee8){_0x1e8024=_0x1e8024-0xe2;var _0x344118=_0x2d5cde[_0x1e8024];return _0x344118;},_0x1e80(_0x53c612,_0x39751d);}function getAllBottleFaerieItems(){var _0x13a8e9=_0x540be,_0x39485c=document[_0x13a8e9(0xf0)](_0x13a8e9(0xf1));if(_0x39485c[_0x13a8e9(0xfc)]==0x0){setTimeout(getAllBottleFaerieItems,0x1f4);return;}for(var _0x129a0d=0x0;_0x129a0d<_0x39485c[_0x13a8e9(0xfc)];_0x129a0d++){var _0x4fd863=_0x39485c[_0x129a0d][_0x13a8e9(0xf0)](_0x13a8e9(0xe4))[0x0]['innerText'];if(FAERIE_BOTTLE_NAMES['includes'](_0x4fd863)){var _0x573398=document[_0x13a8e9(0xf0)](_0x13a8e9(0xee))[_0x129a0d],_0x14efcd=_0x573398[_0x13a8e9(0xf5)]['data-objid']['value'],_0x5570ca=_0x573398['attributes']['data-itemquantity'][_0x13a8e9(0xf9)];_0x573398[_0x13a8e9(0xec)](),doBlessing();return;}}}getAllBottleFaerieItems();
    EDIT: As requested by @(you need an account to see links), I have made a script based on the Bottled Faerie script to automatically put stamps into your album.

    Just a few things to note:
    1) The first run of this will take longer as it takes time for the script to gather together all the stamps that you already have. After the first run, it will be faster since it is aware of what stamps you already have.
    2) As mentioned by howdy:
    !URGENT NOTE!

    The stamp adding script automatically adds any stamps in your inventory to your stamp album.
    IF YOU ARE USING THIS SCRIPT
    TURN IT OFF AFTER USING
    TO AVOID ACCIDENTALLY ADDING STAMPS
    FROM YOU INVENTORY TO YOUR ALBUM!

    Stamps are not removable from your album once they're added!!!


    Code:
    // ==UserScript==
    // @name         Auto Stamp Album Obfuscated
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  Automatically puts the stamp into your stamp album if it isn't already in.
    // @author       zer0
    // @match        https://www.neopets.com/inventory.phtml
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        GM.xmlHttpRequest
    // ==/UserScript==
    (function(_0x5d5beb,_0x501184){var _0x131a8b=_0x17c8,_0x4a95d7=_0x5d5beb();while(!![]){try{var _0x426f74=parseInt(_0x131a8b(0x110))/0x1+-parseInt(_0x131a8b(0x109))/0x2+parseInt(_0x131a8b(0x107))/0x3*(-parseInt(_0x131a8b(0xe2))/0x4)+-parseInt(_0x131a8b(0xe4))/0x5*(-parseInt(_0x131a8b(0xf9))/0x6)+parseInt(_0x131a8b(0xff))/0x7*(-parseInt(_0x131a8b(0xe3))/0x8)+-parseInt(_0x131a8b(0xee))/0x9+parseInt(_0x131a8b(0x106))/0xa;if(_0x426f74===_0x501184)break;else _0x4a95d7['push'](_0x4a95d7['shift']());}catch(_0x15af65){_0x4a95d7['push'](_0x4a95d7['shift']());}}}(_0x28dd,0x612f9));function _0x28dd(){var _0x9614d2=['item-img','182978vNJaCG','\x20Object\x20ID:\x20','getElementsByClassName','iteminfo_select_action','grid-item','attributes','includes','180570xRTZJV','No\x20stamps\x20left\x20to\x20add\x20to\x20album','neoStampCollection','split','getElementById','reload','1072bMoBWh','752240AJJeDk','2290VpzxBZ','innerHTML','No\x20Stamp','length','GET','getElementsByTagName','errorOuter','options','Skipping\x20','select','4084893vjKiQO','log','It\x20is\x20already\x20in\x20the\x20stamp\x20album!\x20Updating\x20stamp\x20in\x20local\x20storage...','innerText','html','table','alt','content','Stamp','invItemDesc','https://www.neopets.com/stamps.phtml?type=album','444uTBTan','push','click','setItem','href','createElement','21WNjCay','Stamp\x20Album','responseText','.\x20Already\x20in\x20the\x20stamp\x20album','getItem','img','selectedIndex','14366510rYShaU','4764NaQvAu'];_0x28dd=function(){return _0x9614d2;};return _0x28dd();}async function accessPage(_0x52b666){var _0x172f80=_0x17c8,_0x3917c2='';return await GM['xmlHttpRequest']({'method':_0x172f80(0xe8),'url':_0x52b666,'onload':function(_0x14ba17){var _0x4c49c4=_0x172f80;_0x3917c2=_0x14ba17[_0x4c49c4(0x101)];}}),_0x3917c2;}function waitForResult(){var _0x5c1306=_0x17c8,_0x497dac=document['getElementsByClassName'](_0x5c1306(0xea));_0x497dac[_0x5c1306(0xe7)]!=0x0&&(console[_0x5c1306(0xef)](_0x5c1306(0xf0)),getStampCollection()['then'](_0x5d5a4d=>{var _0x45b600=_0x5c1306;console['log']('Updated!'),localStorage[_0x45b600(0xfc)]('neoStampCollection',_0x5d5a4d);}));}function putIntoStampAlbum(){var _0x1fb584=_0x17c8;if(document[_0x1fb584(0x114)](_0x1fb584(0xf7))==null){setTimeout(putIntoStampAlbum,0x1f4);return;}var _0x486ccc=document[_0x1fb584(0x114)]('invItemDesc')[_0x1fb584(0xf1)];if(_0x486ccc!='Loading...'){var _0x5da5cf=document[_0x1fb584(0x114)](_0x1fb584(0x10c))['getElementsByTagName'](_0x1fb584(0xed))[0x0];console[_0x1fb584(0xef)](_0x5da5cf);var _0x178d07=_0x5da5cf[_0x1fb584(0xeb)][0x1][_0x1fb584(0xf1)];if(_0x178d07[_0x1fb584(0x10f)](_0x1fb584(0x100))){_0x5da5cf[_0x1fb584(0x105)]=0x1;var _0x6eb110=document['getElementsByClassName']('invitem-submit')[0x0];_0x6eb110[_0x1fb584(0xfb)](),setTimeout(waitForResult,0x15e),location[_0x1fb584(0xe1)]();}}}function _0x17c8(_0x166f3c,_0x1683cf){var _0x28ddd4=_0x28dd();return _0x17c8=function(_0x17c832,_0x3f3f19){_0x17c832=_0x17c832-0xe1;var _0x29f6fc=_0x28ddd4[_0x17c832];return _0x29f6fc;},_0x17c8(_0x166f3c,_0x1683cf);}async function getStampCollection(){var _0x4f976b=_0x17c8,_0x4e4639=await accessPage(_0x4f976b(0xf8)),_0x4a5353=document[_0x4f976b(0xfe)](_0x4f976b(0xf2));_0x4a5353[_0x4f976b(0xe5)]=_0x4e4639;var _0x19a7eb=_0x4a5353[_0x4f976b(0x10b)](_0x4f976b(0xf5))[0x0][_0x4f976b(0xe9)]('p')[0x2][_0x4f976b(0xe9)]('a'),_0x1adf2f=[];for(const _0x236abb of _0x19a7eb){if(!_0x236abb['outerHTML'][_0x4f976b(0x10f)]('page_id=0')){var _0x466398=await accessPage(_0x236abb[_0x4f976b(0xfd)]);_0x4a5353=document[_0x4f976b(0xfe)](_0x4f976b(0xf2)),_0x4a5353[_0x4f976b(0xe5)]=_0x466398;var _0x293532=_0x4a5353[_0x4f976b(0x10b)](_0x4f976b(0xf5))[0x0][_0x4f976b(0xe9)](_0x4f976b(0xf3))[0x0][_0x4f976b(0xe9)](_0x4f976b(0x104));for(const _0x3eee6b of _0x293532){_0x3eee6b[_0x4f976b(0xf4)]!=_0x4f976b(0xe6)&&_0x1adf2f[_0x4f976b(0xfa)](_0x3eee6b[_0x4f976b(0xf4)]);}}}return _0x1adf2f;}async function getAllStampsInInventory(){var _0x248e50=_0x17c8,_0x3c2260=document['getElementsByClassName'](_0x248e50(0x10d));if(_0x3c2260[_0x248e50(0xe7)]==0x0){setTimeout(getAllStampsInInventory,0xc8);return;}var _0x42bed4=[];localStorage[_0x248e50(0x103)](_0x248e50(0x112))==null?(_0x42bed4=await getStampCollection(),console['log'](_0x42bed4),localStorage['setItem']('neoStampCollection',_0x42bed4)):_0x42bed4=localStorage[_0x248e50(0x103)]('neoStampCollection')[_0x248e50(0x113)](',');for(var _0x5dad29=0x0;_0x5dad29<_0x3c2260[_0x248e50(0xe7)];_0x5dad29++){var _0x36383d=_0x3c2260[_0x5dad29]['getElementsByClassName']('item-name')[0x0][_0x248e50(0xf1)];if(!_0x42bed4['includes'](_0x36383d)&&_0x36383d[_0x248e50(0x10f)](_0x248e50(0xf6))){var _0x41b7b3=document[_0x248e50(0x10b)](_0x248e50(0x108))[_0x5dad29],_0x12b4d5=_0x41b7b3[_0x248e50(0x10e)]['data-objid']['value'];console['log']('Item\x20Name:\x20'+_0x36383d+_0x248e50(0x10a)+_0x12b4d5),_0x41b7b3[_0x248e50(0xfb)](),putIntoStampAlbum(),_0x42bed4[_0x248e50(0xfa)](_0x36383d),localStorage[_0x248e50(0xfc)](_0x248e50(0x112),_0x42bed4);return;}else _0x42bed4[_0x248e50(0x10f)](_0x36383d)&&_0x36383d[_0x248e50(0x10f)](_0x248e50(0xf6))&&console['log'](_0x248e50(0xec)+_0x36383d+_0x248e50(0x102));}console[_0x248e50(0xef)](_0x248e50(0x111));}getAllStampsInInventory();
    Hey Zero, any chance you can make it so that we can select the pet we want to apply the bless to?

  3. #13

    Joined
    Apr 2023
    Posts
    54
    Userbars
    5
    Thanks
    32
    Thanked
    7/7
    DL/UL
    23/0
    Mentioned
    6 times
    Time Online
    2d 2h 13m
    Avg. Time Online
    6m
    How does the script work? I install it and it only click the Bottled Faerie in my inventory but dosen't chose any pets,or we should chose the pet by ourself?

  4. #14
    *squeak*
    Bat's Avatar
    Joined
    Nov 2012
    Posts
    4,025
    Userbars
    152
    Thanks
    2,147
    Thanked
    47,334/3,563
    DL/UL
    34/1
    Mentioned
    1,772 times
    Time Online
    644d 5h 51m
    Avg. Time Online
    3h 38m
    Quote Originally Posted by metawin View Post
    How does the script work? I install it and it only click the Bottled Faerie in my inventory but dosen't chose any pets,or we should chose the pet by ourself?
    The code appears to select the first pet in the drop down list to perform the blessing, but the portion that submits the request to the server is unable to fully execute because the code immediately follows that with a page refresh that cancels the request. In the code portion of the user script, replace:

    Code:
    location[_0xaa0ebd(0xff)]()
    with:

    Code:
    setTimeout(function () { location.reload(); }, 2000)
    and the script should slow down long enough to let the blessing get through.

  5. The Following 2 Users Say Thank You to Bat For This Useful Post:

    DarkSkies (06-26-2023),Pidgey (06-26-2023)

  6. #15

    Joined
    Apr 2023
    Posts
    54
    Userbars
    5
    Thanks
    32
    Thanked
    7/7
    DL/UL
    23/0
    Mentioned
    6 times
    Time Online
    2d 2h 13m
    Avg. Time Online
    6m
    Quote Originally Posted by Bat View Post
    The code appears to select the first pet in the drop down list to perform the blessing, but the portion that submits the request to the server is unable to fully execute because the code immediately follows that with a page refresh that cancels the request. In the code portion of the user script, replace:

    Code:
    location[_0xaa0ebd(0xff)]()
    with:

    Code:
    setTimeout(function () { location.reload(); }, 2000)
    and the script should slow down long enough to let the blessing get through.
    Thank you! I'll try it later

  7. #16
    Processing... Hall's Avatar
    Joined
    Oct 2017
    Posts
    1,253
    Pronouns
    She/Her
    Userbars
    81
    Thanks
    2,468
    Thanked
    2,363/821
    DL/UL
    164/0
    Mentioned
    166 times
    Time Online
    60d 13h 48m
    Avg. Time Online
    35m
    This works wonderfully, unfortunately since you can't choose the pet to apply the blessings I can't use it to it's full potential.


    (you need an account to see links)

    Thank you Hollow for the shiny Minior art!
    Thank you ♥ hearts ♥ for the shiny Minior pumpkin!
    Mint born 11/15/2020

Posting Permissions

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