Yoko
http://forum.yoko.com.ua/

is there a way to script a Targetnext that doesnt target npc
http://forum.yoko.com.ua/viewtopic.php?f=20&t=8036
Page 1 of 1

Author:  paulinho4life [ 2006-06-21 22:55:51 ]
Post subject:  is there a way to script a Targetnext that doesnt target npc

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 ?

Author:  omi4 [ 2006-06-21 23:44:03 ]
Post subject: 

She is a horse...
:(

Author:  paulinho4life [ 2006-06-22 00:18:07 ]
Post subject: 

so, there is a way to target only people in a horse?
has=1 ?


how can i do it.

Author:  omi4 [ 2006-06-22 01:28:02 ]
Post subject: 

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

Author:  paulinho4life [ 2006-06-23 00:33:48 ]
Post subject: 

ERROR, Variable undefined A

Author:  Nmy [ 2006-06-23 00:41:59 ]
Post subject: 

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

Author:  paulinho4life [ 2006-06-23 02:41:43 ]
Post subject: 

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.

Author:  paulinho4life [ 2006-06-24 19:21:17 ]
Post subject: 

up..

Author:  Nmy [ 2006-06-25 16:14:02 ]
Post subject: 

paulinho4life wrote:
up..


ask Experts

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/