ID:147550
 
obj
Cash
icon = 'gold.dmi'
var
amount
verb
Get()
set src in oview(1)
usr.zenni += amount
del(src)


Theres something wrong with this its a get money verb the problem is this del(src) you can walk upto a person and press it , it steals there gold then delete's them... how can i fix this
Strawgate wrote:
obj
Cash
icon = 'gold.dmi'
var
amount
verb
Get()
set src in oview(1)
usr.zenni += amount
del(src)


Theres something wrong with this its a get money verb the problem is this del(src) you can walk upto a person and press it , it steals there gold then delete's them... how can i fix this
what's with the zenni?
In response to Nyck
Thats not the proble its the delete stuff
make a check ex


get(obj/cash/B)
if(B)
blah blah blah

that should work
This is not why players are being deleted, it lays somewhere's else. Because, del(src) in this case src=cash. So, it's deleting the /obj/Cash, not a mob. Now, if it said del(usr), that'd be different.