Yoko

All sides of Injection
It is currently 2025-11-02 00:32:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: move to attack npc
PostPosted: 2008-10-14 23:09:00 
Offline

Joined: 2008-10-09 22:02:46
Posts: 6
I want to make a script that makes me go to NPC which I aim at


Top
   
 Post subject:
PostPosted: 2008-10-15 08:57:15 
Offline
User avatar

Joined: 2005-06-07 21:05:18
Posts: 67
Take walker and find monter what you want with command uo.fintype than go to this monster using walker. You can find many skripts like you need by using 'Search'. Noone will wright this script for free... but thay can help if will try to do it yourself. So use search and try.


Top
   
 Post subject:
PostPosted: 2008-10-15 09:11:14 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-10-15 23:03:25 
Offline

Joined: 2008-10-09 22:02:46
Posts: 6
Thanx for all

I wrote something in that manner

Code:
#########################################################
#    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


Top
   
 Post subject:
PostPosted: 2008-10-16 16:12:23 
Offline

Joined: 2006-08-10 08:25:32
Posts: 106
Just add something like a:
Code:
repeat
if UO.GetDistance(NPC)>1 then
   GO(....)
else
   wait(1000)
end if
UO.FindType(...)
until UO.FindCount==0


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 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:  
Powered by phpBB® Forum Software © phpBB Limited