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:
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()
...