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

Help to make script less ugly

$
0
0
my intent to make this into official tfs, it is working, but I think it can be made better, so here I am to ask you guys for help once again into making it friendlier and in tfs standard!

Lua:
local machines = {
    [5469] = 5513,
    [5470] = 5514
}

local sugarOat = Action()

function sugarOat.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if target.itemid == 2694 then
        if toPosition.x ~= CONTAINER_POSITION then
            Game.createItem(13939, 1...
Help to make script less ugly

Viewing all articles
Browse latest Browse all 32008

Trending Articles