mob
proc
LvlCheck()
if(usr.Exp>=usr.Mexp)
usr<<"<I><b><font size = 1><font color = white>Congratulations,You have leveled up!!"
usr.level+=1
usr.MHP+=rand(10,25)
usr.HP=usr.MHP
usr.MPP+=rand(1,2)
usr.PP=usr.MPP
usr.Mstr+=rand(5,10)
usr.Str=usr.Mstr
usr.Mdef+=rand(1,2)
usr.Def=usr.Mdef
usr.Expg*=1
usr.Exp=0
usr.Evolve()
usr.Evolve2()
if(usr.level >= 5 && usr.Type == "Fire" && usr.learn_ember == 0)
usr << "<b><font size = 1><font color = white>You learnt Ember!!"
usr.learn_ember = 1
usr.verbs+=new/mob/tech/verb/Ember
else
if(usr.learn_ember == 1)
return
if(usr.level >= 20 && usr.Type == "Fire" && src.learn_FlameThrower == 0)
usr << "<b><font size = 1><font color = white>You learnt FlameThrower!!"
src.learn_FlameThrower = 1
usr.verbs+=new/mob/tech/verb/Flame_Thrower
else
if(src.learn_FlameThrower == 1)
return
if(usr.level >= 5 && usr.Type == "Water" && src.learn_bubble == 0)
usr << "<b><font size = 1><font color = white>You learnt Bubble!!"
src.learn_bubble = 1
usr.verbs+=new/mob/tech/verb/Bubble
else
if(src.learn_bubble == 1)
return
if(usr.level >= 20 && usr.Type == "Water" && src.learn_Bubble_Gun == 0)
usr << "<b><font size = 1><font color = white>You learnt Bubble Gun!!"
src.learn_Bubble_Gun = 1
usr.verbs+=new/mob/tech/verb/Bubble_Gun
else
if(src.learn_Bubble_Gun == 1)
return
if(usr.level >= 5 && usr.Type == "Grass" && src.learn_bullet_seed == 0)
usr << "<b><font size = 1><font color = white>You learnt Bullet Seed!!"
src.learn_bullet_seed = 1
usr.verbs+=new/mob/tech/verb/Bullet_Seed()
else
if(src.learn_bullet_seed == 1)
return
if(usr.level >= 20 && usr.Type == "Grass" && src.learn_Vine_Whip == 0)
usr << "<b><font size = 1><font color = white>You learnt Vine Whip!!"
src.learn_Vine_Whip = 1
usr.verbs+=new/mob/tech/verb/Vine_Whip()
else
if(src.learn_Vine_Whip == 1)
return
if(usr.level >= 5 && usr.Type == "Thunder" && src.learn_thunder == 0)
usr << "<b><font size = 1><font color = white>You learnt Thunder!!"
src.learn_thunder = 1
usr.verbs+=new/mob/tech/verb/Thunder()
else
if(src.learn_thunder == 1)
return
if(usr.level >= 20 && usr.Type == "Thunder" && src.learn_Thunderbolt == 0)
usr << "<b><font size = 1><font color = white>You learnt Thunder Bolt!!"
src.learn_Thunderbolt = 1
usr.verbs+=new/mob/tech/verb/Thunder_Bolt()
else
if(src.learn_Thunderbolt == 1)
return
if(usr.level >= 5 && usr.Type == "Rock" && src.learn_rock == 0)
usr << "<b><font size = 1><font color = white>You learnt Rock Throw!!"
src.learn_rock = 1
usr.verbs+=new/mob/tech/verb/Rock_Throw()
else
if(src.learn_rock == 1)
return
if(usr.level >= 20 && usr.Type == "Normal" && src.learn_Bite == 0)
usr << "<b><font size = 1><font color = white>You learnt Bite!!"
src.learn_Bite = 1
usr.verbs+=new/mob/tech/verb/Bite()
else
if(src.learn_Bite == 1)
return
if(usr.level >= 20 && usr.Type == "Normal" && src.learn_Psycic == 0)
usr << "<b><font size = 1><font color = white>You learnt Psycic!!"
src.learn_Psycic = 1
usr.verbs+=new/mob/tech/verb/Psycic()
else
if(src.learn_Psycic == 1)
return
if(usr.level >= 5 && usr.Type == "Ghost" && src.learn_ghost == 0)
usr << "<b><font size = 1><font color = white>You learnt Ghost Form!!"
src.learn_ghost = 1
usr.verbs+=new/mob/tech/verb/Ghost_Form()
else
if(src.learn_ghost == 1)
return
if(usr.level >= 20 && usr.Type == "Ghost" && src.learn_Scary_Face == 0)
usr << "<b><font size = 1><font color = white>You learnt Scary Face!!"
src.learn_Scary_Face = 1
usr.verbs+=new/mob/tech/verb/Scary_Face()
else
if(src.learn_Scary_Face == 1)
return
if(usr.level >= 5 && usr.Type == "Flying" && src.learn_whirl == 0)
usr << "<b><font size = 1><font color = white>You learnt Whirlwind!!"
src.learn_whirl = 1
usr.verbs+=new/mob/tech/verb/Whirlwind()
else
if(src.learn_whirl == 1)
return
if(usr.level >= 5 && usr.Type == "Dragon" && src.learn_twister == 0)
usr << "<b><font size = 1><font color = white>You learnt Twister!!"
src.learn_twister = 1
usr.verbs+=new/mob/tech/verb/Twister()
else
if(src.learn_twister == 1)
return
Problem description:It doesnt give me the skills,it doesnt even say that I learned it even if Im the right type and I got the same or higher lv it requires,how do you fix this?Please Help.
Also: Holy mother of crap, DO NOT USE USR IN PROCS.
I mean... DAMN. Every single ONE of those should be src.