• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Lua Script help

Karma337

New Member
Joined
Aug 16, 2020
Messages
2
Reaction score
0
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.

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!
 
Top