mob
proc
Level()
if(usr.EXP >= usr.maxEXP)
usr.EXP = 0
usr.maxEXP += usr.maxEXP * 1.2
usr.Level += 1
if(usr.Level >= usr.maxLevel)
usr.Level += 0
usr.HP += rand(20,75)
usr.MP += rand(10,35)
usr.Attack += rand(1,5)
usr.Defense += rand(1,5)
usr.Magic_Attack += rand(1,5)
usr.Resistance += rand(1,5)
usr.Fire_Skill += rand(1,5)
usr.Ice_Skill += rand(1,5)
usr.Wind_Skill += rand(1,5)
usr.Thunder_Skill += rand(1,5)
usr.Earth_Skill += rand(1,5)
usr.Light_Skill += rand(1,5)
usr.Darkness_Skill += rand(1,5)
usr << "You gained a level!"
usr << "Your HP is now [usr.HP]!"
usr << "Your MP is now [usr.MP]!"
usr << "Your Attack is now [usr.Attack]!"
usr << "Your Defense is now [usr.Defense]!"
usr << "Your Magic Attack is now [usr.Magic_Attack]!"
usr << "Your Resistance is now [usr.Resistance]!"
usr << "Your Fire Skill is now [usr.Fire_Skill]!"
usr << "Your Ice Skill is now [usr.Ice_Skill]!"
usr << "Your Wind Skill is now [usr.Wind_Skill]!"
usr << "Your Thunder Skill is now [usr.Thunder_Skill]!"
usr << "Your Earth Skill is now [usr.Earth_Skill]!"
usr << "Your Light Skill is now [usr.Light_Skill]!"
usr << "Your Darkness Skill is now [usr.Darkness_Skill]!"
if(usr.Level >= usr.maxLevel)
usr.Level += 0
mob
bug
Fire_Dragon_Weakling
icon= 'Monsters.dmi'
icon_state = "Fire Dragon Weakling"
New()
..()
walk_rand(rand(1,30))
Del()
usr.EXP += 65
if(usr.Level >= 20)
usr.EXP +=0
Problem description:
the experience just keeps increasing even when the maxEXP is reached(which is 200 at this point) also the level doesn't increase and the EXP doesn't reset once the maxEXP is reached. Why?
Lummox JR