If other admins want to add more stuff it's fairly easy.Just copy this script and change the class name and $this-> values.See the comments for details:Code: [Select]<?phpif (!defined('SMF')) die('Hacking attempt...');require_once(dirname(__FILE__) . '/Blunt.php');class item_SpagHelmet extends item_Blunt // Change SpagHelmet to something else{ function __construct() { parent::__construct(); $this->top_min = -38; // Minimum allowed value for the 'Top' field $this->top_max = 52; // Maximum allowed value for the 'Top' field $this->top_default = -9; // Default value for the 'Top' field $this->left_min = -16; // Minimum allowed value for the 'Left' field $this->left_max = 13; // Maximum allowed value for the 'Left' field $this->left_default = -16; // Default value for the 'Left' field $this->item_id = 2; // Items of the same type should have the same ID so that they will replace each other. Use 1 for blunts/cigars, 2 for hats, 3 for something else, and so on $this->image_url = './avatar_stuff/spaghetti.png'; // URL of the overlay image } function getItemDetails() { $this->authorName = 'steev'; $this->authorWeb = 'http://www.steevswinner.no-ip.org'; $this->authorEmail ='steevsteevp@gmail.com'; $this->name = 'Spaghetti Helmet'; $this->desc = 'Have a bowl of fun!'; $this->price = 2500; $this->require_input = true; $this->can_use_item = true; $this->delete_after_use = false; }}?>Save as 'YourItem.php' and upload to the Sources/shop/items directoryThen you can add the item from Shop Administration
<?phpif (!defined('SMF')) die('Hacking attempt...');require_once(dirname(__FILE__) . '/Blunt.php');class item_SpagHelmet extends item_Blunt // Change SpagHelmet to something else{ function __construct() { parent::__construct(); $this->top_min = -38; // Minimum allowed value for the 'Top' field $this->top_max = 52; // Maximum allowed value for the 'Top' field $this->top_default = -9; // Default value for the 'Top' field $this->left_min = -16; // Minimum allowed value for the 'Left' field $this->left_max = 13; // Maximum allowed value for the 'Left' field $this->left_default = -16; // Default value for the 'Left' field $this->item_id = 2; // Items of the same type should have the same ID so that they will replace each other. Use 1 for blunts/cigars, 2 for hats, 3 for something else, and so on $this->image_url = './avatar_stuff/spaghetti.png'; // URL of the overlay image } function getItemDetails() { $this->authorName = 'steev'; $this->authorWeb = 'http://www.steevswinner.no-ip.org'; $this->authorEmail ='steevsteevp@gmail.com'; $this->name = 'Spaghetti Helmet'; $this->desc = 'Have a bowl of fun!'; $this->price = 2500; $this->require_input = true; $this->can_use_item = true; $this->delete_after_use = false; }}?>
I don't see it in the rigshop!