ID:266443
 
obj
crop1
icon = 'wand.dmi'
icon_state = "1"
var/speed = 10 // declare the new variable
var/walk = 1
verb
Harvest()
set category = "Commands"
set src in oview(1)
mob/Move()
if(usr.walk == 1)
..()
usr.walk = 0
sleep(25)
usr.walk = 1
usr.contents+= new /obj/Corn
else return


error = proc definition not allowed inside another proc
I don't know what you we're smoking when you coded that, but it should be illegal, if it isn't already. It is indented all wrong.
obj
crop1
icon = 'wand.dmi'
icon_state = "1"
var/speed = 10 // declare the new variable
var/walk = 1
verb
Harvest()
set category = "Commands"
set src in oview(1)
usr.contents+= new /obj/Corn
mob/Move()
if(usr.walk == 1)
..()
usr.walk = 0
sleep(25)
usr.walk = 1

else return


It SHOULD be like that.

-Rcet
In response to Rcet
ok nows it saying usr.walk undefined variable
In response to Thief Jack
Thief jack wrote:
ok nows it saying usr.walk undefined variable

mob
var
walk

somthing like this comes to mind
In response to Pillsverry
ok now everytime i move im getting corn!
In response to Thief Jack
Umm I dont mean to like be annoying but I'm gonna fix every code I didnt get when I was a newbie.

mob/var/NoMove = 0

obj
crop1
icon = 'crop.dmi'
verb
Harvest()
set src in oview(0)
usr.sight |= BLIND
usr.NoMove = 1
sleep(50)
usr.sight &= ~BLIND
usr.NoMove = 0
new /obj/Corn(usr)
usr << "You harvested a corn!"

mob/Move()
if(usr.NoMove == 1)
return
..()