viewing paste topic/10996- switch_status.txt | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
// Edit with reset the variables
 
prontera,156,180,5  script  qwer    1_F_MARIA,{
    mes "Do you want to go to Aincrad ?";
    next;
    if ( select( "Yes", "No" ) == 2 ) close;
    realClass = Class;
    realBaseLevel = BaseLevel;
    realJobLevel = JobLevel;
    realBaseExp = BaseExp;
    realJobExp = JobExp;
    realbStr = readparam( bStr );
    realbAgi = readparam( bAgi );
    realbVit = readparam( bVit );
    realbInt = readparam( bInt );
    realbDex = readparam( bDex );
    realbLuk = readparam( bLuk );
    realStatusPoint = StatusPoint;
    getskilllist;
    for ( .@i = 0; .@i < @skilllist_count; .@i++ ) {
        realskilllist_id[.@i] = !skilllist_id[.@i];
        realskilllist_lv[.@i] = @skilllist_lv[.@i];
    }
    realSkillCount = @skilllist_count;
    realSkillPoint = SkillPoint;
    if ( saoBaseLevel ) {
        jobchange saoClass;
        BaseLevel = saoBaseLevel;
        JobLevel = saoJobLevel;
        BaseExp = saoBaseExp;
        JobExp = saoJobExp;
        resetstatus;
        statusup2 bStr, saobStr;
        statusup2 bAgi, saobAgi;
        statusup2 bVit, saobVit;
        statusup2 bInt, saobInt;
        statusup2 bDex, saobDex;
        statusup2 bLuk, saobLuk;
        StatusPoint = saoStatusPoint;
        for ( .@i = 0; .@i < saoSkillCount; .@i++ )
            skill saoskilllist_id[.@i], saoskilllist_lv[.@i], 0;
        SkillPoint = saoSkillPoint;
    }
    else {
        jobchange Novice;
        BaseLevel = 1;
        JobLevel = 1;
        resetstatus;
        resetskill;
        StatusPoint = 0;
        SkillPoint = 0;
    }
    saoBaseLevel = 0;
    saoJobLevel = 0;
    saoBaseExp = 0;
    saoJobExp = 0;
    saobStr = 0;
    saobAgi = 0;
    saobVit = 0;
    saobInt = 0;
    saobDex = 0;
    saobLuk = 0;
    deletearray saoskilllist_id;
    deletearray saoskilllist_lv;
    saoClass = 0;
    percentheal 100, 100;
    warp "izlude", 129, 145;
    end;
}
 
izlude,129,145,5    script  asdf    1_F_MARIA,{
    mes "Do want to go back to Midgard ?";
    next;
    if ( select( "Yes", "No" ) == 2 ) close;
    saoClass = Class;
    saoBaseLevel = BaseLevel;
    saoJobLevel = JobLevel;
    saoBaseExp = BaseExp;
    saoJobExp = JobExp;
    saobStr = readparam( bStr );
    saobAgi = readparam( bAgi );
    saobVit = readparam( bVit );
    saobInt = readparam( bInt );
    saobDex = readparam( bDex );
    saobLuk = readparam( bLuk );
    saoStatusPoint = StatusPoint;
    getskilllist;
    for ( .@i = 0; .@i < @skilllist_count; .@i++ ) {
        saoskilllist_id[.@i] = !skilllist_id[.@i];
        saoskilllist_lv[.@i] = @skilllist_lv[.@i];
    }
    saoSkillPoint = SkillPoint;
 
    jobchange realClass;
    BaseLevel = realBaseLevel;
    JobLevel = realJobLevel;
    BaseExp = realBaseExp;
    JobExp = realJobExp;
    resetstatus;
    statusup2 bStr, realbStr;
    statusup2 bAgi, realbAgi;
    statusup2 bVit, realbVit;
    statusup2 bInt, realbInt;
    statusup2 bDex, realbDex;
    statusup2 bLuk, realbLuk;
    StatusPoint = realStatusPoint;
    for ( .@i = 0; .@i < realSkillCount; .@i++ )
        skill realskilllist_id[.@i], realskilllist_lv[.@i], 0;
    SkillPoint = realSkillPoint;
 
    realBaseLevel = 0;
    realJobLevel = 0;
    realBaseExp = 0;
    realJobExp = 0;
    realbStr = 0;
    realbAgi = 0;
    realbVit = 0;
    realbInt = 0;
    realbDex = 0;
    realbLuk = 0;
    deletearray realskilllist_id;
    deletearray realskilllist_lv;
    realClass = 0;
    percentheal 100, 100;
    warp "prontera", 157, 180;
    end;
}
Viewed 1597 times, submitted by AnnieRuru.