// 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;
}