Includes : Neopets : Safety Deposit Box [DISCONTINUED]
— Last update Jul 29, 2009 — Installed 36 times.|
Script Summary:
SDB Function Version: 1.0.3.2 Copyright: 2009, w35l3y (http://gm.wesley.eti.br/includes) License: GNU GPL |
This script has no discussions. |
This script has no reviews. |
This script was discontinued!
New version : http://userscripts.org/scripts/show/56528
FOR SCRIPTERS/PROGRAMMERS only
If you are neither scripter nor programmer, you're discouraged to install this script directly.But if you are and intend to use this script, please advice your users to install Mason (Firefox plugin) and follow the steps below (BEFORE INSTALLING section).
At time this is not required, but it may be in near future so it's highly recommended users to install Mason.
BEFORE INSTALLING (not required but highly recommended)
- Make sure to install Mason (Firefox plugin) first
- Once installed, right-click on Mason icon in statusbar or go to menu Tools > Mason Option...
- Click "Add..."
- Add:
Description : Safety Deposit Box : SDB.remove URL : ^http:\/\/www\.neopets\.com\/process_safetydeposit\.phtml\?checksub=scan Content-Type : (leave it blank) Function : referrer to specified site Config... : http://www.neopets.com/safetydeposit.phtml (click "Config..." button to type the value above)
- Click OK
- Make sure to have the new option Activated
- Click OK again
- Then you may install the script
Implementing
// @require http://userscripts.org/scripts/source/54389.user.js // @require http://userscripts.org/scripts/source/53965.user.js // @require http://userscripts.org/scripts/source/54391.user.js
Examples
// Removes your codestones from SDB
SDB.list({"category":2}, function(list)
{
var items = [];
for ( var ai = 0 , at = list.length ; ai < at ; ++ai )
{
var item = list[ai];
items.push([item.Id,item.Quantity,item.Name]);
}
alert("[Codestones]\n" + items.join("\n"));
if (items.length)
setTimeout(SDB.remove, 1000, items, null, {"category":2}, function(l,e,h,m)
{
if (h) // has_error ?
{
alert(m && m.textContent);
}
else
{
alert("Remaining codestones on SDB: " + l.length);
}
});
});





