ID:174930
 
Well im back after a long while of programing on my own and ive come up with one question about my dragon ball coding
obj/dragonballs/earth1
icon = 'dragonball.dmi'
icon_state = "1"
verb/Get()
if (usr.gotdb1 == 1)
set src in oview(1)

usr.gotdb1 = 0
checkdbz()
src.loc = locate(0,0,0)
sleep(10000)
var/x = rand(1,150)
var/y = rand(1,150)
src.loc = locate(x,y,1)
else
usr<< "You have this one already"

when i try to pick it up it says i already have it
VegeanSX wrote:
Well im back after a long while of programing on my own and ive come up with one question about my dragon ball coding
obj/dragonballs/earth1
> icon = 'dragonball.dmi'
> icon_state = "1"
> verb/Get()
> if (usr.gotdb1 == 1)
> set src in oview(1)
>
> usr.gotdb1 = 0
> checkdbz()
> src.loc = locate(0,0,0)
> sleep(10000)
> var/x = rand(1,150)
> var/y = rand(1,150)
> src.loc = locate(x,y,1)
> else
> usr<< "You have this one already"

when i try to pick it up it says i already have it



obj/dragonballs/earth1
icon = 'dragonball.dmi'
icon_state = "1"
verb/Get()
if (usr.gotdb1 == 0)
set src in oview(1)

usr.gotdb1 = 1
checkdbz()
src.loc = locate(0,0,0)
sleep(10000)
var/x = rand(1,150)
var/y = rand(1,150)
src.loc = locate(x,y,1)
else
usr<< "You have this one already"



Try that.
In response to Airjoe
Lmao i had a feeling it was somthing with the 1 and 0 thing
ill try it out
In response to VegeanSX
bah im just gunna have to make new coding cuz this aint working thanks anyways though
VegeanSX wrote:
Well im back after a long while of programing on my own and ive come up with one question about my dragon ball coding
obj/dragonballs/earth1
> icon = 'dragonball.dmi'
> icon_state = "1"
> verb/Get()
> if (usr.gotdb1 == 1)

> set src in oview(1)//umm you set this After it checks if the gotdb1 var is one? It should be before the check if the var is one


>
> usr.gotdb1 = 0
> checkdbz()
> src.loc = locate(0,0,0)
> sleep(10000)
> var/x = rand(1,150)
> var/y = rand(1,150)
> src.loc = locate(x,y,1)
> else
> usr<< "You have this one already"

when i try to pick it up it says i already have it