Clear Inventory Module

Results 1 to 5 of 5
  1. #1
    www.PRO-MU.com 0pTi is online now
    MemberRank
    Jul 2013 Join Date
    CanadaLocation
    311Posts

    ! Clear Inventory Module

    Module for Clear Inventory please :)


  2. #2
    Member THEWEB is offline
    MemberRank
    Jul 2013 Join Date
    67Posts

    Re: Clear Inventory Module

    if you use mucore have in AdminCP module.

  3. #3
    www.PRO-MU.com 0pTi is online now
    MemberRank
    Jul 2013 Join Date
    CanadaLocation
    311Posts

    Re: Clear Inventory Module

    How about the codes ? Do you have it sir ?

  4. #4
    Member THEWEB is offline
    MemberRank
    Jul 2013 Join Date
    67Posts

    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=('')

  5. #5
    www.PRO-MU.com 0pTi is online now
    MemberRank
    Jul 2013 Join Date
    CanadaLocation
    311Posts

    Re: Clear Inventory Module

    Oh well, I already activated it .. Thank you :)



Advertisement