Code: Select all
var a =0x71636413 #светло.серый
var b =0x71636A22 #темно.серый
var c =0x7163642A #светло.синий
var d =0x7163647A #темно.синий
var e =0x7163645A #светло.фиолетовый
var f =0x716364B8 #темно.фиолетовый
var g =0x71636485 #светло.зеленый
var h =0x716364AB #темно.зеленый
var i =0x71637489 #светло.коричневый
var j =0x7163648D #темно.коричневый
var k =0x71636469 #светло.красный
var l =0x71684138 #темно.красный
var finished=0
var SewingKit =0x0f9d
var Hides =0x1078
var cap =0x1db9
var food=0x097B
sub IamMakingCaps()
while not UO.InJournal('destroy')
UO.WaitMenu('Choose','leather','What','Leather Cap')
Wait(100)
UO.WaitTargetType(Hides)
Wait(100)
UO.usetype(SewingKit)
UO.WaitTargetType(Hides)
Wait(5000)
uo.usetype(food)
Wait(100)
if UO.InJournal("You can improve it's magic capabilities, choose your magic ingredients") then
uo.deletejournal()
uo.canceltarget()
else
uo.canceltarget()
endif
wend
end sub
sub IamSwappingBags()
wait(100)
uo.unsetcatchbag()
wait(100)
uo.DeleteJournal()
wait(100)
uo.setcatchbag(a) #ставим setcatchbag на 1ый мешок
wait(100)
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю первый мешок")
wait(100)
uo.say(".reply Processing 1st bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("1ый мешок заполнен. Осталось: 11")
wait(100)
uo.setcatchbag(b) #ставим setcatchbag на 2й
wait(100)
uo.DeleteJournal()
wait(100)
goto three
endif
wend
three:
while not uo.dead()
wait(100)
if uo.injournal("status") then
wait(100)
uo.say("Заполняю второй мешок")
wait(100)
uo.say(".reply Processing 2nd bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("2ой мешок заполнен. Осталось: 10")
uo.setcatchbag(c) #ставим setcatchbag на 3ий
wait(100)
uo.DeleteJournal()
wait(100)
goto four
endif
wend
four:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю третий мешок")
wait(100)
uo.say(".reply Processing 3rd bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("3ий мешок заполнен. Осталось: 9")
uo.setcatchbag(d) #ставим setcatchbag на 4ый
wait(100)
uo.DeleteJournal()
wait(100)
goto five
endif
wend
five:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю четвертый мешок")
wait(100)
uo.say(".reply Processing 4th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("4ый мешок заполнен. Осталось: 8")
uo.setcatchbag(e) #ставим setcatchbag на 5ый
wait(100)
uo.DeleteJournal()
wait(100)
goto six
endif
wend
six:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю пятый мешок")
wait(100)
uo.say(".reply Processing 5th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("5ый мешок заполнен. Осталось: 7")
uo.setcatchbag(f) #ставим setcatchbag на 6ой
wait(100)
uo.DeleteJournal()
wait(100)
goto seven
endif
wend
seven:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю шестой мешок")
wait(100)
uo.say(".reply Processing 6th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("6ой мешок заполнен. Осталось: 6")
uo.setcatchbag(g) #ставим setcatchbag на 7ой
wait(100)
uo.DeleteJournal()
wait(100)
goto eight
endif
wend
eight:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю седьмой мешок")
wait(100)
uo.say(".reply Processing 7th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("7ой мешок заполнен. Осталось: 5")
uo.setcatchbag(h) #ставим setcatchbag на 8ой
wait(100)
uo.DeleteJournal()
wait(100)
goto nine
endif
wend
nine:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю восьмой мешок")
wait(100)
uo.say(".reply Processing 8th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("8ой мешок заполнен. Осталось: 4")
uo.setcatchbag(i) #ставим setcatchbag на 9ый
wait(100)
uo.DeleteJournal()
wait(100)
goto ten
endif
wend
ten:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю девятый мешок")
wait(100)
uo.say(".reply Processing 9th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("9ый мешок заполнен. Осталось: 3")
uo.setcatchbag(j) #ставим setcatchbag на 10ый
wait(100)
uo.DeleteJournal()
wait(100)
goto eleven
endif
wend
eleven:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю десятый мешок")
wait(100)
uo.say(".reply Processing 10th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("10ый мешок заполнен. Осталось: 2")
uo.setcatchbag(k) #ставим setcatchbag на 11
wait(100)
uo.DeleteJournal()
wait(100)
goto twelve
endif
wend
twelve:
while not uo.dead()
if uo.injournal("status") then
wait(100)
uo.say("Заполняю одиннадцатый мешок")
wait(100)
uo.say(".reply Processing 11th bag")
wait(100)
uo.DeleteJournal()
endif
if uo.injournal("That item is too heavy") then
wait(100)
uo.say("11ый мешок заполнен. Осталось: 1")
uo.setcatchbag(l) #ставим setcatchbag на 12ый
wait(100)
uo.DeleteJournal()
wait(100)
goto last
endif
wend
last:
while not uo.dead()
if uo.injournal("status") then
if finished==0 then
wait(100)
uo.say("Заполняю последний мешок")
wait(100)
uo.say(".reply Processing last bag")
wait(100)
uo.DeleteJournal()
else
uo.say("Все мешки заполнены!")
wait(100)
uo.say(".reply All bags processed. Please collect")
wait(100)
uo.DeleteJournal()
endif
if UO.InJournal('destroy') then
wait(100)
uo.unsetcatchbag()
wait(100)
finished=1
endif
wend
end sub