//::///////////////////////////////////////////////
//:: FileName: vat_singlelevel
//:: Created By: Script Wizard
//:://////////////////////////////////////////////

//:: Give PC speaker 1 level

void main()
{
    // set the variables
    object oSpeaker = GetPCSpeaker();
    int iXP = GetXP(oSpeaker);

    // Give XP for next level up

    if (iXP < 1000) // level 2
        SetXP(oSpeaker, 1000);

    else if (iXP < 3000) // level 3
        SetXP(oSpeaker, 3000);

    else if (iXP < 6000) // level 4
        SetXP(oSpeaker, 6000);

    else if (iXP < 10000) // level 5
        SetXP(oSpeaker, 10000);

    else if (iXP < 15000) // level 6
        SetXP(oSpeaker, 15000);

    else if (iXP < 21000) // level 7
        SetXP(oSpeaker, 21000);

    else if (iXP < 28000) // level 8
        SetXP(oSpeaker, 28000);

    else if (iXP < 36000) // level 9
        SetXP(oSpeaker, 36000);

    else if (iXP < 45000) // level 10
        SetXP(oSpeaker, 45000);

    else if (iXP < 55000) // level 11
        SetXP(oSpeaker, 55000);

    else if (iXP < 66000) // level 12
        SetXP(oSpeaker, 66000);

    else if (iXP < 78000) // level 13
        SetXP(oSpeaker, 78000);

    else if (iXP < 91000) // level 14
        SetXP(oSpeaker, 91000);

    else if (iXP < 105000) // level 15
        SetXP(oSpeaker, 105000);

    else if (iXP < 120000) // level 16
        SetXP(oSpeaker, 120000);

    else if (iXP < 136000) // level 17
        SetXP(oSpeaker, 136000);

    else if (iXP < 153000) // level 18
        SetXP(oSpeaker, 153000);

    else if (iXP < 171000) // level 19
        SetXP(oSpeaker, 171000);

    else if (iXP < 190000) // level 20
        SetXP(oSpeaker, 190000);

    else if (iXP < 210000) // level 21
        SetXP(oSpeaker, 210000);

    else if (iXP < 231000) // level 22
        SetXP(oSpeaker, 231000);

    else if (iXP < 253000) // level 23
        SetXP(oSpeaker, 253000);

    else if (iXP < 276000) // level 24
        SetXP(oSpeaker, 276000);

    else if (iXP < 300000) // level 25
        SetXP(oSpeaker, 300000);

    else if (iXP < 325000) // level 26
        SetXP(oSpeaker, 325000);

    else if (iXP < 351000) // level 27
        SetXP(oSpeaker, 351000);

    else if (iXP < 378000) // level 28
        SetXP(oSpeaker, 378000);

    else if (iXP < 406000) // level 29
        SetXP(oSpeaker, 406000);

    else if (iXP < 435000) // level 30
        SetXP(oSpeaker, 435000);

    else if (iXP < 465000) // level 31
        SetXP(oSpeaker, 465000);

    else if (iXP < 496000) // level 32
        SetXP(oSpeaker, 496000);

    else if (iXP < 528000) // level 33
        SetXP(oSpeaker, 528000);

    else if (iXP < 561000) // level 34
        SetXP(oSpeaker, 561000);

    else if (iXP < 595000) // level 35
        SetXP(oSpeaker, 595000);

    else if (iXP < 630000) // level 36
        SetXP(oSpeaker, 630000);

    else if (iXP < 666000) // level 37
        SetXP(oSpeaker, 666000);

    else if (iXP < 703000) // level 38
        SetXP(oSpeaker, 703000);

    else if (iXP < 741000) // level 39
        SetXP(oSpeaker, 741000);

    else if (iXP < 780000) // level 40
        SetXP(oSpeaker, 780000);

    else
        FloatingTextStringOnCreature("That's enough.", oSpeaker);
}

