sub UpdateStatus { ## Usage: UpdateStatus($charid, xx) where xx is new status level my $dbh = plugin::MySQL_Connect(); $dbh->do("UPDATE `account` SET `status` = '$_[1]' WHERE `id` = '$_[0]' "); $dbh->disconnect(); $client->UpdateAdmin(); }