ID:165475
 
I hate games that use verbs to add stuff to the player. Is there a way that I can use the Center() for the client to open up a chest that is standing directly in front of me to add gold to the usr, have the chest delete itself, and have a message say what I got and how much I got.

I've been testing stuff but it doesn't seem to want to work. Also, no macros scripts, I can't for this game, nor do I want to.

Thanks in advance.
Call client/Center() and have it check if the chest is in front of them using get_step().
client
Center()
if(locate(/obj/chest) in get_step(mob,mob.dir)) mob<<"There's a chest in front of you."
In response to Ephraim
Dude, thanks so much, I appreciate it. It works perfectly.