Zhizz
02-18-2020, 11:38 AM
can someone tell me what is wrong xeno dont load script
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
[Zmienne]
local LootBP = '23721' ;Nazwa bp jakiego bot ma resetować.
local LeaveManas = 50 ;od ilu potków nasz bot ma wracać do dp.
local MaxManas = 600 ;Ile pot kupic
[OtwieranieBP]
Container.GetByName(LootBP):Close() ;zamkniecie danego bp
Container.GetFirst():OpenChildren(LootBP) ; otworzenie danego bp
if labelName == 'ResetBP' then
Container.GetByName(LootBP):Close()
wait(500, 600)
Container.GetFirst():OpenChildren(LootBP)
end
[Depo]
Self.DepositItems({11680, 5}, {5884, 5}, {11679, 5}) : ;268- tutaj wpisujemy id itemka którego chcemy żeby bot nam
if labelName == 'Deposit' then
Self.ReachDepot()
wait(500, 600)
end
[Bank]
if labelName == 'Bank' then
Self.SayToNpc({'hi', 'deposit all', 'yes'})
end
[Kupowanie]
Self.ShopBuyItem() ;jaki item ma kuować nasz bot w tym przypadku jest to smp (268)
[Buy]
if labelName == 'Potions' then
Self.SayToNpc({'hi', 'trade'})
Self.ShopBuyItem(23373, (MaxManas-Self.ItemCount(23373)))
end
[Hunt]
if labelName == 'Checker' then
Walker.ConditionalGoto(Self.ItemCount(23373) < LeaveManas, 'Leave', 'ToHunt')
end
end
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
[Zmienne]
local LootBP = '23721' ;Nazwa bp jakiego bot ma resetować.
local LeaveManas = 50 ;od ilu potków nasz bot ma wracać do dp.
local MaxManas = 600 ;Ile pot kupic
[OtwieranieBP]
Container.GetByName(LootBP):Close() ;zamkniecie danego bp
Container.GetFirst():OpenChildren(LootBP) ; otworzenie danego bp
if labelName == 'ResetBP' then
Container.GetByName(LootBP):Close()
wait(500, 600)
Container.GetFirst():OpenChildren(LootBP)
end
[Depo]
Self.DepositItems({11680, 5}, {5884, 5}, {11679, 5}) : ;268- tutaj wpisujemy id itemka którego chcemy żeby bot nam
if labelName == 'Deposit' then
Self.ReachDepot()
wait(500, 600)
end
[Bank]
if labelName == 'Bank' then
Self.SayToNpc({'hi', 'deposit all', 'yes'})
end
[Kupowanie]
Self.ShopBuyItem() ;jaki item ma kuować nasz bot w tym przypadku jest to smp (268)
[Buy]
if labelName == 'Potions' then
Self.SayToNpc({'hi', 'trade'})
Self.ShopBuyItem(23373, (MaxManas-Self.ItemCount(23373)))
end
[Hunt]
if labelName == 'Checker' then
Walker.ConditionalGoto(Self.ItemCount(23373) < LeaveManas, 'Leave', 'ToHunt')
end
end