Code: Select all
sub polar()
repeat
uo.cancelmenu()
uo.cast('Summ. Creature')
uo.automenu("What do you want to summon ?" , "Polar Bear")
wait(100)
uo.waittargettile('lasttile')
wait(4000)
until uo.dead()
end sub
вот типa в этом сцп можно кaк то сделaть без тaргэтa чтоб он срaзу кидaл медведей под себя покa я не остaновлю сцп?
2.
Code: Select all
sub mine()
UO.DeleteJournal()
var x, y, i, tmp, inside, goto_x, st, first
st=0
first=UO.GetX()
start:
inside=0
for y=-2 to 2
for x=-2 to 2
try:
UO.Exec ("waittargettile "+" 1340 "+STR(UO.GEtX()+x)+" "+STR(UO.GetY()+y)+" 0")
UO.exec ("usetype 0x0E85")
#UO.Print (""+STR(x))
#UO.Print (""+STR(y))
i=0
while i< 100
if UO.InJournal("You loosen some rocks but fail to find any useable ore") then
wait (1000)
i=200
UO.DeleteJournal()
goto try
endif
if UO.InJournal("Try mining elsewhere") then
i=200
UO.DeleteJournal()
endif
if UO.InJournal("You must wait to perform another action") then
wait (1000)
i=200
UO.DeleteJournal()
goto try
endif
if UO.InJournal("There is nothing here to mine for") then
wait (1000)
i=200
UO.DeleteJournal()
endif
if UO.InJournal("You have no line of sight to that location") then
wait (1000)
i=200
UO.DeleteJournal()
endif
wait (500)
;UO.FindType(0x19B9, 0x06D6, 2)
;UO.Drop('0',STR(UO.GetX('self')),STR(UO.GetY('self')),STR(UO.GetZ('self')),'finditem')
i=i+1
wend
next
next
if st == 0 then
goto_x=UO.GetX()+5
while inside < 10
while UO.GetX() < goto_x
UO.Press (39, 1, 500)
inside=0
wend
while UO.GetX() > goto_x
UO.Press (37, 1, 500)
inside=0
wend
inside=inside+1
wait (300)
wend
st=1
goto start
endif
if st == 1 then
while inside < 10
while UO.GetX() < first
UO.Press (39, 1, 500)
inside=0
wend
while UO.GetX() > first
UO.Press (37, 1, 500)
inside=0
wend
inside=inside+1
wait (300)
wend
st=0
endif
goto start
if uo.InJournal("Elemental") or uo.InJournal("is attacking you") or uo.Dead() or uo.InJournal("Shanahan") or uo.InJournal("Counsler") then
uo.playwav("C:\WINDOWS\Media\ringin.wav")
end if
end sub
почему в этом сцп ЗВУК который я добaвил нa появления элементa не звучит когдa именно он появился a звучит только тогдa когдa я его зaпускaю?
[Не путаем теги [cоde][/cоde] и [quоte][/quоte]. Leo]