Skocz do zawartości

Wyjmowanie itemów z MailBoxa XenoBot


-Askry-

Rekomendowane odpowiedzi

Potrzebuje jakiś skrypt żeby wyjmował mi wszystkie itemki jakie są w inboxie do Backpacka i potem zeby otwierał nastepny BP i tak w kółko. Jak nie da się ustawić wszystkich to chociaż skrypt żebym tam mógł wprowadzić ID tych itemów.

 

Za pomoc będą +++++

 

Pozdrooo

Odnośnik do komentarza
Udostępnij na innych stronach

Na przyszłość pisz w tym temacie - http://www.mpcforum.pl/topic/1259260-pro%C5%9Bba-o-skryptywaypointycaveboty/

------USTAWIENIA ------------------
local itemSort = id1 
local itemSort2 = id2 
local backpackSortFrom = 'Your inbox' 
local backpackSortTo = 'Beach backpack' 
local dLay = 0 
------KONIEC USTAWIEN ------------------
local itemSorter = function(sortItem, from, to)
local fromBp = Container.New(from)
local toBp = Container.New(to)


if type(sortItem) == 'number' then
for spot, item in (fromBp:iItems()) do
if item.id == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
elseif type(sortItem) == 'string' then
for spot, item in (fromBp:iItems()) do
if item.name == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
end
end
Module.New('Sorter', function(this)
itemSorter(itemSort, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort2, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
end)

N48OtMA.gif
Jak będzie za duży exhaust to zwiększ local dLay = 0, możesz dodać więcej itemków dodając np. local itemSort3 i dopisując odpowiednie linijki w Module.New('Sorter', function(this).

 

Odnośnik do komentarza
Udostępnij na innych stronach

------USTAWIENIA ------------------
local itemSort = 3370
local itemSort2 = 3079
local itemSort3 = 7436
local itemSort4 = 3567
local itemSort5 = 7412
local itemSort6 = 3381
local itemSort7 = 3382
local itemSort8 = 3302
local itemSort9 = 3416
local itemSort10 = 3320
local itemSort11 = 3280
local itemSort12 = 3415
local itemSort13 = 3284
local itemSort14 = 3370
local itemSort15 = 3371
local itemSort16 = 3324
local itemSort17 = 7413
local itemSort18 = 7428
local itemSort19 = 3322
local itemSort20 = 7419
local itemSort21 = 3281
local itemSort22 = 7407
local itemSort23 = 3428
local itemSort24 = 3434
local itemSort25 = 3369
local itemSort26 = 3067
local itemSort27 = 8084
local itemSort28 = 3065
local itemSort29 = 8082
local itemSort30 = 3073
local itemSort31 = 3071
local itemSort32 = 8092
local itemSort33 = 8094
local itemSort34 = 7426
local itemSort35 = 7404
local itemSort36 = 3344
local itemSort37 = 7403
local itemSort38 = 7427
local itemSort39 = 3420
local itemSort40 = 7382
local itemSort41 = 7387
local itemSort42 = 3386
local itemSort43 = 7402
local itemSort44 = 7430
local itemSort45 = 3326
local itemSort46 = 823
local itemSort47 = 829
local itemSort48 = 824
local itemSort49 = 3063
local itemSort50 = 3360
local itemSort51 = 3364
local itemSort52 = 3315
local itemSort53 = 3366
local itemSort54 = 826
local itemSort55 = 821
local itemSort56 = 3436
local itemSort57 = 7386
local itemSort58 = 7418
local itemSort59 = 7456
local itemSort60 = 3055
local itemSort61 = 7382
local itemSort62 = 3006
local itemSort63 = 6553
local itemSort64 = 5741
local itemSort65 = 8061
local itemSort66 = 3554
local itemSort67 = 813
local itemSort68 = 812
local itemSort69 = 811
local itemSort70 = 830
local itemSort71 = 814
local itemSort72 = 7388
local itemSort73 = 3342




local backpackSortFrom = 'Your inbox'
local backpackSortTo = 'Blue backpack'
local dLay = 0
------KONIEC USTAWIEN ------------------
local itemSorter = function(sortItem, from, to)
local fromBp = Container.New(from)
local toBp = Container.New(to)


if type(sortItem) == 'number' then
for spot, item in (fromBp:iItems()) do
if item.id == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
elseif type(sortItem) == 'string' then
for spot, item in (fromBp:iItems()) do
if item.name == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
end
end
Module.New('Sorter', function(this)
itemSorter(itemSort, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort2, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
end)

 

 

WPISAŁEM ID WSZYSTKICH ITEMKÓW TAK JAK MÓWIŁEŚ ZA ZBIERA Z INBOXA TYLKO I WYŁĄCZNIE TEN PIERWSZY (KNIGHT ARMOR).. CO TERAZ ZROBIĆ ŻEBY ZBIERAŁ ALL?

Odnośnik do komentarza
Udostępnij na innych stronach

Jak dodałem do sort 20 to normalnie zbiera, ale ja chce 73 :D i co teraz?

 

Jedyne co mi przyszło do głowy to to: Ale i tak nie działa.. :|

 

------USTAWIENIA ------------------
local itemSort = 3370
local itemSort2 = 3079
local itemSort3 = 7436
local itemSort4 = 3567
local itemSort5 = 7412
local itemSort6 = 3381
local itemSort7 = 3382
local itemSort8 = 3302
local itemSort9 = 3416
local itemSort10 = 3320
local itemSort11 = 3280
local itemSort12 = 3415
local itemSort13 = 3284
local itemSort14 = 3370
local itemSort15 = 3371
local itemSort16 = 3324
local itemSort17 = 7413
local itemSort18 = 7428
local itemSort19 = 3322
local itemSort20 = 7419
local itemSort21 = 3281
local itemSort22 = 7407
local itemSort23 = 3428
local itemSort24 = 3434
local itemSort25 = 3369
local itemSort26 = 3067
local itemSort27 = 8084
local itemSort28 = 3065
local itemSort29 = 8082
local itemSort30 = 3073
local itemSort31 = 3071
local itemSort32 = 8092
local itemSort33 = 8094
local itemSort34 = 7426
local itemSort35 = 7404
local itemSort36 = 3344
local itemSort37 = 7403
local itemSort38 = 7427
local itemSort39 = 3420
local itemSort40 = 7382
local itemSort41 = 7387
local itemSort42 = 3386
local itemSort43 = 7402
local itemSort44 = 7430
local itemSort45 = 3326
local itemSort46 = 823
local itemSort47 = 829
local itemSort48 = 824
local itemSort49 = 3063
local itemSort50 = 3360
local itemSort51 = 3364
local itemSort52 = 3315
local itemSort53 = 3366
local itemSort54 = 826
local itemSort55 = 821
local itemSort56 = 3436
local itemSort57 = 7386
local itemSort58 = 7418
local itemSort59 = 7456
local itemSort60 = 3055
local itemSort61 = 7382
local itemSort62 = 3006
local itemSort63 = 6553
local itemSort64 = 5741
local itemSort65 = 8061
local itemSort66 = 3554
local itemSort67 = 813
local itemSort68 = 812
local itemSort69 = 811
local itemSort70 = 830
local itemSort71 = 814
local itemSort72 = 7388
local itemSort73 = 3342




local backpackSortFrom = 'Your inbox'
local backpackSortTo = 'Blue backpack'
local dLay = 0
------KONIEC USTAWIEN ------------------
local itemSorter = function(sortItem, from, to)
local fromBp = Container.New(from)
local toBp = Container.New(to)


if type(sortItem) == 'number' then
for spot, item in (fromBp:iItems()) do
if item.id == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
elseif type(sortItem) == 'string' then
for spot, item in (fromBp:iItems()) do
if item.name == sortItem then
fromBp:MoveItemToContainer(spot, toBp:Index())
end
end
end
end
Module.New('Sorter', function(this)
itemSorter(itemSort, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort2, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort3, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort4, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort5, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort6, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort7, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort8, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort9, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort10, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort11, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort12, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort13, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort14, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort15, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort16, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort17, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort18, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort19, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort20, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort21, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort22, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort23, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort24, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort25, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort26, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort27, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort28, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort29, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort30, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort31, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort32, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort33, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort34, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort35, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort36, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort37, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort38, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort39, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort40, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort41, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort42, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort43, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort44, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort45, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort46, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort47, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort48, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort49, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort50, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort51, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort52, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort53, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort54, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort55, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort56, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort57, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort58, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort59, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort60, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort61, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort62, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort63, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort64, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort65, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort66, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort67, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort68, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort69, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort70, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort71, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort72, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
itemSorter(itemSort73, backpackSortFrom, backpackSortTo)
this:Delay(dLay)
end)

Odnośnik do komentarza
Udostępnij na innych stronach

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

  • Ostatnio przeglądający forum Wyjmowanie itemów z MailBoxa XenoBot   0 użytkowników
    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...