Yoko

All sides of Injection
It is currently 2025-12-02 04:22:53

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2006-06-21 22:55:51 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
is there a way to script a targetnext that doesnt target woman ou men npcs, like the vendors ?

I always die in PVP to blues, because i take too long to get they targeted. :/

I searched for any difference between players and npcs, and i found something called HAS.

Player:
ID=0x00006F8A Type=0x0190 EJQB Name=Velh0 de SaiA
Quantity: 0 Colour: 0x83EA Layer: 0 Has: 1
X=1220 Y=1773 Z=0 C=0xFFFFFFFF F=0x00

HAS = 1

VENDORS:
ID=0x000409CE Type=0x0190 SKBP Name=Strom
Quantity: 0 Colour: 0x041C Layer: 0 Has: 0
X=3053 Y=3366 Z=15 C=0xFFFFFFFF F=0x00

HAS = 0...

is there a way to write a script that target only human with has = 1 ?
what has means ?


Top
   
 Post subject:
PostPosted: 2006-06-21 23:44:03 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
She is a horse...
:(


Top
   
 Post subject:
PostPosted: 2006-06-22 00:18:07 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
so, there is a way to target only people in a horse?
has=1 ?


how can i do it.


Top
   
 Post subject:
PostPosted: 2006-06-22 01:28:02 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
Code:
sub F_Target()
   UO.Ignore("self")
   for a = 0 to a > 1
      for i = 16033 to i > 16059
         repeat
            var horse = UO.GetSerial("~0x019" + str(a) + "." + str(UO.Int2Hex(i)))
         until horse <> 0
         UO.IgnoreReset()
         return UO.ContainerOf(horse)
      next
   next
   UO.IgnoreReset()
   return 0
end sub


Top
   
 Post subject:
PostPosted: 2006-06-23 00:33:48 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
ERROR, Variable undefined A


Top
   
 Post subject:
PostPosted: 2006-06-23 00:41:59 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
paulinho4life wrote:
ERROR, Variable undefined A

Code:
sub F_Target()
   VAR a, i
  UO.Ignore("self")
   for a = 0 to a > 1
      for i = 16033 to i > 16059
         repeat
            var horse = UO.GetSerial("~0x019" + str(a) + "." + str(UO.Int2Hex(i)))
         until horse <> 0
         UO.IgnoreReset()
         return UO.ContainerOf(horse)
      next
   next
   UO.IgnoreReset()
   return 0
end sub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-06-23 02:41:43 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
it still doesnt work... thats a example of a script like that


Code:
sub NextTarget()
var Finding=1
   uo.ignorereset()
   uo.ignore('self')
   while Finding
      wait(100)
      uo.findtype('0x0190', -1, 'ground')
      if uo.FindCount() then
         if UO.GetNotoriety('finditem') == 6 then
            Finding=0
            uo.cast("Magic Arrow", 'finditem')
            uo.attack('finditem')
         else
            uo.ignore('finditem')
         end if
      else
         uo.findtype('0x0191', -1, 'ground')
         if uo.FindCount() then
            if UO.GetNotoriety('finditem') == 6 then
               Finding=0
               uo.cast("Magic Arrow", 'finditem')
               uo.attack('finditem')
            else
               uo.ignore('finditem')
            end if
         else
            Finding=0
         end if
      end if
   wend
   uo.ignorereset()
end sub


but i want HAS = 1.
i would appreciate your help again.

sincerely
Paulinho.


Top
   
 Post subject:
PostPosted: 2006-06-24 19:21:17 
Offline

Joined: 2004-07-20 00:14:10
Posts: 45
up..


Top
   
 Post subject:
PostPosted: 2006-06-25 16:14:02 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
paulinho4life wrote:
up..


ask Experts

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 12 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