Author Topic: Armageddon  (Read 6695 times)

Offline chadk

Armageddon
« on: September 27, 2006, 03:53:06 am »
Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: Armageddon.php
//      RESETS the bank and all user's money to ZERO

//VERSION: 1.0 (Build 1)
//DATE: Sep 26th, 2006
// $Id: Armageddon.php chadk $

class item_armageddon extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Chad";
$this->authorWeb "http://www.aviary.info/";
$this->authorEmail "generalchad@gmail.com";

        
$this->name "ARMAGEDDON!";
        
$this->desc "This will reduce EVERYONES credits on hand AND in the bank to ZERO!!! EVERYONE!!!";
        
$this->price 100000;
        
        
$this->require_input false;
        
$this->can_use_item true;
    }

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;
        


            
$result db_query("UPDATE {$db_prefix}members
                                SET moneyBank = 0, money = 0"
__FILE____LINE__);

                return 
"Its the end of the world as they know it, and you feel fine.";
        }
}
?>
« Last Edit: October 22, 2006, 06:26:44 am by chadk »

Offline TechnoDragon

Re: Armageddon
« Reply #1 on: September 28, 2006, 01:58:32 pm »
WOW!  That is a harsh Item!
Don't tell me to get into shape...I have a shape...It is round!


Offline chadk

Re: Armageddon
« Reply #2 on: September 28, 2006, 10:19:57 pm »
My users have already done it! lol It costs I think 100000 credits and I only give 5 credits for a post and 1 for a reply...

Offline TechnoDragon

Re: Armageddon
« Reply #3 on: September 30, 2006, 12:08:03 am »
LOL...I upped the price to 500,000 simply because I have a few members that have been around since the beginning and 100,000 is nothing to them
Don't tell me to get into shape...I have a shape...It is round!


Offline Daniel15

Re: Armageddon
« Reply #4 on: September 30, 2006, 03:00:00 pm »
This sounds like a nice item... Good work chadk :D

Offline chadk

Re: Armageddon
« Reply #5 on: September 30, 2006, 10:59:30 pm »
Well it's not perfect.  It doesn't PM the site admin the name of the person who did it, which I'd like it to do.

Offline Aes-Sedai

Re: Armageddon
« Reply #6 on: April 28, 2007, 04:09:18 pm »
To install this item, do you put "Armageddon.php" in your shop/items folder and copy the code into it?

I'm new to this and I'm unsure.

Offline David

Re: Armageddon
« Reply #7 on: April 28, 2007, 05:02:56 pm »
Copy the code...open a file in a good text editor...or failing that Notepad...paste the code into the text editor making sure that there is no whitespace after "?>"

Save the file as Armageddon.php and then upload it to your server in the Sources/shop/items directory...you might also like to find an image for it and to add that to the Sources/shop/item_images so that it can make the listing for this item more attractive.

 Go to ACP>Shop Administration>Add/Edit/Delete Items>

 Select this item from the drop down list fill in the fields as per your requirements and associate the item with the image you found for it.

Offline adicrst

Re: Armageddon
« Reply #8 on: April 30, 2007, 11:09:38 pm »
this is just perfect  O0