Yoko

All sides of Injection
It is currently 2025-10-22 11:46:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2007-06-03 01:44:32 
Offline

Joined: 2007-02-05 20:26:06
Posts: 6
Location: Olaine
Можете пажалуйста даделать скрипт так есле радам паевлаетса монстрик то чар перестаёт лавить рыбу и адивает лук и начинает атачит бота. И как тока убыл прадалжает далше лавить рыбу. Извинаюсь за плахой русский.
Code:
sub FISHING()

DIM ULOVtype[7]

ULOVtype[0] = '0x09CC' #fish1

ULOVtype[1] = '0x09CD' #fish2

ULOVtype[2] = '0x09CE' #fish3

ULOVtype[3] = '0x09CF' #fish4

ULOVtype[4] = 'UUF' #heal

ULOVtype[5] = 'DMF' #ball

ULOVtype[6] = 'RVH' #sos Tattered Treasure map

VAR udochka = 'XHF'

VAR nozh = '0x0F51'

VAR NumTile = '6043'

VAR MaxWeigth = UO.STR*4

VAR i, x, y, k

wait(200)

UO.Equipt('Rhand', udochka)

start:

for x=-6 to 6

for y=-6 to 6

UO.Print("??????? ? ?????: " + str(x) + " " + str(y))

UO.DeleteJournal()

while not UO.InJournal("no fish here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in water")and not UO.InJournal("Try fishing elsewhere")

k = 0

if UO.Weight > MaxWeigth then

goto finish

endif



UO.DeleteJournal()

UO.WaitTargetTile(NumTile, str(UO.GetX()+x), str(UO.GetY()+y), str(UO.GetZ()))

UO.UseType(udochka)

while not (UO.InJournal("in water") or UO.InJournal("far away") or UO.InJournal("but fail") or UO.InJournal("You pull") or UO.InJournal("no fish here") or UO.InJournal("location") or k==50)

k = k + 1

wait(100)

if UO.InJournal("Targeting Cancelled") then

goto start

endif

wend

#???????? ????



if UO.InJournal("You put") then

for i=0 to 6

UO.FindType(ULOVtype[i], '-1', 'ground')

UO.MoveItem('finditem')

wait(50)

next

endif



wend

next

next

finish:

UO.Print("?????? ???????????? ??? ?????")

wait(1000)

#????? ????

UO.Print("????? ???? ?? ??? ??????")

for i=0 to 3

UO.WaitTargetType(ULOVtype[i])

UO.UseType(nozh)

wait(1000)

next

if UO.Weight < MaxWeigth-5 then

goto start

endif

UO.Print("??????? ???????????")

endsub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited