| Yoko http://forum.yoko.com.ua/ |
|
| Автокилл моба http://forum.yoko.com.ua/viewtopic.php?f=20&t=13613 |
Page 1 of 1 |
| Author: | psixozz [ 2008-05-23 11:21:24 ] |
| Post subject: | Автокилл моба |
НУжен скрипт для вычестки респа определенного монстра с подхилом и реколом при нахождении желанного айтема в мобе , если есть у кого вылодите , если ест ьпредложения то асю оставьте ) |
|
| Author: | a Buddhist [ 2008-10-23 08:49:18 ] |
| Post subject: | |
Сам искал, долго не мог найти. Если можно то вставте туда плиз скриптик что бы он запускался после того как умер НПС.: sub findpack1() while 1 if UO.InJournal("Body of") Then uo.deleteJournal() cloot233() endif wait(300) wend endsub Вот сама автокиллка ;D : sub Attack666() uo.set('finddistance','10') DIM R[5] R[1] = 0x002D # Òèï çâåðÿ. R[2] = 0x0023 R[3] = 0x002D R[4] = 0x002D R[5] = 0x002D VAR LastTimer, Attack var a repeat for a=1 to 5 UO.DeleteJournal() UO.FindType(R[a],-1,'ground') if UO.FindCount("finditem")>0 then Attack=UO.GetSerial('finditem') UO.Exec('warmode 1') UO.Attack(Attack) WalkN(0,0,Attack) LastTimer=UO.Timer() repeat wait(2000) until uo.dead(Attack) or UO.InJournal('Body') OR LastTimer+150<UO.Timer() endif wait(500) next wait(200) until uo.dead() end sub UO.DeleteJournal() repeat repeat wait(100) until UO.InJournal("Body of") UO.JournalSerial(UO.InJournal("Body of")-1) UO.DeleteJournal() sub Numb(num) if num>=0 then return num else return num*(-1) end if end sub sub WalkN(x,y,Target) VAR i,StepSucess VAR dx,dy,Exit=0 While Exit<>1 If Target<>"" Then dx=UO.GetX(Target)-UO.GetX() dy=UO.GetY(Target)-UO.GetY() If UO.GetDistance(Target)<2 Then Exit=1 Endif Else dx=x-UO.GetX() dy=y-UO.GetY() If dx==0 AND dy==0 Then Exit=1 Endif Endif If dx<>0 AND dy<>0 Then If dx>0 AND dy>0 Then StepSucess=Go(3,40,300);SE - DownArrow Endif If dx>0 AND dy<0 Then StepSucess=Go(1,39,300);NE - RightArrow Endif If dx<0 AND dy>0 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif If dx<0 AND dy<0 Then StepSucess=Go(7,38,300);WN - UpArrow Endif Endif If dx<>0 AND dy==0 Then If dx>0 Then StepSucess=Go(2,34,300);E - PgDown If StepSucess==-1 Then StepSucess=Go(3,40,300);SE - DownArrow If StepSucess==-1 Then StepSucess=Go(1,39,300);NE - RightArrow Endif Endif Endif If dx<0 Then StepSucess=Go(6,36,300);W - Home If StepSucess==-1 Then StepSucess=Go(7,38,300);WN - UpArrow If StepSucess==-1 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif Endif Endif Endif If dx==0 AND dy<>0 Then If dy>0 Then StepSucess=Go(4,35,300);S - End If StepSucess==-1 Then StepSucess=Go(3,40,300);SE - DownArrow If StepSucess==-1 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif Endif Endif If dy<0 Then StepSucess=Go(0,33,300);N - PgUp If StepSucess==-1 Then StepSucess=Go(7,38,300);WN - UpArrow If StepSucess==-1 Then StepSucess=Go(1,39,300);NE - RightArrow Endif Endif Endif Endif Wend end sub sub Go(dir,key,walkwait) VAR x,y x=UO.GetX() y=UO.GetY() while UO.GetDir()<>dir UO.Press(key) wait(walkwait) If UO.GetDir()<>dir Then Endif wend UO.Press(key) wait(walkwait) If x==UO.GetX() AND y==UO.GetY() Then Endif If x==UO.GetX() AND y==UO.GetY() Then return -1 Else return 1 Endif end sub Quote: Quote:
|
|
| Author: | a Buddhist [ 2008-10-23 08:50:31 ] |
| Post subject: | |
Сам искал, долго не мог найти. Если можно то вставте туда плиз скриптик что бы он запускался после того как умер НПС.: Quote: sub findpack1() while 1 if UO.InJournal("Body of") Then uo.deleteJournal() cloot233() endif wait(300) wend endsub Вот сама автокиллка ;D : Quote: sub Attack666()
uo.set('finddistance','10') DIM R[5] R[1] = 0x002D # Òèï çâåðÿ. R[2] = 0x0023 R[3] = 0x002D R[4] = 0x002D R[5] = 0x002D VAR LastTimer, Attack var a repeat for a=1 to 5 UO.DeleteJournal() UO.FindType(R[a],-1,'ground') if UO.FindCount("finditem")>0 then Attack=UO.GetSerial('finditem') UO.Exec('warmode 1') UO.Attack(Attack) WalkN(0,0,Attack) LastTimer=UO.Timer() repeat wait(2000) until uo.dead(Attack) or UO.InJournal('Body') OR LastTimer+150<UO.Timer() endif wait(500) next wait(200) until uo.dead() end sub UO.DeleteJournal() repeat repeat wait(100) until UO.InJournal("Body of") UO.JournalSerial(UO.InJournal("Body of")-1) UO.DeleteJournal() sub Numb(num) if num>=0 then return num else return num*(-1) end if end sub sub WalkN(x,y,Target) VAR i,StepSucess VAR dx,dy,Exit=0 While Exit<>1 If Target<>"" Then dx=UO.GetX(Target)-UO.GetX() dy=UO.GetY(Target)-UO.GetY() If UO.GetDistance(Target)<2 Then Exit=1 Endif Else dx=x-UO.GetX() dy=y-UO.GetY() If dx==0 AND dy==0 Then Exit=1 Endif Endif If dx<>0 AND dy<>0 Then If dx>0 AND dy>0 Then StepSucess=Go(3,40,300);SE - DownArrow Endif If dx>0 AND dy<0 Then StepSucess=Go(1,39,300);NE - RightArrow Endif If dx<0 AND dy>0 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif If dx<0 AND dy<0 Then StepSucess=Go(7,38,300);WN - UpArrow Endif Endif If dx<>0 AND dy==0 Then If dx>0 Then StepSucess=Go(2,34,300);E - PgDown If StepSucess==-1 Then StepSucess=Go(3,40,300);SE - DownArrow If StepSucess==-1 Then StepSucess=Go(1,39,300);NE - RightArrow Endif Endif Endif If dx<0 Then StepSucess=Go(6,36,300);W - Home If StepSucess==-1 Then StepSucess=Go(7,38,300);WN - UpArrow If StepSucess==-1 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif Endif Endif Endif If dx==0 AND dy<>0 Then If dy>0 Then StepSucess=Go(4,35,300);S - End If StepSucess==-1 Then StepSucess=Go(3,40,300);SE - DownArrow If StepSucess==-1 Then StepSucess=Go(5,37,300);SW - LeftArrow Endif Endif Endif If dy<0 Then StepSucess=Go(0,33,300);N - PgUp If StepSucess==-1 Then StepSucess=Go(7,38,300);WN - UpArrow If StepSucess==-1 Then StepSucess=Go(1,39,300);NE - RightArrow Endif Endif Endif Endif Wend end sub sub Go(dir,key,walkwait) VAR x,y x=UO.GetX() y=UO.GetY() while UO.GetDir()<>dir UO.Press(key) wait(walkwait) If UO.GetDir()<>dir Then Endif wend UO.Press(key) wait(walkwait) If x==UO.GetX() AND y==UO.GetY() Then Endif If x==UO.GetX() AND y==UO.GetY() Then return -1 Else return 1 Endif end sub |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|