Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Player Resetting (Manually)

seiyria edited this page Oct 12, 2014 · 3 revisions

Should you ever need to reset a player manually, here's a command (to be run in mongo) that resets them all the way back down:

db.players.update({}, {$set:{
    equipment: null,
    /*permanentAchievements: { isAlphaTester: true },*/
    _baseStats: {},
    _statCache: {},
    hp: { __current: 0, minimum: 0, maximum: 100, booster: 0 },
    mp: { __current: 0, minimum: 0, maximum: 100, booster: 0 },
    level: { __current: 0, minimum: 0, maximum: 100, booster: 0 },
    xp: { __current: 0, minimum: 0, maximum: 1, booster: 0 },
    gold: { __current: 0, minimum: 0, maximum: 99999999999, booster: 0 },
    map: 'Norkos',
    x: 10,
    y: 10,
    personalityStrings: [],
    achievements: [],
    statistics: {},
    professionName: 'Generalist',
    registrationDate: new Date()
}}, {multi: true});

db.analytics.remove({})
db.playerEvents.remove({})
Clone this wiki locally