obj/Equipment
DblClick(atom/A)
if(src in istype(A,/mob/NPC/Shopkeeper))
src.Move(usr)
return
Problem description:
So I am trying to design a statpanel based shopping system like mystic journey did. I found a library on BYOND that helped me figure out how to display equipment in the statpanel when you are close to the mob.
Now I am trying to set it up so if the equipment in question is being carried by a shopkeeper NPC, double clicking it triggers the exchange. I am doing this because I also have double clicking linked to other features for equipment when you are carrying it.
I'm sure that there's other things I am doing wrong here, or even abusing usr, but right now I'd just like to figure out how to do this check properly. Thanks.