ID:146568
 
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.

We can't really help you if you don't state the problem.
In response to Mega fart cannon
Mega fart cannon wrote:
We can't really help you if you don't state the problem.

Okay when my exp is past my maxexp my levelup proc won't kick in, yes I called it when the exp goes past the maxexp.
im not sure if this is the problem but wheres the
if(src.exp==src.maxexp)
all i see is a bunch of
if(src.level/modes/clans==whatever)
but no exp so how can it tell if ur ready for leveling or no?
In response to Broly103
Okay. When the compiler reaches this line:
            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

It tells the compiler to immediatlly end the code because your level isn't above 50.
In response to Itachi69
He calls it in one of his verbs:

            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() //<--- Right here
In response to Mega fart cannon
oh didnt see it there im use to seeing it placed directly into the levelup proc itself
In response to Mega fart cannon
Mega fart cannon wrote:
Okay. When the compiler reaches this line:
>             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

It tells the compiler to immediatlly end the code because your level isn't above 50.

Yeah I just fixed that but still the proc does nothing when called.
In response to Broly103
                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

/*So on an so forth....*/


Is indented too far. The code I posted is called when the player is level 500+.
In response to Mega fart cannon
Mega fart cannon wrote:
>                 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
>
> /*So on an so forth....*/

Is indented too far. The code I posted is called when the player is level 500+.

Thanks, I finally got it to work, a million thanks.