Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32017

Find item with action id on map

$
0
0
Somewhere, randomly on a map my script spawned an item with random actionid between 1000 and 2000
Do we have in TFS 1.2 function what will let me find that item's coordinates with lua script?

Example, player click on Treasure Map and description appears: "Treasure coordinates are: x, y, z"

example logic:
Code:
function onUse...
local item = searchMapForItemWithActionId(1000)
local itemPos = item:getPosition()
...

Viewing all articles
Browse latest Browse all 32017

Trending Articles