@Oscagi @yompa93
The script is very problematic, becouse:
I'll have to always empty first container, this is impossible when i used bank. And i'll have to change all scripts .lua and create new products.
I found this script:
PHP Code:
local AxeBackpack = "Backpack Of Holding"
local ReplaceAxe = 16096
local ChargeGem = 675
Module.New("Enchant", function(mod)
local weapon = Self.Weapon()
if (weapon.id == 7389) then
Walker.Stop()
local ping = Self.Ping()
local bp = Container.New(AxeBackpack)
local spots = {}
while (Self.Weapon().id == 7389) do
Self.Equip(ReplaceAxe, "weapon")
wait(500 + ping)
end
for i = 0, bp:ItemCount() do
local spot = bp:GetItemData(i)
if (spot.id == ChargeGem) then
spots[1] = i
elseif (spot.id == 7389) then
spots[2] = i
end
end
if (spots ~= nil) then
bp:UseItemWithContainerItem(spots[1], bp:Index(), spots[2])
wait(500 + ping)
local new = bp:GetItemData(spots[2])
while (Self.Weapon().id ~= new.id) do
Self.Equip(new.id, "weapon")
wait(500 + ping)
end
else
print("Weapon and gems must be in the same backpack!")
end
Walker.Start()
end
mod:Delay(10000)
end)
This is better, but sometimes when i have exhausted and script try use gem on axe don't do it, and my waypoints is stoped.