It's pretty much a rock, it doesn't do anything but instead you can use it, when you use it, it just says "You eatted the cookie" and it disappears without any advantages
Why would you want this? You could tell someone "Congratulations, have a cookie
"
Then give them this item
Cookie.php
<?php
/**********************************************************************************
* SMFShop item *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-01-18 19:26:55 +1100 (Thu, 18 Jan 2007) $ *
* $Id:: Cookie.php 79 2007-01-18 08:26:55Z daniel15 $ *
* Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
class item_Cookie extends itemTemplate
{
// When this function is called, you should set all the item's
function getItemDetails()
{
// The author of the item
$this->authorName = 'xfollowthereaperx';
// The author's website
$this->authorWeb = '';
// And their email address
$this->authorEmail = 'xfollowthereaperx@hotmail.com';
// VALUES CHANGEABLE FROM WITHIN ADMIN PANEL:
// The name of the item
$this->name = 'Cookie';
// The item's description
$this->desc = 'Here, have a Cookie';
// The item's price
$this->price = 10;
//UNCHANGEABLE VALUES:
// Whether the item requires input or not.
$this->require_input = false;
// Useable?
$this->can_use_item = true;
}
// Since this item requires no input, we don't need to have a getUseInput function
// here (see the testitem2.php file if you want to make an item that needs input)
function onUse()
{
return 'You eatted the cookie';
}
}
?>