I want to make a certain item check for the owners location in the oview of the item and when they get far enough away to delete the items.
Get_Book()
set src in oview(2)
if(usr.hasbook == 0)
var/Books= list(new/obj/A_History_of_Magic/,new/obj/Fantasic_Beasts_and_Where_to_Find_Them/,new/obj/Magical_Water_Plants_of_the_Mediterranean,new/obj/Magical_Drafts_and_Potions,new/obj/Defensive_Magical_Theory)
var/obj/L = input("Please select a book you would like to read") in Books
L.owner = usr.name
usr.hasbook = 1
L.loc = locate(usr.x,usr.y,usr.z)
var/mob/M = L.owner
loop
for(M in oview(8))
if(!M)
del(L)
else
goto loop