Target Next

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Slayerex
Posts: 3
Joined: 2010-01-10 16:12:33

Target Next

Post by Slayerex »

I need one script of target next that he selects nicks specific
and cast auto flame strike
help me
Slayerex
Posts: 3
Joined: 2010-01-10 16:12:33

Post by Slayerex »

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++-= 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,a
DIM Friend[50]
VAR endlist=4; последнее число в списке друзей
Friend[0]="fdsafas"
Friend[1]="SENYA"
Friend[2]="Gurza"
Friend[3]="ALF"
Friend[4]="Flatra"
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')
a = uo.getserial('finditem')
uo.attack( a )

return
else
if status==1 then
UO.addobject('Enemy',uo.getserial("finditem"))
Uo.print("Curent target = "+uo.getname('Enemy'))
uo.ignore('Enemy')
a = uo.getserial('finditem')
uo.attack( a )
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

this macro fucking good but dont filtre npcs? help
Slayerex
Posts: 3
Joined: 2010-01-10 16:12:33

Post by Slayerex »

the macro catches target bug when I go to launch the magic it appears " you cant see the target " .. help me
Xpree
Posts: 19
Joined: 2010-01-06 17:18:40

Re: Target Next

Post by Xpree »

uder this line uo.attack( a )

uo.addobject('laststatus',a)
uo.addobject('lasttarget',a)
tEhfO
Posts: 7
Joined: 2012-02-17 19:44:59

Re: Target Next

Post by tEhfO »

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...
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Re: Target Next

Post by Nmy »

use client built in target next
and cast spells using laststatus
Post Reply