YOUREWINNER.COM
 
   

Where is the iridium?
 
WINNEROverTheRoad
#1 11-01-2013, 18:40:19 PM
I don't see it in the rigshop!


Why race off the road when you can race over it?
JAVIKS
#2 11-01-2013, 18:58:47 PM
  • Global Moderator
  • *****
    *****
    *****
    *****
    *****
    *
  • Posts: 7053
  • Rigcoins: 366776.17
  • Send Money to JAVIKS
    Thumb Up
  • Coors Light FanTAG TEAM CHAMPDad+
  • "cats are like potato chips"
its sold out sorry!


JAVIKS
#3 11-01-2013, 19:04:19 PM
  • Guest
Hi WOTR adding new items is very easy just use the template

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]
<?php
if (!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 directory

Then you can add the item from Shop Administration


Thunder
#4 12-01-2013, 10:26:59 AM
WOTR isn't an admin though. I vote to make WOTR and everyone else on this site an admin.


yourethunder
Svetlana
#5 12-01-2013, 11:18:08 AM
i vote to make thunder a little bitch

LOOKS LIKE THE MOTION HAS PASSED ALREADY


lana_chan my name is erin
Skrag
#6 12-01-2013, 12:16:49 PM
  • Welcome to the layer cake son.
  • Global Moderator
  • *****
    *****
    **
  • Posts: 6895
  • Rigcoins: 74113745.19
  • Send Money to Skrag
    Trophy
  • sergey avatarwelcome to the layer cake sonBIG PICTURES+
  • "mmmmmmmmm lemon"
I don't see it in the rigshop!

no-one cares about you or your stupid iridium


ballinator
#7 15-01-2013, 00:50:21 AM
iridium is just one of the myths that science wants us to believe like magnets can i get a WOOP WOOP #ICP4life


0 Members and 1 Guest are viewing this topic.