@jeffzkie69
open pages_modules/user_cp/grandreset_character.php
find
PHP Code:
$check_for_memb_id = $core_db2->Execute("Select ".MU_COINS_USERID_COLUMN." from ".MU_COINS_TABLE." where ".MU_COINS_USERID_COLUMN."=?",array($user_auth_id));
if($check_for_memb_id->EOF){
$set_credits = $core_db2->Execute("insert into ".MU_COINS_TABLE." (".MU_COINS_USERID_COLUMN.",".MU_COINS_COLUMN.")VALUES(?,?)",array($user_auth_id,$new_bcredits));
}else{
$set_credits = $core_db2->Execute("Update ".MU_COINS_TABLE." set ".MU_COINS_COLUMN."=".MU_COINS_COLUMN."+? where ".MU_COINS_USERID_COLUMN."=?",array($new_bcredits,$user_auth_id));
}
replace with
PHP Code:
$check_for_memb_id = $core_db2->Execute("Select memb___id from DmN_Shop_Credits where memb___id=?",array($user_auth_id));
if($check_for_memb_id->EOF){
$set_credits = $core_db2->Execute("Insert Into DmN_Shop_Credits (memb___id,credits)VALUES(?,?)",array($user_auth_id,$new_bcredits));
}else{
$set_credits = $core_db2->Execute("Update DmN_Shop_Credits set credits=credits+? where memb___id=?",array($new_bcredits,$user_auth_id));
}
& Test.
If you use 2 DB & DmN_Shop_Credits location is MuOnline db, replace $core_db2 with $core_db
if you want to use credits2/credits3 instead of credits -> replace everywhere.