success=1; //you could use a tag like this to inform the browser if the user has logged out inv['count'] = 6; inv[0]['id'] = 12053566; inv[0]['name'] = "Bracelet of the Elements"; inv[0]['attrib'] = "(Magical)"; inv[0]['status'] = "(Broken)"; inv[0]['desc'] = "This is a silver band. There are two small stones set into it - one a reddish orange, the other a torquoise."; inv[0]['wiki'] = "Bracelet_of_the_Elements"; inv[0]['action'] = "Remove"; inv[0]['drop'] = 0; inv[0]['quant'] = 1; inv[0]['wt'] = 0; inv[1]['id'] = 12476948; inv[1]['name'] = "Greater Ring of Fire Protection"; inv[1]['attrib'] = "(Magical)"; inv[1]['status'] = ""; inv[1]['desc'] = "This is a carbon-black ring made of iron."; inv[1]['wiki'] = "Greater_Ring_of_Fire_Protection"; inv[1]['action'] = "Remove"; inv[1]['drop'] = 0; inv[1]['quant'] = 1; inv[1]['wt'] = 0; inv[2]['id'] = 12657249; inv[2]['name'] = "Potion of Combat Clarity"; inv[2]['attrib'] = "(Magical)"; inv[2]['status'] = ""; inv[2]['desc'] = "This is a phosphorescent blue liquid in a simple bottle."; inv[2]['wiki'] = "Potion_of_Combat_Clarity"; inv[2]['action'] = "Drink"; inv[2]['drop'] = 1; inv[2]['quant'] = 1; inv[2]['wt'] = 1; inv[3]['id'] = 12728780; inv[3]['name'] = "Potion of Flying"; inv[3]['attrib'] = "(Magical)"; inv[3]['status'] = ""; inv[3]['desc'] = "This is a brown-colored liquid in a simple bottle. It smells extremely foul."; inv[3]['wiki'] = "Potion_of_Flying"; inv[3]['action'] = "Drink"; inv[3]['drop'] = 1; inv[3]['quant'] = 1; inv[3]['wt'] = 1; inv[4]['id'] = 12015310; inv[4]['name'] = "Potion of Invulnerability"; inv[4]['attrib'] = "(Magical)"; inv[4]['status'] = ""; inv[4]['desc'] = "This is a foul-smelling red liquid in a simple bottle."; inv[4]['wiki'] = "Potion_of_Invulnerability"; inv[4]['action'] = "Drink"; inv[4]['drop'] = 1; inv[4]['quant'] = 1; inv[4]['wt'] = 1; inv[5]['id'] = 11418502; inv[5]['name'] = "Potion of Regeneration"; inv[5]['attrib'] = "(Magical)"; inv[5]['status'] = ""; inv[5]['desc'] = "This is a viscous, black liquid in a simple bottle."; inv[5]['wiki'] = "Potion_of_Regeneration"; inv[5]['action'] = "Drink"; inv[5]['drop'] = 1; inv[5]['quant'] = 1; inv[5]['wt'] = 1; spell['count'] = 1; spell[0]['id'] = 11874358; spell[0]['name'] = "The Crushing"; spell[0]['desc'] = "When this spell is cast, thousands upon thousands of flecks of dust and debris will rise and crush the target, doing impressive damage. This attack will automatically hit. It is an attack spell."; spell[0]['wiki'] = "The_Crushing"; spell[0]['learn'] = 0; spell[0]['learnval'] = 25; spell[0]['drop'] = 0; spell[0]['quant'] = 1; spell[0]['wt'] = 0;