viewing paste Unknown #24950 | Athena

Posted on the
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
//The OnPCLogin was a test to see if when they login it will check and see if they made any changes to original stat, it works as intended but in the function not.
 
OnPCLoginEvent:
        if ( StatusPoint != OriginalStat ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
        dispbottom "Updated Status Point";
        OriginalStat = StatusPoint;
        OriginalSkill = SkillPoint;
} else
        if ( StatusPoint == OriginalStat ) {
        dispbottom "Untouched Status Points.";
        StatusPoint = OriginalStat;
        SkillPoint = OriginalSkill;
}
}
function        script  Base1PartyCheck {
if ( BaseLevel > $@BaseChoice1 ) { // If baselevel is greater than choice continue, else end.
        if ( StatusPoint != OriginalStat && OriginalSkill != SkillPoint ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
        dispbottom "Updated Status Point";
        OriginalStat = StatusPoint;
        OriginalSkill = SkillPoint;
        BaseExp = 0;
        BaseLevel = $@BaseChoice1;
        end;
} else
        if (StatusPoint == OriginalStat && OriginalSkill == SkillPoint ) { // If Original stat is still equal to StatusPoints
        dispbottom "Untouched Status Points.";
        StatusPoint = OriginalStat;
        SkillPoint = OriginalSkill;
        BaseExp = 0;
        BaseLevel = $@BaseChoice1; // Revert back to level 5 and give them their original status points.
        end;
}
} else
}
 
 
 
function        script  Job1PartyCheck  {
if ( JobLevel > $@JobChoice1 ) { // If Joblevel is greater than choice continue, else end.
        if ( StatusPoint != OriginalStat && OriginalSkill != SkillPoint ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
        dispbottom "Updated Status Point";
        OriginalStat = StatusPoint;
        OriginalSkill = SkillPoint;
        JobExp = 0;
        JobLevel = $@JobChoice1;
        end;
} else
        if (StatusPoint == OriginalStat && OriginalSkill == SkillPoint ) { // If Original stat is still equal to StatusPoints
        dispbottom "Untouched Status Points.";
        StatusPoint = OriginalStat;
        SkillPoint = OriginalSkill;
        JobExp = 0;
        JobLevel = $@JobChoice1; // Revert back to level 5 and give them their original status points.
        end;
}
} else
}
Viewed 319 times, submitted by unknown.