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

Targeting Relative location?
http://forum.yoko.com.ua/viewtopic.php?f=3&t=10198
Page 1 of 1

Author:  Greyhound [ 2006-11-28 17:22:08 ]
Post subject:  Targeting Relative location?

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

Author:  Nmy [ 2006-11-28 21:52:44 ]
Post subject: 

Code:
uo.waittargettile("400",str(uo.getx("self")-5),str(uo.gety("self")+1),str(uo.getz("self"))) 

Code:
uo.waittargettile("400",str(uo.getx("self")+7),str(uo.gety("self")+3),str(uo.getz("self"))) 

Code:
uo.waittargettile("400",str(uo.getx("self")-2),str(uo.gety("self")-2),str(uo.getz("self"))) 

Code:
waittargetground   
waittargetlast   
waittargetobject   
waittargetobjecttype   
waittargetself   
waittargettile   
waittargettype   


for example... i guess this is what you are looking for?

Author:  Destruction [ 2006-11-28 22:56:01 ]
Post subject: 

In function getX, getY and getZ the attribute "self" is default.

E.g.:
Code:
uo.waittargettile("400",str(uo.getX()-2),str(uo.getY()-2),str(uo.getZ()));


Sorry for my clumsy English.

Author:  Nmy [ 2006-11-29 00:29:28 ]
Post subject: 

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

з.ы. то что ты написал я уже написал в моём посте, кто теперь флудер? :)

Author:  Destruction [ 2006-11-29 00:50:04 ]
Post subject: 

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

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

Я написал своё сообщенеи для того,чтобы он не задумывался после твоего примера над тем, что у функций по дефолту берётся.

Author:  Savage [ 2006-11-29 01:55:27 ]
Post subject: 

Чел хочет ставить свои пойзон филды на чужие, уже установленные?

Author:  omi4 [ 2006-11-29 02:16:24 ]
Post subject: 

Он про прекаст говорит..
А это только через
uo.target(target_key,lasttile/object/ground,[ttype,type,X,Y,Z])

Author:  Greyhound [ 2006-12-02 19:18:12 ]
Post subject: 

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

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