Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Split Stack

Ask for help
Post Reply
caiosc
Neophyte
Neophyte
Posts: 14
Joined: 27.03.2013 14:10

Split Stack

Post 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!
grundick
Developer
Developer
Posts: 272
Joined: 31.01.2008 21:16

Re: Split Stack

Post 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
caiosc
Neophyte
Neophyte
Posts: 14
Joined: 27.03.2013 14:10

Re: Split Stack

Post 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?
grundick
Developer
Developer
Posts: 272
Joined: 31.01.2008 21:16

Re: Split Stack

Post by grundick »

Post Reply