Spaun88 wrote:Все уже помогли разобраться ))
Теперь тоже проблема с задержкой ( вот только у меня задержка 5-6 сек после каждого юза топором (((
Проверяй сообщения журнала в скрипте, там не хватает точки.
Moderators: Murderator+, Murderator
Code: Select all
sub WaitForChange()
var Text1=uo.GetName()+': You hack at the tree for a while, but fail to produce any useable wood.'
var Text2='There are no logs here to chop.'
var Text3="You can't reach this."
var Text4="That is too far away."
var Text5="You can't do much in your current state."
var mess
Code: Select all
ZLK=>0x1BDD
Идем к дереву 2: x=5576 y=28
У вас всего 0 логов в сумке
Из них 0 простых и 0 цветных
Начинаем рубку дерева..
Code: Select all
DIM R[34]
R[1] = 3274;
R[2] = 3275;
R[3] = 3276;
R[4] = 3277;
R[5] = 3280;
R[6] = 3283;
R[7] = 3286;
R[8] = 3288;
R[9] = 3290;
R[10] = 3293;
R[11] = 3296;
R[12] = 3299;
R[13] = 3302;
R[14] = 3320;
R[15] = 3323;
R[16] = 3326;
R[17] = 3329;
R[18] = 3393;
R[19] = 3394;
R[20] = 3395;
R[21] = 3396;
R[22] = 3415;
R[23] = 3416;
R[24] = 3417;
R[25] = 3418;
R[26] = 3419;
R[27] = 3438;
R[28] = 3439;
R[29] = 3440;
R[30] = 3441;
R[31] = 3442;
R[32] = 3460;
R[33] = 3461;
R[34] = 3462;
Code: Select all
var MaxTraceDistance=5
var TraceLoopIncrease=6
var LimitTrace=10
var Speed=2
var StepTimeOut=400 # Если будет наворачивать круги то можно увеличить
var CheckCnt=1 # Если будет наворачивать круги на пустом месте - то можно увеличить
Code: Select all
sub GotoXY(x,y)
Walker(x,y,1)
endsub
Code: Select all
sub ControlOfDanger()
var Time,danger,Space
Time=Time()
Space=' '
while 1
uo.DeleteJournal()
while not uo.InJournal(":")
wait(100)
wend
if uo.InJournal('Ent') then
uo.TextOpen()
uo.TextPrint("Был вырублен Энт - " +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if uo.InJournal('attacking you') then
uo.GetStatus('uo.JournalSerial(0)')
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Вас атаковал - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
danger=uo.GetNotoriety(uo.JournalSerial(0))
if danger==6 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался ПК - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if danger==5 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался вражеский гильдмэн - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if danger==4 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался криминал - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
wend
end sub
What do you want to use this on?
You hack at the tree for a while, but fail to produce any useable wood
Code: Select all
sub ControlOfDanger()
var Time,danger,Space
Time=Time()
Space=' '
while 1
uo.DeleteJournal()
repeat
wait(100)
until uo.InJournal(":") and not uo.InJournal(UO.GetName()+":")
if uo.InJournal('Ent') then
uo.TextOpen()
uo.TextPrint("Был вырублен Энт - " +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if uo.InJournal('attacking you') then
uo.GetStatus('uo.JournalSerial(0)')
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Вас атаковал - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
danger=uo.GetNotoriety(uo.JournalSerial(0))
if danger==6 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался ПК - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if danger==5 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался вражеский гильдмэн - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
if danger==4 then
uo.GetStatus("uo.JournalSerial(0)")
uo.SetGlobal("name",uo.GetName(uo.JournalSerial(0)))
uo.TextOpen()
uo.TextPrint("Рядом оказался криминал - "+uo.GetName(uo.JournalSerial(0)) +Space +Time)
uo.Exec('terminate Lumberjacking')
uo.Exec('exec RecallAtDanger')
end if
wend
end sub
Code: Select all
sub WaitForChange()
var Text1=uo.GetName()+': You hack at the tree for a while, but fail to produce any useable wood.'
var Text2='There are no logs here to chop.'
var Text3= 'You can't reach this. '
var Text4='That is too far away.'
var Text5= 'You can't do much in your current state. '
var Text6= 'OOPS !!!'
var Text7='Ent'
var mess
for var i=0 to 200
mess=uo.Journal(0)
if uo.Journal(0)==Text2 or uo.Journal(0)==Text3 or uo.Journal(0)==Text4 then
return 1
end if
if uo.Journal(0)==Text1 then
return 0
end if
if uo.Journal(0)==Text6 or uo.Journal(0)==Text7 then
uo.PlayWav(DisturbingSound)
wait(600000)
return 1
end if
if mess[0]=='Y' and mess[1]=='o' and mess[2]=='u' and mess[4]=='p' and mess[5]=='u' and mess[6]=='t' then
return 0
end if
wait(50)
next
return 0
end sub
Code: Select all
if mess[0]=='Y' and mess[1]=='o' and mess[2]=='u' and mess[4]=='p' and mess[5]=='u' and mess[6]=='t' then
return 0
end if