obj
Taijutsu_Log
icon = 'Landscapes.dmi'
icon_state = "tree stump"
density = 1
verb
Punch()
set name = "Log Train"
set category = "Taijutsu"
set src in oview(1)
if (usr.resting)
usr<<"Cant train when your resting."
return
if (usr.meditating)
usr<<"Cant train when your meditating."
return
if(usr.health<5)
usr<<"Cant train too tired - Rest."
return
if(!usr.doing&&usr.health >= 1)
if(usr.Mtai < usr.cap)
usr.random = rand(1,6)
if(usr.random == 6)
usr.taiexp += rand(200,300)
usr.ninexp += rand(2,4)
usr.genexp += rand(2,4)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeMissing()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 2)
usr.taiexp += rand(200,300)
usr.ninexp += rand(2,5)
usr.genexp += rand(2,5)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 4)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,4)
usr.genexp += rand(1,4)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.makeJounin()
usr.makeMissing()
usr.health -= 1
usr.doing = 1
usr.Skills()
if(usr)
usr.doing = 0
else
return
if(usr.random!=6 && usr.random!=2 && usr.random!=4)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,4)
usr.genexp += rand(1,4)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 2
usr.doing = 1
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
usr.Skills()
if(usr)
usr.doing = 0
else
return
else
usr.random = rand(10,17)
if(usr.random == 5)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr.taiup()
usr.ninup()
usr.genup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 1)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr<<"You kick the log."
usr.taiup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
if(usr)
usr.doing = 0
else
return
if(usr.random == 3)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random!=1 && usr.random!=5 && usr.random!=3)
usr<<"You kick the log."
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr.exp += rand(20,25)
usr.Levelup()
usr.ninup()
usr.genup()
usr.taiup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
if(!usr.doing&&usr.health >= 5&&usr.Weights&&usr.Mtai>=500)
if(usr.Mtai < usr.cap)
usr.random = rand(1,6)
if(usr.random == 6)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 2)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 4)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,3)
usr.genexp += rand(1,3)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.makeJounin()
usr.makeMissing()
usr.health -= 1
usr.doing = 1
usr.Skills()
if(usr)
usr.doing = 0
else
return
if(usr.random!=6 && usr.random!=2 && usr.random!=4)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.makeJounin()
usr.makeMissing()
usr.makeHunter()
usr.Skills()
if(usr)
usr.doing = 0
else
return
else
usr.random = rand(1,15)
if(usr.random == 5)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,6)
usr.genexp += rand(1,6)
usr.taiup()
usr.ninup()
usr.genup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random == 1)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,5)
usr.genexp += rand(1,5)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
if(usr)
usr.doing = 0
else
return
if(usr.random == 3)
usr.taiexp += rand(200,300)
usr.ninexp += rand(1,5)
usr.genexp += rand(1,5)
usr<<"You kick the log."
usr.taiup()
usr.ninup()
usr.genup()
else
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
else
return
if(usr.random!=1 && usr.random!=5 && usr.random!=3)
usr<<"You kick the log."
usr.exp += rand(200,300)
usr.Levelup()
usr.health -= 1
usr.doing = 1
usr.Skills()
usr.makeMissing()
if(usr)
usr.doing = 0
if(usr.level<=10000)
usr.rank = "genin"////////////This is the Auto Rank System Start/////////////
if(usr.level>=15000 & usr.level<20000)
usr.rank = "chuunin"
if(usr.level>=20000 & usr.level<25000)
usr.rank = "jounin"
if(usr.level>=25000 & usr.level<50000)
usr.rank = "anbu"
if(usr.level>=50000)
usr.rank = "sannin"
Problem description:
My problem is that it will not turn to the rank when i get to the set level. Any help?