OnNPCKillEvent:
setarray .exp[0],1,2,3,4,5,6,7,8,9,10; //Experience per kill
setarray .weapons[0],1201;
set .XPperKill,.exp[rand(getarraysize(.exp))];
set $@Weapon$, getequipname(EQI_HAND_R);
if(getequipname(EQI_HAND_R) != "") || (getequipid(EQI_HAND_R) != .weapons){
if(WeaponLv == .MaxWLV){
end;} else{
dispbottom "["+$@Weapon$+"] +"+.XPperKill+" Experience";
set WeaponExp, WeaponExp+.XPperKill;}
if(.WepXP[WeaponLv] <= WeaponExp && WeaponLv < .MaxWLV){
set WeaponLv, WeaponLv+1;
set StatusPoint, StatusPoint+1*WeaponLv;
dispbottom "["+$@Weapon$+"] Weapon Level: "+WeaponLv+"!";
dispbottom "["+$@Weapon$+"] Stats: "+1*WeaponLv+"!";
}
}else{
end;}