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 >= 260)
src.mode = "hard"
src.maxexp = 100000
if(src.level >= 500)
src.mode = "Mastermode"
src.maxexp = 500000
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,80)
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
here it is called
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 >= src.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)
src.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 >= src.maxexp)
src.Levelup()
Login code
mob
icon = 'mob.dmi'
icon_state = "main"
density = 1
Login()
loc = locate(/turf/start)
chakra = 5
src.maxexp = 4000
src.ninjutsu = 50
src.genjutsu = 50
src.Taijutsu = 50
src.mode = "New"
src.clan = "Uchiha"
Closed_Testing()
Help I would like to know why it wont work.