Page 1 of 1
Auto Attack script
Posted: 2007-04-16 12:27:01
by motxu
I would like to auto cast Im Por Ylem to any player that appears in my screen when y run the script
thanks
Posted: 2007-04-16 14:44:07
by Scripts Writer
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.
Posted: 2007-04-20 12:17:39
by motxu
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

Posted: 2007-04-20 13:50:07
by Sanch
Code: Select all
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
Posted: 2007-04-20 13:55:05
by motxu
but that takes only one player serial. i Want everybodys serial
thanks anyway

Posted: 2007-04-20 14:53:52
by Sanch
I don't understand you. Do you want to get yourself ID and aim ID or all object around you?
Posted: 2007-04-20 20:06:41
by motxu
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?

Posted: 2007-04-21 01:38:57
by Nmy
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?

what to do with those serials ? write somewher down?
Posted: 2007-04-21 12:00:17
by motxu
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?

Posted: 2007-04-21 13:40:00
by Nmy
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?

use your hands for that - it's more faster and there will be no problems with scripts
Posted: 2007-04-21 14:01:11
by motxu
well , ill use my hands ^^
thanks anyway man, you've been solving nearly all my problems
thanks again

Posted: 2007-04-21 14:25:09
by Nmy
motxu wrote:well , ill use my hands ^^
thanks anyway man, you've been solving nearly all my problems

thanks again

you're welcome

Posted: 2007-04-22 22:47:36
by Mihail
Posted: 2007-04-23 12:14:20
by motxu
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 ^^