| Author |
Message |
Pierce
Joined: 02 Feb 2006 Posts: 256
|
Posted: Tue May 09, 2006 7:27 am Post subject: MoveItemToContainer and Insert Scripts [POL2006-01-18 Linux] |
|
|
MoveItemToContainer don't stacks items to an existing stack.
| Code: |
program can_insert(who, backpack, movetype, insmethod, item, existing_stack, amt_to_add )
program on_insert(who, backpack, movetype, insmethod, item, existing_stack, amt_to_add )
|
If you do that as player everthing works fine. Lets say put an apple into a backpack give:
movetype: 0
insmethod: 1
existing_stack: uninit
Adding a second apple gives:
movetype: 0
insmethod: 2
existing_stack: Item Ref
If you do this via script with MoveItemToContainer you get both times (first and second apple) the same. It won't find the already existing apple.
movetype: 1
insmethod: 1
existing_stack: uninit |
|
 |
|
|