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

If you make a Client-side script you can publish it here for other players to use
Post Reply
Alibaster
Legendary Scribe
Posts: 270
Joined: Wed Nov 16, 2016 11:02 am

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

Post 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?
Alibaster in game!!
User avatar
arrow
Legendary Scribe
Posts: 386
Joined: Sun Mar 06, 2011 1:40 pm

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

Post by arrow »

cast "Poison Field"
waitfortarget 15000
targettileoffset 0 0 -0
Always remember to pillage before you burn!-----------Unknown
jackpod
Expert Scribe
Posts: 38
Joined: Mon Dec 22, 2014 10:41 pm

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

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