Раскидывание вещей по сумкам.
Posted: 2004-07-20 06:53:48
Люди у меня к вам такая прозьба. Не могли бы вы написать часть скрипта чтоб чар изготовленное собой кидал по сумкамю Привожу тут скрипт что было легче все сделать. ОЧень попрошу кто может и в сидах - зделайте. В етом скрипте он берет с пола инги делает бронзовые плейт горгеты и кидает их на пол. А мне бы хотелось потом их продавать
Так как на полу в одном месте у нас может лежать только 40 предметов. Заранее спасибо.
sub main()
var tmp, i
UO.Exec ("cancelmenu")
UO.Exec ("automenu 'Blacksmithing' 'Colored Armor'")
UO.Exec ("automenu 'Bronze Armor' 'Bronze Platemail Gorget'")
g:
start:
if UO.Count("0x1BEF") < 50 then
tmp=UO.Count("0x1BEF")
i=0
while uo.life<uo.str
wait(500)
wend
UO.Exec ("findtype 0x1BEF 0x06D6 1")
UO.Exec ("grab 200 finditem")
while tmp==UO.Count ("0x1BEF") and i < 100
wait (500)
i=i+1
wend
endif
while uo.life<uo.str
wait(500)
wend
while UO.Count ("0x1BEF") > 25
tmp=UO.Count("0x1BEF")
i=0
UO.Exec ("usetype 0x1BEF")
while tmp==UO.Count("0x1BEF") and i<100
if UO.InJournal("You have failed to make anything") then
while uo.life<uo.str
wait(500)
wend
UO.DeleteJournal()
wait (1000)
i=200
endif
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while UO.Count ("0x1413") > 0
tmp=UO.Count("0x1413")
while uo.life<uo.str
wait(500)
wend
i=0
UO.Exec ("findtype 0x1413 0x06D6")
UO.Exec ("drophere finditem")
while tmp==UO.Count("0x1413") and i<100
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while uo.life<uo.str
wait(500)
wend
goto g:
end sub

sub main()
var tmp, i
UO.Exec ("cancelmenu")
UO.Exec ("automenu 'Blacksmithing' 'Colored Armor'")
UO.Exec ("automenu 'Bronze Armor' 'Bronze Platemail Gorget'")
g:
start:
if UO.Count("0x1BEF") < 50 then
tmp=UO.Count("0x1BEF")
i=0
while uo.life<uo.str
wait(500)
wend
UO.Exec ("findtype 0x1BEF 0x06D6 1")
UO.Exec ("grab 200 finditem")
while tmp==UO.Count ("0x1BEF") and i < 100
wait (500)
i=i+1
wend
endif
while uo.life<uo.str
wait(500)
wend
while UO.Count ("0x1BEF") > 25
tmp=UO.Count("0x1BEF")
i=0
UO.Exec ("usetype 0x1BEF")
while tmp==UO.Count("0x1BEF") and i<100
if UO.InJournal("You have failed to make anything") then
while uo.life<uo.str
wait(500)
wend
UO.DeleteJournal()
wait (1000)
i=200
endif
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while UO.Count ("0x1413") > 0
tmp=UO.Count("0x1413")
while uo.life<uo.str
wait(500)
wend
i=0
UO.Exec ("findtype 0x1413 0x06D6")
UO.Exec ("drophere finditem")
while tmp==UO.Count("0x1413") and i<100
wait (500)
while uo.life<uo.str
wait(500)
wend
i=i+1
wend
wend
while uo.life<uo.str
wait(500)
wend
goto g:
end sub