Hello. I just commited some DM functions that should ease item manipulation. DM now have an 'item' stack, that contains dumped & such items. Any item dumped with 'dump <number>' gets pushed on stack, and can be used on commands, with '$stack_index', or omitting the argument (defaults to stack top). So you can do: * dumpbelow * patch weight 1500 => patches just dumped item, which is now on stack top. You can also do 'dump $2' to dump 3rd item on stack (0 based). New command list: * stack_push * stack_pop * stack_list * diff diff basically calls 'get_ob_diff' with specified items, and dumps difference. Makes it easier to spot why items won't merge :) Note: diff left right calls get_ob_diff( right, left ) This is not a mistake, but to ease manipulation - basically, you'll probably want to do: * push correct_item * push weird_item_not_merging * diff <-- displays values for right item, thus the correct ones * patch <correct value> => thus you need to compare this way. Weird prolly, oh well :) I changed remove, free, patch, create, dump, dumpbelow to use those stack functions. No help is yet written, though. Warning: i tested this code, and it works. But i haven't heavily tested it, so maybe i'm missing some obvious default. (for instance, you can possibly enter 'dump $-5' and it'll work/crash) Also, there may be parasitic messages now & then, with remove for instance. Nicolas 'Ryo' _______________________________________________ crossfire-devel mailing list crossfire-devel at lists.real-time.com https://mailman.real-time.com/mailman/listinfo/crossfire-devel