ID:169772
 
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.
What doesnt work in it?
In response to Jay1
Jay1 wrote:
What doesnt work in it?

If your exp is passed your maxexp, then I put the proc. I go to the game to check if it works but nothing happens when my exp is passed my max exp

mob/verb
Bunshin_No_Jutsu()
set category = "Genjutsu"//sets category
if(bunshinclone >= 10)//test if usr has 10 or more clones
src << "<font color = red>To many clones out</font>"
return
if(Chakra <= 0)//Check usr if chakra is at 0 or below
src << "<font color = red>Not enough Chakra</font>"
return
if(src.CControl >= 101)//Checks if Chakra control is at 101 or greater
var/CCusage = rand(1,7)// if it is it will give random Chakra
if(CCusage <= 4)
view(usr) << "[usr] says, Bunshin No Jutsu"
src << "[CCusage]/5 Chakra converted"
src.Chakra -= CCusage
return
if(CCusage >= 5)
view(usr) << "[usr] says, Bunshin No Jutsu"
src << "[CCusage]/5 Chakra converted"
src.Chakra -= CCusage
Createclones()
src.exp+= rand(3000,4000)
if(src.exp >= maxexp)
src.Levelup()
return
if(src.CControl <= 130)//Checks if Chakra control is at 101 or greater
var/CCusage = rand(2,6)// if it is it will give random Chakra
if(CCusage <= 4)
view(usr) << "[usr] says, Bunshin No Jutsu"
src << "[CCusage]/5 Chakra converted"
src.Chakra -= CCusage
return
if(CCusage >= 5)
view(usr) << "[usr] says, Bunshin No Jutsu"
src << "[CCusage]/5 Chakra converted"
src.Chakra -= CCusage
Createclones()
src.exp+= rand(3000,4000)
if(src.exp >= src.maxexp)
Levelup()
return
if(src.CControl <= 100)//Checks if usr chakra control is at 100 or less
view(usr) << "[usr] says, Bunshin No Jutsu"
src << "5/5 Chakra converted"// if it is, the jutsu will always work
src.Chakra -= 5//subtract 5 chakra
Createclones()
src.exp+= rand(3000,4000)
if(src.exp >= maxexp)
src.Levelup()

Thats where I used it.
In response to Broly103
<,<Huh.

Well I don't know the names of the exp really, but it usually works if you used this:
if(usr.exp>=maxexp)
usr<<"You gain a level!!"
//what happens? (proc or whatever)


I guess..because a lot of people make a mistake on putting == instead of >=
In response to Jay1
Jay1 wrote:
<,<Huh.

Well I don't know the names of the exp really, but it usually works if you used this:
> if(usr.exp>=maxexp)
> usr<<"You gain a level!!"
> //what happens? (proc or whatever)

I guess..because a lot of people make a mistake on putting == instead of >=

I did use that here
                if(src.exp >= src.maxexp)
Levelup()
In response to Broly103
It shouldn't even be working at all.
You have it under the if(src.level>=250), also, remove the returns, and outdent everything that you need for the level proc under level>=250 or whatever.
In response to Hell Ramen
Hell Ramen wrote:
It shouldn't even be working at all.
You have it under the if(src.level>=250), also, remove the returns, and outdent everything that you need for the level proc under level>=250 or whatever.

Could you post an example I don't get what your saying.
In response to Broly103
mob
proc
Levelup()
if(src.level >= 50)
src.mode = easy
src.maxexp = 15000
if(src.level >=140)
src.mode = medium
src.maxexp = 40000
if(src.level >= 270)
src.mode = hard
src.maxexp = 100000
if(src.level >= 500)
src.mode = Mastermode
src.maxexp = 500000
//Make everything under this back one tab
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

In response to Hell Ramen
Still does not work XD.