Includes : Neopets : Shop [DISCONTINUED]

By w35l3y Last update Jul 29, 2009 — Installed 30 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Script Summary:
Shop Function
Version: 1.0.0.2
Copyright: 2009, w35l3y (http://gm.wesley.eti.br/includes)
License: GNU GPL

This script has no discussions.

start the discussion

This script has no reviews.

This script was discontinued!
New version : http://userscripts.org/scripts/show/56562

FOR SCRIPTERS/PROGRAMMERS only

If you aren't either scripter or programmer, you're discouraged to install this script directly.
But if you are and intend to use this script, please warn your users to install Mason (Firefox plugin) and follow the steps below (BEFORE INSTALLING section).

BEFORE INSTALLING

  1. Make sure to install Mason (Firefox plugin) first
  2. Once installed, right-click on Mason icon in statusbar or go to menu Tools > Mason Option...
  3. Click "Add..."
  4. Add:
    Description :	Shop : Buy
    URL :		^http:\/\/www\.neopets\.com\/buy_item\.phtml
    Content-Type :	(leave it blank)
    Function :	referrer to specified site
    Config... :	http://www.neopets.com/browseshop.phtml
    		(click "Config..." button to type the value above)
  5. Click OK
  6. Make sure to have the new option Activated
  7. Click OK again
  8. 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/54527.user.js

Examples

Shop.list("http://www.neopets.com/browseshop.phtml?owner=...", function(list,e,h,m)
{
	var items = [];
	for ( var ai = 0 , at = list.length ; ai < at ; ++ai )
	{
		var item = list[ai];
		items.push([
			item.Id,
//			item.Link,
//			item.Image,
			item.Name,
//			item.Description,
			item.Quantity,
			item.Price
		].join("\t"));
	}
	alert(items.join("\n"));
});