Targeting Relative location?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Greyhound
Posts: 25
Joined: 2004-09-27 02:08:26

Targeting Relative location?

Post 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
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post 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?
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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.
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

я оставил "self" чтоб человек мог понять, врятли он сможет это прочитать на русском в хелпе :roll:

з.ы. то что ты написал я уже написал в моём посте, кто теперь флудер? :)
Last edited by Nmy on 2006-11-29 01:14:12, edited 1 time in total.
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

NMY wrote:я оставил "self" чтоб человек мог понять, врятли он сможет это прочитать на русском в хелпе :roll:

А сейчас ты чиста нафлудил.

Я написал своё сообщенеи для того,чтобы он не задумывался после твоего примера над тем, что у функций по дефолту берётся.
Savage
Expert!
Posts: 1205
Joined: 2004-04-04 11:13:54
Location: Балаково, Саратовская обл.
Contact:

Post by Savage »

Чел хочет ставить свои пойзон филды на чужие, уже установленные?
omi4
Posts: 457
Joined: 2005-07-10 21:53:05

Post by omi4 »

Он про прекаст говорит..
А это только через
uo.target(target_key,lasttile/object/ground,[ttype,type,X,Y,Z])
Greyhound
Posts: 25
Joined: 2004-09-27 02:08:26

Post 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...
Post Reply