obj
Training_Equipment
icon = 'Objects.dmi'
Punching_Bag
icon_state = "pbag"
density = 1
verb/Punch(src in get_step(usr,usr.dir))
set hidden = 1
set src in oview(1)
if(usr.Delay)
return
if(!usr.Full_Access)
if(usr.SSJ1 == 1 || usr.SSJ2 == 1 || usr.SSJ3 == 1 || usr.SSJ4 == 1 || usr.SSJ5 == 1)
usr << "Please revert to train!"
return
usr.Strength += rand(1,2)
usr.Defense += rand(1,3)
usr.Exp += rand(1,2)
usr.LevelUp()
usr.Update_Exp()
usr.Update_Ki()
usr.Update_Powerlevel()
flick("pbaghit",src)
usr.Delay = 1
sleep(5)
usr.icon_state = ""
usr.Delay = 0
else
if(usr.SSJ1 == 1 || usr.SSJ2 == 1 || usr.SSJ3 == 1 || usr.SSJ4 == 1 || usr.SSJ5 == 1)
usr << "Please revert to train!"
return
usr.Strength += rand(1,5)
usr.Defense += rand(1,6)
usr.Exp += rand(1,5)
usr.LevelUp()
usr.Update_Exp()
usr.Update_Ki()
usr.Update_Powerlevel()
flick("pbaghit",src)
usr.icon_state = "punch1"
usr.Delay = 1
sleep(5)
usr.icon_state = ""
usr.Delay = 0
verb/Kick(src in get_step(usr,usr.dir))
set hidden = 1
set src in oview(1)
if(usr.Delay)
return
if(!usr.Full_Access)
if(usr.SSJ1 == 1 || usr.SSJ2 == 1 || usr.SSJ3 == 1 || usr.SSJ4 == 1 || usr.SSJ5 == 1)
usr << "Please revert to train!"
return
usr.Strength += rand(1,2)
usr.Defense += rand(1,3)
usr.Exp += rand(1,2)
usr.LevelUp()
usr.Update_Exp()
usr.Update_Ki()
usr.Update_Powerlevel()
flick("pbaghit",src)
usr.icon_state = "kick1"
usr.Delay = 1
sleep(5)
usr.icon_state = ""
usr.Delay = 0
else
if(usr.SSJ1 == 1 || usr.SSJ2 == 1 || usr.SSJ3 == 1 || usr.SSJ4 == 1 || usr.SSJ5 == 1)
usr << "Please revert to train!"
return
usr.Strength += rand(1,5)
usr.Defense += rand(1,6)
usr.Exp += rand(1,5)
usr.LevelUp()
usr.Update_Exp()
usr.Update_Ki()
usr.Update_Powerlevel()
flick("pbaghit",src)
usr.icon_state = "kick1"
usr.Delay = 1
sleep(5)
usr.icon_state = ""
usr.Delay = 0
Problem description:
Everytime I punch my punching bags it tells me this:
"Sorry, the following is not valid: Punching-Bag
usage: Kick Punching-Bag parameter
usage: Kick mob"
The Punching bags punch and kick verbs are the same name as my real punch and kick verb.
EXAMPLE;
Attacking:
mob/verb/Punch(mob/M in oview(1))
usr << "You got punched."
mob/verb/Kick(mob/M in oview(1))
usr << "You got kicked."
Punching Bag:
mob/verb/Punch(mob/M in oview(1))
usr << "You punched a pbag."
mob/verb/Kick(mob/M in oview(1))
usr << "You kicked a pbag."