ID:176423
 
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
theres more to the code:
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)
In response to KitKate20
You do relize you can edit your current posts, right? Making a new post is a waste of Dantom's space.
In response to Nadrew
sorry :'(