ID:142501
 
Code:
obj
MouseDrop(over_object,src_location,over_location)
// from the Inventory panel to the map
if((src_location == "Armour") && isturf(over_location))
if(get_dist(usr,over_location)<=1)
if(src.suffix == "Equipped")
usr << "Un-equip [src] first!"
return
else
src.Move(over_location)
else if((src_location == "Weapons") && isturf(over_location))
if(get_dist(usr,over_location)<=1)
if(src.suffix == "Equipped")
usr << "Un-equip [src] first!"
return
else
src.Move(over_location)
else if((src_location == "other") && isturf(over_location))
if(get_dist(usr,over_location)<=1)
src.Move(over_location)


Problem description:
Well I just want it so if you drag something out of any of these "inventorys" to somewhere onto the screen it will drop it there. If I drop something from "armour" it works. If I do something from other, it doesn't. It puts it onto the screen but doesn't take it out of the inventory.... please tell me whats wrong, by the way if this helps, all three have different contents.. NOTE. I still don't really understand this fully since i kind of learned how to do it yesterday.
Because contents is a special list. You can't make another list that behaves like contents by definition, as an object's location has that object in its contents. If you are so dead-set on having three "contents" lists, then you're going to need to maintain them yourself, which means adding and removing objects from the list as needed.
In response to Garthor
Ok would i do something like this?
        if((src_location == "other") && isturf(over_location))
if(get_dist(usr,over_location)<=1)
usr.contents3-=src
(over_location)+=src

It does not work like that, If you could help I would be grateful.

Nevermind i fixed

        if((src_location == "other") && isturf(over_location))
if(get_dist(usr,over_location)<=1)
usr.contents3-=src
src.Move(over_location)

Thats how i did it
In response to Oasiscircle
Once again, I suggest that you stop mucking around with this multiple-contents nonsense, because it isn't going to work. All you really seem to want is your contents to be sorted, which can be accomplished without such nonsense.