Both scripts works fine. I posted two scripts, the first is based on container name or index and the second is based on container id.
So if you are using the same backpack for runes and gold for example then you should use the first script based on container index. Because if you have two or more containers of the same type, Bot cannot guess which is being used for UHs.
I really don't understand why you would use the second script.
So if you are using the same backpack for runes and gold for example then you should use the first script based on container index. Because if you have two or more containers of the same type, Bot cannot guess which is being used for UHs.
I really don't understand why you would use the second script.