mob
proc
Levelup()
if(src.level >= 50)
src.mode = easy
src.maxexp = 15000
return
if(src.level >=140)
src.mode = medium
src.maxexp = 40000
return
if(src.level >= 270)
src.mode = hard
src.maxexp = 100000
return
if(src.level >= 500)
src.mode = Mastermode
src.maxexp = 500000
return
if(src.clan == Hyuga)
if(src.mode == New)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,10)
genjutsu+= rand(5,15)
Taijutsu+= rand(5,20)
Agility+= rand(5,20)
Stamina+= rand(5,15)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == easy)
level++
Chakra+= rand(20,40)
ninjutsu+= rand(20,30)
genjutsu+= rand(20,35)
Taijutsu+= rand(20,50)
Agility+= rand(20,50)
Stamina+= rand(20,40)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == medium)
level++
Chakra+= rand(60,90)
ninjutsu+= rand(60,70)
genjutsu+= rand(60,80)
Taijutsu+= rand(60,100)
Agility+= rand(60,100)
Stamina+= rand(60,90)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == hard)
level++
Chakra+= rand(120,150)
ninjutsu+= rand(120,130)
genjutsu+= rand(120,140)
Taijutsu+= rand(120,160)
Agility+= rand(120,160)
Stamina+= rand(120,150)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == Mastermode)
level++
Chakra+= rand(170,210)
ninjutsu+= rand(170,180)
genjutsu+= rand(170,210)
Taijutsu+= rand(170,220)
Agility+= rand(170,220)
Stamina+= rand(170,200)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.clan == Uchiha)
if(src.mode == New)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,20)
genjutsu+= rand(5,15)
Taijutsu+= rand(5,10)
Agility+= rand(5,15)
Stamina+= rand(5,20)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.mode == easy)
level++
Chakra+= rand(20,40)
ninjutsu+= rand(20,50)
genjutsu+= rand(20,45)
Taijutsu+= rand(20,30)
Agility+= rand(20,50)
Stamina+= rand(20,40)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == medium)
level++
Chakra+= rand(60,80)
ninjutsu+= rand(60,100)
genjutsu+= rand(60,80)
Taijutsu+= rand(60,70)
Agility+= rand(60,80)
Stamina+= rand(60,90)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == hard)
level++
Chakra+= rand(120,150)
ninjutsu+= rand(120,160)
genjutsu+= rand(120,150)
Taijutsu+= rand(120,130)
Agility+= rand(120,130)
Stamina+= rand(120,140)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == Mastermode)
level++
Chakra+= rand(170,200)
ninjutsu+= rand(170,220)
genjutsu+= rand(170,210)
Taijutsu+= rand(170,180)
Agility+= rand(170,210)
Stamina+= rand(170,200)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.clan == Akimichi)
if(src.mode == New)
level++
Chakra+= rand(5,20)
ninjutsu+= rand(5,15)
genjutsu+= rand(5,10)
Taijutsu+= rand(5,20)
Agility+= rand(5,10)
Stamina+= rand(5,15)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.mode == easy)
level++
Chakra+= rand(20,50)
ninjutsu+= rand(20,40)
genjutsu+= rand(20,30)
Taijutsu+= rand(20,50)
Agility+= rand(20,30)
Stamina+= rand(20,40)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == medium)
level++
Chakra+= rand(60,100)
ninjutsu+= rand(60,90)
genjutsu+= rand(60,70)
Taijutsu+= rand(60,100)
Agility+= rand(60,70)
Stamina+= rand(60,80)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == hard)
level++
Chakra+= rand(120,160)
ninjutsu+= rand(120,150)
genjutsu+= rand(120,130)
Taijutsu+= rand(120,160)
Agility+= rand(120,130)
Stamina+= rand(120,140)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == Mastermode)
level++
Chakra+= rand(170,210)
ninjutsu+= rand(170,190)
genjutsu+= rand(170,200)
Taijutsu+= rand(170,220)
Agility+= rand(170,180)
Stamina+= rand(170,200)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.clan == Kayuga)
if(src.mode == New)
level++
Chakra+= rand(5,15)
ninjutsu+= rand(5,15)
genjutsu+= rand(5,10)
Taijutsu+= rand(5,20)
Agility+= rand(5,15)
Stamina+= rand(5,10)
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are on level [level]!!</font></li>"
src.maxchakra = src.chakra
return
if(src.mode == easy)
level++
Chakra+= rand(20,40)
ninjutsu+= rand(20,40)
genjutsu+= rand(20,30)
Taijutsu+= rand(20,50)
Agility+= rand(20,35)
Stamina+= rand(20,30)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
if(src.mode == medium)
level++
Chakra+= rand(60,90)
ninjutsu+= rand(60,80)
genjutsu+= rand(60,70)
Taijutsu+= rand(60,100)
Agility+= rand(60,70)
Stamina+= rand(60,70)
if(src.Control == 100)
Control+= rand(0,0)
else
Control+= rand(0,1)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
if(src.mode == hard)
level++
Chakra+= rand(120,150)
ninjutsu+= rand(120,140)
genjutsu+= rand(120,130)
Taijutsu+= rand(120,160)
Agility+= rand(120,130)
Stamina+= rand(120,140)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
if(src.mode == Mastermode)
level++
Chakra+= rand(170,210)
ninjutsu+= rand(170,200)
genjutsu+= rand(170,180)
Taijutsu+= rand(170,220)
Agility+= rand(170,190)
Stamina+= rand(170,180)
src << "<li><font face= Arial color= blue>You are now on level [level]!!</font></li>"
src.maxchakra = src.chakra
src.exp = 0
return
I was wondering if I can make this any shorter, or if see if their any bugs in it, because it seems not to work.