verb
Get()
set category = "Item Commands"
set src in oview(0)
if(usr.Weight > usr.MaxWeight)
src.Weight_Drop()
usr << "You're carrying too much!"
else
usr.Weight += src.Weight
src.Move(usr)
usr << "You pick up a [src]."
Drop()
if(usr.Righthand == src)
usr << "This item is equiped! Unequip it to drop it([usr.Righthand])"
else
set category = "Item Commands"
src.Move(usr.loc)
usr.Weight -= src.Weight
usr << "You drop a [src]."
Weight_Drop()
src.Move(usr.loc)
Okay, I can pick up an item even if it surpasses my weight. :(
I tried to fix it, but can't...
Help will be appreciated...
what does src.Weight_Drop() do?
Also, you are checking the weight before adding the weight of the src. maybe try :
if((usr.Weight+src.Weight) > usr.MaxWeight)
you may want to have the verb run a check of what usr.Weight is at that point in time to see what the value is before you pick up the object and after.