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

TFS 0.X HELP PLEASE [LUA] go over the tile and get items

Enderlop

Banned User
Joined
Jan 10, 2024
Messages
93
Reaction score
16
Lua:
function onUse(cid, item, frompos, item2, topos)
    if item.uid == 1623 then
        queststatus = getPlayerStorageValue(cid,1623)
        if queststatus == -1 then
            if getPlayerLevel(cid) >= 717217 then
                doPlayerSendTextMessage(cid,25,"Congratulations! You've won a prize.")
                doPlayerAddItem(cid,2159,100000)
                doPlayerAddItem(cid,10518,100)
                setPlayerStorageValue(cid,1623,1)
            else
                doPlayerSendTextMessage(cid,22,"You need to be level 717217 to use this.")
            end
        else
            doPlayerSendTextMessage(cid,22,"You've already claimed the bonus.")
        end
    else
        return 0
    end
    return 1
end
 
Last edited:
you used gpt?.. its missing some things..
TILE_UNIQUE_ID and "throne_items_received" need to be like: local = ID
local TILE_UNIQUE_ID = id
local STORAGEforstepgift = storageplayer

"throne_items_received", change for STORAGEforstepgift
id, for id in step
STORAGEforstepgift, for an empty storage to this
 
DEBUG USE CHEST

XML:
function onUse(cid, item, frompos, item2, topos)
    if item.uid == 1623 then
        queststatus = getPlayerStorageValue(cid,1623)
        if queststatus == -1 then
            if getPlayerLevel(cid) >= 717217 then
                doPlayerSendTextMessage(cid,25,"Congratulations! You've won a prize.")
                doPlayerAddItem(cid,2159,100000)
                doPlayerAddItem(cid,10518,100)
                setPlayerStorageValue(cid,1623,1)
            else
                doPlayerSendTextMessage(cid,22,"You need to be level 717217 to use this.")
            end
        else
            doPlayerSendTextMessage(cid,22,"You've already claimed the bonus.")
        end
    else
        return 0
    end
    return 1
end
 
Last edited:

Similar threads

Back
Top