ID:176904
 
How do I do the code so that when a person clicks on an item like a Potion if its source is on the floor it picks it up but if its source is in the users contents it drops it.
Ive tried this but I cant seem to make it work properly.
obj
potion
Click()
set src in oview(1)
src.loc = usr
usr << "You get /a [src]."

for problem 2 i don't know what to say.
In response to Delita12345
obj
potion
Click()
if(src in oview(1))
A
else
B