-
www.PRO-MU.com
Clear Inventory Module
Module for Clear Inventory please :)
-
-
Member
Re: Clear Inventory Module
if you use mucore have in AdminCP module.
-
www.PRO-MU.com
Re: Clear Inventory Module
How about the codes ? Do you have it sir ?
-
Member
Re: Clear Inventory Module
i think its . but i am not sure.
$active = trim($config->active);
if ($active == '0') {
echo msg('0', text_sorry_feature_disabled);
} else {
if (isset($_GET['cid'])) {
echo '<div style="margin-top: 10px;">';
$id = safe_input($_GET['cid'], '');
if (empty($id) || !is_numeric($id)) {
header('Location: ' . $core_run_script . '');
exit();
} else {
if (character_and_account($id, $user_auth_id) === false) {
header('Location: ' . $core_run_script . '');
exit();
} else {
if (account_online($user_auth_id) === true) {
echo msg('0', text_clearinventory_t1);
} else {
$clear = $core_db->Execute("Update character set [inventory]=CONVERT(varbinary(1080), null) where mu_id=?", array(
$id
));
if ($clear) {
echo msg('1', text_clearinventory_t2);
} else {
echo msg('0', text_clearinventory_t3);
}
}
}
}
}
if you want to all players delete clear invertory code in sql server :
here :
UPDATE warehouse
SET Items=('')
or
UPDATE Character
SET Inventory=('')
-
www.PRO-MU.com
Re: Clear Inventory Module
Oh well, I already activated it .. Thank you :)