Code: Select all
sub main()
#============variable==========
var back="0x558a246a"
#var back="0x4ff80d4e"
var count=1,num=0;
#================Breastplate==================
DW_Plate:
if UO.InJournal("Saving World State") then
wait(10000)
endif
UO.DeleteJournal()
wait(100)
while ((num == count) or (num > count))
num = 0;
goto DW_Legs
wend
if (UO.count("0x1bf2")>=30) then
UO.Exec("waitmenu 'What' 'Armor' 'Select' 'Platemail' 'Select' 'Dwarven Platemail Breastplate'")
wait(500)
UO.Exec("waittargettype 0x1bf2")
wait(500)
UO.usetype("0x13e3")
wait(7500)
uo.exec("cancelmenu")
else
goto DW_Legs
endif
if (UO.InJournal("Exceptional") or UO.InJournal("exceptional")) then
UO.Say('ny3o')
num = num+1
UO.setreceivingcontainer(back)
wait(300)
UO.Exec("waittargettype 0x1416")
wait(10000)
UO.Exec ("addobject temp")
wait(10000)
UO.Exec("grab 0 temp")
wait(10000)
UO.forget("temp") #new command in last releases
wait(10000)
UO.unsetreceivingcontainer()
endif
if UO.InJournal("You destroy some ingots.") then
wait(50)
goto DW_Plate
endif
while (UO.count("0x1416")>=1)
UO.exec("waittargettype 0x1416")
Wait(300)
UO.exec("usetype 0x0fbb")
wait(4000)
wend
goto DW_PlateКто поможет разобраться? Что интересно у других работает ;(