Hi i have this old TFS 0.3.6 lua script that i need get working on downgraded 8.60 TFS 1.5, i would also appreciate if someone could push me to right direction to learn this by my self.
Thank you!
Lua:
local tp_pos = thingPos(item.uid)
doTeleportThing(cid, {x = tp_pos.x, y = 1039, z = 8})
doGiveGemsBackTwo(cid)
doSendMagicEffect({x = tp_pos.x, y = 1039, z = 8}, CONST_ME_TELEPORT)
if(fromPosition.x ~= 0) then
doSendDistanceShoot(fromPosition, {x = tp_pos.x, y = 1039, z = 8}, CONST_ANI_ENERGY)
end
elseif(aid == 2004) then
doCreatureSetStorage(cid, 15180, 0)
doCreatureAddMana(cid, getCreatureStorage(cid, "trainersMana", true) - getCreatureMana(cid))
creature:teleportTo(destination)
Thank you!