usr.contents.Swap(usr.contents.Find(A),usr.contents.Find(src))
ID:271125
Jan 29 2007, 8:27 am
|
|
Is it possible to do
|
In response to Lummox JR
|
|
Ok thanks. Now I need to change all the set src in usr :(
|
In response to Xx Dark Wizard xX
|
|
Mind you, you can still use Swap() on contents if you transfer it to a user-defined list first:
var/list/C = contents.Copy() The only exception here is that if your contents for any reason contain both mobs and objs, objs will always be listed before mobs. (The contents list is technically two linked lists that get stuck together by Copy(), so if you tried to swap a mon and an obj you'd end up with the obj appearing right before the mob.) Lummox JR |
It has to be a user-defined list; a built-in list won't let you swap.
Lummox JR