client
DblClick(O as obj)
var/ki_cost = round(rand(5000,25000))
if(usr.frozen)
return
if(usr.donut_wrapped)
return
if(usr.wrapped)
return
if(usr.GMLocked)
return
if(usr.underwater == 1)
usr << "There's way to much pressure to use zanzoken."
return
if(usr.dead)
return
if(usr.boxing)
return
if(usr.rest)
return
if(usr.zanzoken)
if(istype(O,/mob/PC))
return
if(istype(O,/mob/NPC))
return
if(istype(O,/mob/Monster/Split_form))
return
if(istype(O,/turf/Floors/No_Walking))
return
if(istype(O,/turf/SnakeWay/Clouds))
return
if(istype(O,/turf/SnakeWay/SnakeWay1))
return
if(istype(O,/turf/SnakeWay/SnakeWay2))
return
if(istype(O,/turf/SnakeWay/SnakeWay3))
return
if(istype(O,/turf/SnakeWay/SnakeWay4))
return
if(istype(O,/turf/SnakeWay/SnakeWay5))
return
if(istype(O,/turf/SnakeWay/SnakeWay6))
return
if(istype(O,/turf/SnakeWay/SnakeWay7))
return
if(istype(O,/turf/SnakeWay/SnakeWay8))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_East))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_West))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_North))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_South))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_South_East))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_South_West))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_North_East))
return
if(istype(O,/turf/Cliffs/Cliff_Wall_North_West))
return
if(istype(O,/turf/Buildings/Wall))
return
if(istype(O,/turf/Buildings/Roof))
return
if(istype(O,/obj/Equipment))
return
if(usr.ki >= ki_cost)
if(O in oview(12))
flick("IT",usr)
usr.ki -= ki_cost
usr.z = O:z
usr.x = O:x
usr.y = O:y
usr.afk_time = 0
else
usr << "You don't have enough Ki!"
usr.afk_time = 0
return
if(usr.after_image)
if(usr.ki >= 100000)
flick("IT",usr)
var/obj/After_Image_Mob/C = new
C.loc = usr.loc
C.icon = usr.icon
C.overlays += usr.overlays
C.underlays += usr.underlays
C.name = usr.name
usr.safe=0
C.dir = usr.dir
usr.ki -= ki_cost
usr.loc=locate(O.x,O.y,O.z)
else
usr<<"You don't have enough Ki!"
return
Problem description:
This is the code and i keep getting these errors - O.x O.y O.z undefined var, its three errors. i dont see how.