ID:165055
 
This is the code I use for pretty everything: get, drop, place items in containers, moving items in general. This works fine.
item
parent_type=/obj
MouseDrop(over_object,src_location,over_location)
if(over_object in view(1))
src.Move(over_object)


How would I make it so I can only move items that are in view(1)?
Seems like it should already be doing what you want it to do because of the if() statement..Try replacing view(1) with oview(1).
In response to Dragon_fire6653
You're not understanding the problem. I can move things to 1 square around me or into my contents, but I can also move things from more than 1 square, which is not what I want possible.
In response to LastTroubadour
item
MouseDrop(a,b,c)
if(src in view(usr,1))
src.Move(c)
In response to Xx Dark Wizard xX
Well, that works. But the mouse_drag_pointer is still displayed...
In response to LastTroubadour
Isn't the mouse pointer always the same? If not just set it to the proper icon, there is a var to do it.
See if this helps:

developer.byond.com/hub/Yume_Nasuki/Combining_Demo