if(usr.lvl>=2)
if(usr.item!=maxitem)//I am thinking this is the line dealing with problem
usr << "You captured something!"
usr.plaxp+=4
usr.item+=1
usr.contents+=src
Problem description: I set up a var where you can set max of something, but it goes up each level. The problem is that it follows the old value (10), but it goes 5 each level gained by the player. So I get 10 of something and lets say 20 is my max. I can't pick up anything else even though it is 10/20....
Anything wrong with it?
for(var/obj/O in usr.contents)
count++
if(count >= usr.maxitems)
return
else
src.loc = usr
or somthing along those lines