Script Summary: Neopets Function
Version: 1.0.3.6
Copyright: 2009+, w35l3y (http://gm.wesley.eti.br)
License: GNU GPL

This script was discontinued!
New version : http://userscripts.org/scripts/show/63810
FOR SCRIPTERS/PROGRAMMERS only
If you are neither scripter nor programmer, you're discouraged to install this script directly.Documentation
- Date Time(boolean is_dynamic)
- Neopian Standard Time
- String Username
- Current Logged username
- String Language
- Current Language
- String Theme
- Current theme
- Number Neopoints
- Neopoints in hand
- Number Neocredits
- Neocredits
- Object ActivePet
- Object with the following properties : Name, Species, Health, Mood, Hunger, Age, Level
- Array Neofriends
- Array of objects with the following properties : Avatar, Username, Online
Examples
// @include http://www.neopets.com/*
setInterval(function () {
alert([
NeopetsDocument.Time(true),
NeopetsDocument.Time(false)
].join("\n"));
}, 1000);// "document" retrieved from xhr var doc = new Neopets(xhr.responseXML); alert(doc.Username);
var doc = new Neopets(document); // you may use NeopetsDocument instead
alert("My active pet is " + doc.ActivePet.Name);// @include http://www.neopets.com/*
alert("My first neofriend is " + NeopetsDocument.Neofriends[0].Username);


