ID:169109
 
Code:


Problem description:

what would be the code to get an object say money on the floor or whatever drop the object equip it and un epuip it please if you know it please say
Englishkid wrote:
what would be the code to get an object say money on the floor or whatever drop the object equip it and un epuip it please if you know it please say

Please don't ask for "the code", because there's always more than one way to do something.
In response to Wizkidd0123
ok then what code would i use to get an object say money on the floor or whatever drop the object equip it and un epuip
In response to Englishkid
Looks like you need some help.
Doesn't ge any easier than this I'm afraid.
/obj
{
/obj/proc/can_get(null);
/obj/proc/can_drop(null);
/obj/proc/get(null);
/obj/proc/drop(null);
/obj/can_get(null)
{
return (TRUE);
};
/obj/can_drop(null)
{
return (TRUE)
};
/obj/get(null)
{
set src in oview(1);
if(Move(usr))
{
usr<<"[src] added to inventory";
return (TRUE);
};
else usr<<"[src] is inaccessible";
return (FALSE);
};
};

do the drop on your own using get as an example.