Get()
set src in oview(0)
for(var/obj/Weapon/Deringer/D in usr.contents)
if(!D)
if(Move(usr))
usr << "You pick up the [src]"
return
else
usr << "You cannot pick up the [src]"
return
D.maxclip += rand(1,10)
if(D.maxclip >= 16)
D.maxclip = 15
del(src)
return
ID:147808
Nov 16 2003, 11:20 am
|
|
The get verb used to work all fine and dandy, but just recently, it quit working on me. If the gun is already in my inventory, it adds the ammo like it should, but if the gun is not in my inventory, it does nothing.
|
In response to Lummox JR
|
|
Well, what's wierd about it is that it worked peachy until yesterday, then bam; Get doesn't work. But yours does, thanks for the help.
|
Also, the if(!D) part will never execute.
Here's what you need instead:
Lummox JR