i want it so when u adopt the dog, u see his hunger and thirst. heres the code:
mob/var/pet
mob
dog
var/Owner
verb
Adopt()
if(src.Owner)
usr << "This has an owner!"
else
set src in oview(1)
src.Owner = usr.ckey
usr << "You adopted a dog!"
walk_to(src,usr,1)
Check()
set src in oview()
if(src.Owner)
usr << "This dog belongs to [src.Owner]."
else
usr << "This dog is wild."
icon = 'dog.dmi'
var
health = 100
maxhealth = 100
ID:176423
![]() Jan 15 2003, 10:08 am
|
|
Stat()//Calls the stat proc.
..()
statpanel("Stats")//Makes a new statpanel called "Stats"
stat("Health","[health]/[maxhealth]")
that comes right after the last part(forgot to copy it :-B)