move to attack npc
Moderators: Murderator+, Murderator
move to attack npc
I want to make a script that makes me go to NPC which I aim at
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
good walker can be found here.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Thanx for all
I wrote something in that manner
It walks over the character that I attacked but it doesn't when the character -that I attacked- goes away from me to use magic. I need a script which makes me walk over other characters continous
I wrote something in that manner
Code: Select all
#########################################################
# Attacker #
#########################################################
sub Attack()
var NPC
uo.findtype('0x000D','-1','ground')
NPC=UO.GetSerial('finditem')
UO.UseType('axe') ; Weapon
UO.UseType('shield') ; Shield
UO.Exec('warmode 1')
wait (100)
IF UO.GetDistance(NPC)<4 Then
uo.targeting('NPC')
wait(100)
UO.Attack(NPC)
wait(100)
endif
end sub
########### GO SCP ##############################################
sub go()
var NPC
uo.findtype('0x000D','-1','ground')
NPC=UO.GetSerial('finditem')
IF UO.GetDistance(NPC)>1 Then
WalkME(0,0,NPC)
endif
end sub
#########################################################
# WALKER #
#########################################################
sub WalkME(x,y,Target)
....
.....
It walks over the character that I attacked but it doesn't when the character -that I attacked- goes away from me to use magic. I need a script which makes me walk over other characters continous
Just add something like a:
Code: Select all
repeat
if UO.GetDistance(NPC)>1 then
GO(....)
else
wait(1000)
end if
UO.FindType(...)
until UO.FindCount==0