addobject не работает ;(

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
maxtar
Posts: 1
Joined: 2004-05-25 15:39:33

addobject не работает ;(

Post by maxtar »

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


Это скрипт на изготовление комплекта Эксепт фул дварвен.... Все работает нормально до тех пор пока эксепт не сделает. Сумку он определяет, эдобжект вродебы тожэ работает но он не тыкает по вещи и так и остается висеть...
Кто поможет разобраться? Что интересно у других работает ;(
Biga
Posts: 76
Joined: 2004-04-04 21:04:43
Contact:

Post by Biga »

Ни в чем не уверен, но посоветую не делать goto внутри цикла, авось поможет.
Post Reply