I believe the suggestion @StaR posted on your thread solves your problem?
Printable View
I believe the suggestion @StaR posted on your thread solves your problem?
hi, i would like a script that uses a corpse on the ground into a specific tile, if it's possible. thanks beforehand
iluvponeys
gold coin converter?
This?
Iluvponeys
Hey,
Just wondering if its possible to use a rune directly infront or behind of player position.
For example using rune directly behind where player is facing, if player = P, rune = R and player facing = F:
XFX
XPX
XRX
Thanks in advance :-)
local DIRS = DIRS or {
n = Point:new( 0, -1),
e = Point:new( 1, 0),
s = Point:new( 0, 1),
w = Point:new(-1, 0)
}
local p = findcreature('Cachero')
-- In front
useitemon('magic wall rune', 0, ground(p.posx + DIRS[p.dir].x, p.posy + DIRS[p.dir].y, p.posz))
-- Behind
useitemon('magic wall rune', 0, ground(p.posx - DIRS[p.dir].x, p.posy - DIRS[p.dir].y, p.posz))