Автолут на ID
Moderators: Murderator+, Murderator
Автолут на ID
ребята как сделать чтоб в обичном аутолуте добовлять предмети не по тайпу а по ID ??? пробывал вместо тайпа вставлять Айди но скрипт перестаёт работать норм.... вот мой скрипт
sub lut2()
var t,l,m
m=42 ## ?????????? ????? ??? ????
t=1700
dim LootingItem[42] ## ?????? ?????? ??? ????
LootingItem[1] = 0x1406 ## war mace
LootingItem[2] = 0x0B33 ## ID
LootingItem[3] = 0x0B33 ## ID
LootingItem[4] = 0x0B33 ## ID
LootingItem[5] = 0x0B33 ## ID
LootingItem[6] = 0x0B33 ## ID
LootingItem[7] = 0x0B33 ## ID
LootingItem[8] = 0x0B33 ## ID
LootingItem[9] = 0x0B33 ## ID
LootingItem[10] = 0x0B33 ## ID
LootingItem[11] = 0x0B33 ## ID
LootingItem[12] = 0x0B33 ## ID
LootingItem[13] = 0x0B33 ## ID
LootingItem[14] = 0x0B33 ## ID
LootingItem[15] = 0x0B33 ## ID
LootingItem[16] = 0x13FC ## xbow
LootingItem[17] = 0x143E ## stych
LootingItem[18] = 0x1400 ## kryss
LootingItem[19] = 0x108A ## ring
LootingItem[20] = 0x1415 ## plate chest
LootingItem[21] = 0x1411 ## plate legs
LootingItem[22] = 0x1410 ## plate arms
LootingItem[23] = 0x1412 ## plate helm
LootingItem[24] = 0x1414 ## plate gloves
LootingItem[25] = 0x1413 ## plate gorget
LootingItem[26] = 0x1BC3 ## devil shield
LootingItem[27] = 0x1BC4 ## angel shield
LootingItem[28] = 0x13B1 ## bow
LootingItem[29] = 0x0F60 ## sword
LootingItem[30] = 0x1406 ## war mace
LootingItem[31] = 0x13BA ## viking sword
LootingItem[32] = 0x143C ## hammer picka
LootingItem[33] = 0x0E76 ## kruglaja sumka
LootingItem[34] = 0x14EF ## check
LootingItem[35] = 0x144F ##
LootingItem[36] = 0x1415 ##
LootingItem[37] = 0x1412 ##
LootingItem[38] = 0x1410 ##
LootingItem[39] = 0x1413 ##
LootingItem[40] = 0x1414 ##
LootingItem[41] = 0x1411 ##
LootingItem[42] = 0x0EED ## bablo
uo.set("finddistance",4)
for l=1 to m
uo.findtype(LootingItem[l],"-1","1")
while uo.FindCount() > 0
uo.grab("0","finditem")
wait(t)
uo.findtype(LootingItem[l],"-1","1")
wend
next
if uo.GetSerial("lastcontainer") == uo.GetSerial(uo.ObjAtLayer('Bpack')) then
goto end
endif
for l=1 to m
uo.FindType(LootingItem[l],"-1","lastcontainer")
while UO.FindCount() > 0
uo.grab(0,"finditem")
wait(t)
uo.FindType(LootingItem[l],"-1","lastcontainer")
wend
next
end:
end sub
sub lut2()
var t,l,m
m=42 ## ?????????? ????? ??? ????
t=1700
dim LootingItem[42] ## ?????? ?????? ??? ????
LootingItem[1] = 0x1406 ## war mace
LootingItem[2] = 0x0B33 ## ID
LootingItem[3] = 0x0B33 ## ID
LootingItem[4] = 0x0B33 ## ID
LootingItem[5] = 0x0B33 ## ID
LootingItem[6] = 0x0B33 ## ID
LootingItem[7] = 0x0B33 ## ID
LootingItem[8] = 0x0B33 ## ID
LootingItem[9] = 0x0B33 ## ID
LootingItem[10] = 0x0B33 ## ID
LootingItem[11] = 0x0B33 ## ID
LootingItem[12] = 0x0B33 ## ID
LootingItem[13] = 0x0B33 ## ID
LootingItem[14] = 0x0B33 ## ID
LootingItem[15] = 0x0B33 ## ID
LootingItem[16] = 0x13FC ## xbow
LootingItem[17] = 0x143E ## stych
LootingItem[18] = 0x1400 ## kryss
LootingItem[19] = 0x108A ## ring
LootingItem[20] = 0x1415 ## plate chest
LootingItem[21] = 0x1411 ## plate legs
LootingItem[22] = 0x1410 ## plate arms
LootingItem[23] = 0x1412 ## plate helm
LootingItem[24] = 0x1414 ## plate gloves
LootingItem[25] = 0x1413 ## plate gorget
LootingItem[26] = 0x1BC3 ## devil shield
LootingItem[27] = 0x1BC4 ## angel shield
LootingItem[28] = 0x13B1 ## bow
LootingItem[29] = 0x0F60 ## sword
LootingItem[30] = 0x1406 ## war mace
LootingItem[31] = 0x13BA ## viking sword
LootingItem[32] = 0x143C ## hammer picka
LootingItem[33] = 0x0E76 ## kruglaja sumka
LootingItem[34] = 0x14EF ## check
LootingItem[35] = 0x144F ##
LootingItem[36] = 0x1415 ##
LootingItem[37] = 0x1412 ##
LootingItem[38] = 0x1410 ##
LootingItem[39] = 0x1413 ##
LootingItem[40] = 0x1414 ##
LootingItem[41] = 0x1411 ##
LootingItem[42] = 0x0EED ## bablo
uo.set("finddistance",4)
for l=1 to m
uo.findtype(LootingItem[l],"-1","1")
while uo.FindCount() > 0
uo.grab("0","finditem")
wait(t)
uo.findtype(LootingItem[l],"-1","1")
wend
next
if uo.GetSerial("lastcontainer") == uo.GetSerial(uo.ObjAtLayer('Bpack')) then
goto end
endif
for l=1 to m
uo.FindType(LootingItem[l],"-1","lastcontainer")
while UO.FindCount() > 0
uo.grab(0,"finditem")
wait(t)
uo.FindType(LootingItem[l],"-1","lastcontainer")
wend
next
end:
end sub
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Берете весь этот свой огромный скрипт и заменяете на:
PS: А вот нет у меня сегодня желания сказать, что то, что вы хотите кажется несколько бредовым.
Code: Select all
uo.moveitem( "Ваш ID" )
PS: А вот нет у меня сегодня желания сказать, что то, что вы хотите кажется несколько бредовым.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
-
- Posts: 54
- Joined: 2009-03-04 19:16:18
-
- Posts: 54
- Joined: 2009-03-04 19:16:18
-
- Posts: 174
- Joined: 2008-12-13 00:00:15
zaelol wrote:я ЗНАЮ что мне надо !
))
Code: Select all
sub lut2()
var t,l,m
m=42 # массив
t=1700 # время
dim LootingItem[42]
LootingItem[1] = 0x14060000 ## war mace
LootingItem[2] = 0x0B330000## ID
...
LootingItem[41] = 0x14110000 ##
LootingItem[42] = 0x0EED0000 ## bablo
for l=1 to m
if uo.getdistance(LootingItem[l]) <= 3 then
uo.grab("0",LootingItem[l])
wait(t)
end if
next
end sub