ID:262308
 
Code:
verb
Put_Down()
set src in usr
if(usr.dir == EAST)
src.loc = locate(usr.x+1,usr.y,usr.z)
if(usr.dir == WEST)
src.loc = locate(usr.x-1,usr.y,usr.z)
if(usr.dir == NORTH)
src.loc = locate(usr.x,usr.y+1,usr.z)
if(usr.dir == SOUTH)
src.loc = locate(usr.x,usr.y-1,usr.z)


Problem description:
Now why, after I put the obj down, do I still have the option use Put_Down()?
Are you SURE that there aren't any more of this type in your contents?

-Ryan
In response to Ryne Rekab
Ryne Rekab wrote:
Are you SURE that there aren't any more of this type in your contents?

-Ryan

Ryan(lol, that's my annoying brother's name)

Umm...Yes, it's hard to explain without telling you way more than you need to read, but here goes a shortened version.

You can pick up certain mobs(pets,you can say) and while there in your contents it doesn't show up in your inventory(on purpose), instead, it shows up in its own special statpanel. When you use the Put Down verb the special panel goes away, the mob is in front of you, but the option to use the verb doesn't go away, ever. When you use it and there isn't a mob in your contents, nothing happens, no error, no glitch, nothing.

Also, If your holding one you can't pick up another cause your hands are full, lol, so that's not it.
Hiro the Dragon King wrote:
Code:
verb
> Put_Down()
> set src in usr
> if(usr.dir == EAST)
> src.loc = locate(usr.x+1,usr.y,usr.z)
> if(usr.dir == WEST)
> src.loc = locate(usr.x-1,usr.y,usr.z)
> if(usr.dir == NORTH)
> src.loc = locate(usr.x,usr.y+1,usr.z)
> if(usr.dir == SOUTH)
> src.loc = locate(usr.x,usr.y-1,usr.z)
>

Problem description:
Now why, after I put the obj down, do I still have the option use Put_Down()?

verb
Put_Down()
var/turf/T=get_step(usr,usr.dir))
if(T)
src.loc=T


Verbs are automatically only useable when the "obj" is in the "usr" so no "set src" is needed.
In response to Aaiko
You added an extra ')', Aaiko.
In response to Aaiko
Aaiko wrote:
Hiro the Dragon King wrote:
Code:
verb
> > Put_Down()
> > set src in usr
> > if(usr.dir == EAST)
> Verbs are automatically only useable when the "obj" is in the "usr" so no "set src" is needed.

REALLY!! THANKS, I didn't know that. I lear something new everyday(lol, not from school, except that that gay guy likes m...<_< >_>...nevermind)!