I try to avoid yalahar manashop because of war. I want my script to refill sd and gmp from depot. I made some action that work but not perfectly =\
By the way, the actions is the same for gmp and sd.
--Name of runes to move:
local nameRuneToMove = (nameRune)
--Name of backpack that have all potions to move:
local from = (bpSd)
--Name of backpack to move all potions into:
local to = (supBp)
while (itemcount(nameRuneToMove, supBp) < maxRune)
moveitems(nameRuneToMove, from, to, 100)
Whatever, if I have let's say 74 sd left and 124 gmp when I go refill script will try to move 100 gmp forever even if I only need 26 to complete my maxMP setting.
EDIT: This result let's say my max supply is 800 sd 250 gmp I end up with 824 sd and 224 gmp and bot try to move another stack of 100 gmp to complete to 250 but I have no cap so it just stand there forever trying to move the stack
Anyone have a clue?