Page 1 of 1

[Orion] Script to target the square I am standing on

Posted: Thu Oct 10, 2024 4:40 pm
by Alibaster
I'm looking for a basic script to target the square I am standing on. I want to be able to cast a spell and target the ground beneath me every time. Anyone have something like this they would be willing to share?

Re: [Orion] Script to target the square I am standing on

Posted: Thu Oct 10, 2024 4:55 pm
by arrow
cast "Poison Field"
waitfortarget 15000
targettileoffset 0 0 -0

Re: [Orion] Script to target the square I am standing on

Posted: Sun Oct 13, 2024 8:25 am
by jackpod
Hello, I randomly stumbled on this post as the server went down. lol

The references on the Orion client are quite solid, below codes are from the manual.

You should be able to get the current character position with

Code: Select all

int obj.X();
Result: X object coordinates in the world.

int obj.Y();
Result: Y object coordinates in the world.

int obj.Z();
Result: Z object coordinates in the world.
And I think you can refer to below (from the manual).

Code: Select all

Call variants:
Orion.TargetTile('tileFlags');
Orion.TargetTile('tileFlags', x, y, z);

Arguments: 
tileFlags - string
(Example: 'lasttile')
x - integer - X coordinate in the world
y - integer - Y coordinate in the world
z - integer - Z coordinate in the world

Result: does not return a value.