View Single Post
  #8  
Old 07-02-2008, 03:59 PM
cybernine186
Sarnak
 
Join Date: Feb 2008
Posts: 87
Default

The Coin Wipe under the Maintenance section doesn't work....

This is the proper script for the coin_wipe.php under the scripts folder


PHP Code:
<?php
include("../includes/global.php");


$wipe = new mysql_db;
$wipe->sql "SELECT `id` FROM `character_`";
$wipe->query();

while(
$row $wipe->fetch_assoc()){
    
$profile = new eq;
    
$profile->LoadProfile($row['id']);
    
$profile->SetValue(0'platinum');
    
$profile->SetValue(0'gold');
    
$profile->SetValue(0'silver');
    
$profile->SetValue(0'copper');
    
$profile->SetValue(0'platinum_bank');
    
$profile->SetValue(0'gold_bank');
    
$profile->SetValue(0'silver_bank');
    
$profile->SetValue(0'copper_bank');
    
$profile->SetValue(0'platinum_cursor');
    
$profile->SetValue(0'gold_cursor');
    
$profile->SetValue(0'silver_cursor');
    
$profile->SetValue(0'copper_cursor');
    
$profile->SetValue(0'platinum_shared');
    
$profile->SaveProfile();
    
printf("%d | "$row['id']);
}
?>
Reply With Quote