Yoko

All sides of Injection
It is currently 2025-12-02 06:16:44

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2009-02-09 21:07:23 
Offline

Joined: 2007-12-19 12:51:42
Posts: 83
Воопщем находит и атакует врага скрипт отлично но проблема в том что он неделает таргет на атакуемом враге ! тоесть таргет остаётся на том на ком до етого наведн путем спела или бинтов ну воопщем вы поняли ! Пытался сам перепробывал и перечитал всё что косается "Target" но неполучилось... Эксперты хелп !!!



#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++-= Auto Attack Men\Women =-++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

#+++++++++++++-= Auto Attack all players =-+++++++++++++++
sub StartAttack1() ;биндим для атаки всех чаров
StartAttack(1)
end sub
#++++++++++-= Auto Attack PK players only =-+++++++++++++++
sub StartAttack0() ;биндим для атаки только ПК,серых и вражественной гильдии
StartAttack(0)
end sub

sub StartAttack(status)
UO.Ignore("self")
Var FindOK=false,temp,mess,t=0,k
DIM Friend[50]
VAR endlist=6; последнее число в списке друзей
Friend[0]="feduk"
Friend[1]="SENYA"
Friend[2]="Gurza"
Friend[3]="ALF"
Friend[4]="Flatra"
Friend[5]="Antonio."
Friend[6]="Freeman"
uo.set('finddistance','20')
for t=0 to 1
repeat
uo.findtype("0x019"+str(t),"-1","ground")
temp=0
for k=0 to endlist
if Uo.GetName("finditem")==Friend[k] and uo.findcount()<>0 then
UO.Ignore("finditem")
k=endlist
temp=1
end if
next
if temp==0 and uo.findcount()<>0 then
if status==0 and uo.getnotoriety("finditem")>2 then
UO.addobject('Enemy',uo.getserial("finditem"))
Uo.print ("Curent target = "+uo.getname('Enemy'))
uo.ignore('Enemy')
return
else
if status==1 then
UO.addobject('Enemy',uo.getserial("finditem"))
Uo.print("Curent target = "+uo.getname('Enemy'))
uo.ignore('Enemy')
return
else
uo.ignore("finditem")
end if
end if
end if
until uo.findcount()==0
if uo.findcount()==0 then
UO.IgnoreReset()
end if
next
end sub


Top
   
 Post subject:
PostPosted: 2009-02-12 15:51:48 
Offline

Joined: 2007-12-19 12:51:42
Posts: 83
ap


Top
   
PostPosted: 2012-03-08 08:00:40 
Offline

Joined: 2012-02-17 19:44:59
Posts: 7
i'm trying to use this script but when I use it the macro "reads" the name of the players as the last words spoken, example:

a friend says HELLO or IN POR YLEM (casting MA), he attacks them because he can't filter their nicknames...


Top
   
PostPosted: 2012-03-08 15:17:11 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
you need to use uo.click('finditem') after uo.findtype("0x019"+str(t),"-1","ground")


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


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