Yoko

All sides of Injection
It is currently 2025-11-15 01:35:24

All times are UTC+02:00




Post new topic  Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Auto Attack script
PostPosted: 2007-04-16 12:27:01 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
I would like to auto cast Im Por Ylem to any player that appears in my screen when y run the script
thanks


Top
   
 Post subject:
PostPosted: 2007-04-16 14:44:07 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
There are two types of people in UO without races. That's woman's and man's type us usually.

Use them in array and if it'd be found on the sreen( change by set finddistance ), then get this id by uo.GetSerial('finditem') and cast what d'u want.


Top
   
 Post subject:
PostPosted: 2007-04-20 12:17:39 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
uo.say("Hey BltCh! get out my way!")
var i
DIM t[2]
t[0] = "0x0191"
t[1] = "0x0190"
uo.ignore( "self" )
UO.Set("finddistance","20")
for i = 0 to 1
uo.findtype( t[i] , -1 , "ground" )
if uo.FindCount() then
uo.attack( "finditem" )
uo.cast("Weaken","finditem")
wait(3500)
endif
next
wait(500)
End Sub

ok ok, but now imagine i would like to get everybodys serial, any player on screen. How to do that? Thanks :D


Top
   
 Post subject:
PostPosted: 2007-04-20 13:50:07 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
Code:
sub Spell()
uo.say("Hey BltCh! get out my way!")
var i, m, id
DIM t[2]
t[0] = "0x0191"
t[1] = "0x0190"
uo.ignore( "self" )
UO.Set("finddistance","20")
for i = 0 to 1
  uo.findtype( t[i] , -1 , "ground" )
  if uo.FindCount() then
    id = uo.getserial('finditem')
    uo.print('Aim ID '+id)
    uo.attack( "finditem" )
    uo.deletejournal('The spell fizzles.')
    m = uo.mana
    uo.cast("Weaken","finditem")
    repeat
      wait(100)
    until uo.injournal('The spell fizzles.') or m > uo.mana
  endif
next
End Sub


Top
   
 Post subject:
PostPosted: 2007-04-20 13:55:05 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
but that takes only one player serial. i Want everybodys serial
thanks anyway ;)


Top
   
 Post subject:
PostPosted: 2007-04-20 14:53:52 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
I don't understand you. Do you want to get yourself ID and aim ID or all object around you?


Top
   
 Post subject:
PostPosted: 2007-04-20 20:06:41 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
k let me explain.
I just want a macro that gets everybodys serial in my screen.
If there are two people, get both serials and associate them with two label.

person one serial = a
person two serial = b

understand now? :P


Top
   
 Post subject:
PostPosted: 2007-04-21 01:38:57 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
motxu wrote:
k let me explain.
I just want a macro that gets everybodys serial in my screen.
If there are two people, get both serials and associate them with two label.

person one serial = a
person two serial = b

understand now? :P


what to do with those serials ? write somewher down?

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


Top
   
 Post subject:
PostPosted: 2007-04-21 12:00:17 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
imagine im getting ganked by two people.
i run the script and got both serials so i can cast Magic Reflection to both players and make them fizzle their spells. (spells in my shard fizzle if a spell hits u while casting)

understand now? :P


Top
   
 Post subject:
PostPosted: 2007-04-21 13:40:00 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
motxu wrote:
imagine im getting ganked by two people.
i run the script and got both serials so i can cast Magic Reflection to both players and make them fizzle their spells. (spells in my shard fizzle if a spell hits u while casting)

understand now? :P


use your hands for that - it's more faster and there will be no problems with scripts

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


Top
   
 Post subject:
PostPosted: 2007-04-21 14:01:11 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
well , ill use my hands ^^

thanks anyway man, you've been solving nearly all my problems :P
thanks again ;)


Top
   
 Post subject:
PostPosted: 2007-04-21 14:25:09 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
motxu wrote:
well , ill use my hands ^^

thanks anyway man, you've been solving nearly all my problems :P
thanks again ;)

you're welcome :wink:

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


Top
   
 Post subject:
PostPosted: 2007-04-22 22:47:36 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
Code:
UO.Set("finddistance","20") 

14 tiles - max


Top
   
 Post subject:
PostPosted: 2007-04-23 12:14:20 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
and how to find an item with findistance,1. If not found try to find the item in findistance,2. If not found try with findistance,3 etc? ?
thanks ^^


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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