Mano, peguei um script aqui de exemplo e dei uma mexida pra fazer isso. Só da uma testada e me fala se precisar melhorara algo!
--[[ Script de Auto Refill Ammo
id da do item a ser recarregado = 16141 // prismatic bolta
slot da boots = InventorySlotAmmo
]]
cycleEvent( function()
if g_game.isOnline() then
local player = g_game.getLocalPlayer()
local slot = InventorySlotAmmo
local back = InventorySlotBack
local bootsSlot = player:getInventoryItem(slot)
local soft = player:getItem('16141')
local botaPos = {['x'] = 65535, ['y'] = slot, ['z'] = 0}
local backPos = {['x'] = 65535, ['y'] = back, ['z'] = 0}
if bootsSlot == nil then
g_game.move(soft, botaPos, soft:getCount())
elseif bootsSlot:getId() ~= 16141 then
g_game.move(bootsSlot, backPos, bootsSlot:getCount())
elseif bootsSlot:getId() == 16141 then
return
end
end
end, 3000)