ID:175907
 
Plant()
if(plowed == 0)
usr << "The growned is not plowed."
if(plowed == 1)
if(planted == 1)
usr << "You have already planted here."
if(planted == 0)
set category = "Work"
usr.locked = 1
usr << "You plant the seeds"
/obj/plants/wheat = new(usr.x,usr.y,usr.z)
usr.locked = 0

The /obj/plants/wheat = new(usr.x,usr.y,usr.z) line is the prob. I don't know how to make the object on the screen. Can some one help me with this? Thanks
Are you trying to change the object of something? Or are you trying to make it so the Mob Places an object there?
In response to Sonder
you need to use locate like
new/obj/plant/wheat(usr.loc)//there loc
new/obj/plant/wheat(locate(x,y,z))//change the xyz to what u want
In response to Magnus VI
thanks
In response to Magnus VI
var/obj/plant/wheat/O = new/obj/plant/wheat()
O.loc = src.loc

u can use this two to prevent the new obj from having to move. moving can cause (very little chance cuz someone has to logout while planting) the new obj to be placed at the usr loc but giving the tile you are using the plant var (this is only a problem when the user isn't located on the tile). the plant is located on an other tile so the var is missplacced and this can cause weard things like telling ppl there is allready planted if there is no plant on that tile.

A well