Page 1 of 1

Split Stack

Posted: 06.05.2013 22:36
by caiosc
Is there a way to remove just 1 item out of a stack?

I mean, I wanted to Smelt ore by ore in a forge: I have a stack with 60 ores. I wanted to remove just 1 ore out of it and smelt it.

One way is to have a bag inside your backpack: you leave the stack inside the bag and then move just 1 ore to your backpack.

Is it possible to do that with the Stealth functions (without 2 containers)?

Thank you!

Re: Split Stack

Posted: 07.05.2013 1:09
by grundick

Code: Select all

FindType($19B9, backpack);    // find stack(ore) in backpack
moveitem(finditem,1,backpack,12,12,0);  // move one ore into backpack
UseObject(findType($19B7, backpack));  //find one ore and use it

Re: Split Stack

Posted: 07.05.2013 2:28
by caiosc
Thanks man!

Can you explain just one thing? The numbers in this function: MoveItem(finditem, 1, backpack, 12, 12, 0) are coordinates (X, Y, Z) inside my backpack?

Re: Split Stack

Posted: 07.05.2013 2:57
by grundick