ID:171680
 
i would really like to know how to make a taming code where at a lvl u can tame something when u tame it u can have it atk, follow, ride like in seika how u start off at lvl 1 taming and u can tame a rat then a horse and so on i would really like to know how, thx u everyone that helps me.
First of all this shouldn't be in the Q&A forum. Secondly, you should really try to read some libraries or the DM guide. Not many people are just gonna give you the code for whatever you need.
Here is the taming verb if you want, its pretty basic:

mob/var/tamelevel = 1
mob/var/tamedifficulty = 1 //set to -1 to make it so this mob can't be tamed, for players, etc.
mob/var/owner =null
mob/var/pet = null
mob/verb/Tame(mob/G in oview(1))
if(G.tamedifficulty == -1)
src<< "You can't tame this monster!"
return
if(src.pet)
else
src<< "You already have tamed something!"
return
if(src.tamelevel >= G.tamedifficulty)
G.owner = src
src.pet = G
src.tamelevel += 0.01
else
src << "You have failed to tame [G]."

Now its up to you to learn how to make the monster do what it is supposed to do. :)

[EGUY]
In response to EGUY
thx i own u one.
In response to Artekia
i have a ride the part to make so i can ride but its not working mob

obj
horse
verb
get_on()
src.icon_state='horse.dmi'
del(src)
get_off()
src.icon_stat='mob.dmi'
new /obj/horse(usr.loc)
In response to Canes
you are deleting the horse thats the problem, don't. you can make the horse move to the player's contents and then, when they click the horse(use a Click() proc) and the horse is in the player's contents, then the horse is moved and the player "gets off the horse".
In response to Artekia
Blah, be more postive... this is the newbie forum. Lighten up!
In response to EGUY
thx