Page 1 of 1
Targeting Relative location?
Posted: 2006-11-28 17:22:08
by Greyhound
UOAssist and razor both have the target relative location, so it targets the tile on ground based on your currently location, is this possible in Injection?
I've tried alot with Injection with the ,target with tiles and stuff but not much really seemed to work, and all it does it give lotsa bad packets... hehe
So my question, does anyone know how this would work?
For instance, I would want to cast a poison field spell 2 tiles south of me, precasted...
So i'm running with my spell precasted and I would want to use it, or teleport precasted and cast like a tile north of me...
Thanks in advance
Greyhound
Posted: 2006-11-28 21:52:44
by Nmy
Code: Select all
uo.waittargettile("400",str(uo.getx("self")-5),str(uo.gety("self")+1),str(uo.getz("self")))
Code: Select all
uo.waittargettile("400",str(uo.getx("self")+7),str(uo.gety("self")+3),str(uo.getz("self")))
Code: Select all
uo.waittargettile("400",str(uo.getx("self")-2),str(uo.gety("self")-2),str(uo.getz("self")))
Code: Select all
waittargetground
waittargetlast
waittargetobject
waittargetobjecttype
waittargetself
waittargettile
waittargettype
for example... i guess this is what you are looking for?
Posted: 2006-11-28 22:56:01
by Destruction
In function getX, getY and getZ the attribute "self" is default.
E.g.:
Code: Select all
uo.waittargettile("400",str(uo.getX()-2),str(uo.getY()-2),str(uo.getZ()));
Sorry for my clumsy English.
Posted: 2006-11-29 00:29:28
by Nmy
я оставил "self" чтоб человек мог понять, врятли он сможет это прочитать на русском в хелпе
з.ы. то что ты написал я уже написал в моём посте, кто теперь флудер?

Posted: 2006-11-29 00:50:04
by Destruction
NMY wrote:я оставил "self" чтоб человек мог понять, врятли он сможет это прочитать на русском в хелпе

А сейчас ты чиста нафлудил.
Я написал своё сообщенеи для того,чтобы он не задумывался после твоего примера над тем, что у функций по дефолту берётся.
Posted: 2006-11-29 01:55:27
by Savage
Чел хочет ставить свои пойзон филды на чужие, уже установленные?
Posted: 2006-11-29 02:16:24
by omi4
Он про прекаст говорит..
А это только через
uo.target(target_key,lasttile/object/ground,[ttype,type,X,Y,Z])
Posted: 2006-12-02 19:18:12
by Greyhound
No actually I do not mean waittargettile, i've worked with that before the problem with that is, it instantly targets the tile after a cast, I really need to target a specific tile ( relative in UOAssist and Razor ) after I get a target up...