Includes : Neopets

By w35l3y Last update Aug 6, 2009 — Installed 922 times. Daily Installs: 8, 5, 6, 1, 6, 7, 2, 1, 3, 7, 4, 6, 1, 3, 2, 9, 2, 4, 5, 3, 3, 5, 6, 6, 8, 8, 8, 1, 0, 5, 5
Script Summary:
Neopets Function
Version: 1.0.3.3
Copyright: 2009, w35l3y (http://gm.wesley.eti.br/includes)
License: GNU GPL
Recently Updated TopicsPosts
Thanks!2
???2

this script has 2 topics, 4 posts

This script has no reviews.

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);