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.
ID:176904
Nov 29 2002, 1:33 pm
|
|
In response to Delita12345
|
|
obj
potion Click() if(src in oview(1)) A else B |
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.