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

Search results

  1. T

    TFS 1.X+ onKill

    function onKill(creature, target) local player = Player(creature) local frags = player:getStorageValue(356086) if target:isPlayer() then player:setStorageValue(356086, player:getStorageValue(356086) + 1) if(frags >= 5) then print(test)...
  2. T

    TFS 1.X+ player kill exp

    Hi, I'm trying to put in this code some more unsuccessful changes. I would like to put it for the exp to be divided among everyone and not that everyone gets the same exp and the player who had a very big level difference does not receive exp function onKill(cid, target, lastHit) local...
  3. T

    TFS 1.X+ Npc remover

    local function removeNpc(name) local guy = Npc(name) if guy and guy:isNpc() then guy:remove() end end local npctest = Game.createNpc("test", Position(32464, 32482, 7)) Game.createNpc("test", Position(32464, 32482, 7)) Game.createNpc("test", Position(32464, 32482, 7))...
  4. T

    Lua tfs 1x+ monster vs monster

    I'm trying to create the same system as the monster attacking monster any idea
  5. T

    Lua tfs 1x damage by time

    I'm trying to create something for a boss that the longer the player stays in his room the more damage he will suffer. and when the player leaves the room the damage returns to the beginning of weak damage.
  6. T

    TFS 1.X+ Spells

    local animationDelay = 600 local combat = {} local area = { { {0, 1, 0}, {1, 2, 1}, {0, 1, 0} }, { {1, 0, 1}, {0, 2, 0}, {1, 0, 1} }, { {0, 1, 1, 1, 0}, {1, 0, 0, 0, 1}, {1, 0, 2, 0, 1}, {1, 0...
  7. T

    Lua [tfs 1x+] reflect

    when the player attacks monster X with any type of attack, the damage received by that monster will go to monster Y
  8. T

    mondal

    local stats = { [1] = {name = 'test 1'}, [2] = {name = 'test 2'} } function onSay(player, words, param) local window = ModalWindow { title = 'welcome', message = 'test' } for i = 1, #stats do window:addChoice(stats.name) end window:addButton('Okey', (...
  9. T

    C++ decay

    I created a pillar that uses it to rotate I'm using the decay function is working the problem is that sometimes the pillar starts to rotate very fast as if the decay had a shorter time local transformTo = { [36309] = 36310, [36310] = 36311, [36311] = 36312, [36312] = 36309 }...
  10. T

    TFS 1.X+ error in spells and check onHealthChange

    function checkAreaForItem(pos, range, item) local from = {x=pos.x-range, y=pos.y-range, z=pos.z} local to = {x=pos.x+range, y=pos.y+range, z=pos.z} for z = from.z, to.z do for y = from.y, to.y do for x = from.x, to.x do local t = Tile(Position(x...
  11. T

    addEvent tfs 1x

    I'm managing to create the npc Game.create pc () but I would like that after some time it disappears
  12. T

    Tfs 1x Guild bonus online

    function onLogin(cid) local g = getPlayerGuildId(cid) if g ~= 0 then local n = 1 for _, pid in ipairs(getPlayersOnline()) do if getPlayerGuildId(pid) == g then n = n + 1 if n == 5 then doPlayerSetRate(pid...
  13. T

    C++ hasMarketAttributes

    bool Item::hasMarketAttributes() const { if (attributes == nullptr) { return true; } for (const auto& attr : attributes->getList()) { if (attr.type == ITEM_ATTRIBUTE_CHARGES) { uint16_t charges = static_cast<uint16_t>(attr.value.integer); if...
  14. T

    [tfs 1.2] Add skull to monsters

    <flag skull="black"/> [Warning - Monsters::loadMonster] Unknown flag attribute: skull. <monster name="Amazon" nameDescription="an amazon" race="blood" experience="60" speed="180" manacost="390" skull="SKULL_YELLOW"> I tested both methods to no avail edit I noticed now that the skull is...
  15. T

    outfit store

    function GameStore.processOutfitPurchase(player, offerSexIdTable, addon) local looktype local _addon = addon and addon or 0 if player:getSex() == PLAYERSEX_MALE then looktype = offerSexIdTable.male elseif player:getSex() == PLAYERSEX_FEMALE then looktype = offerSexIdTable.female...
  16. T

    TFS 1.X+ push player from opposite side of stackpos

    void Game::playerMoveThing(uint32_t playerId, const Position& fromPos, uint16_t spriteId, uint8_t fromStackPos, const Position& toPos, uint8_t count) { Player* player = getPlayerByID(playerId); if (!player) { return; } uint8_t fromIndex = 0...
  17. T

    player:getItemById tfs 1x

    local nameitem= player:getItemById(item_id , true) local resultId = db.storeQuery('SELECT `itemname` FROM `teste_list` WHERE `id` = ' .. player:getAccountId() .. '') local item_id = result.getNumber(resultId, 'itemname') print(itemname) print(nameitem) well I'm trying to pull the...
  18. T

    db.Query SELECT

    local backpack = db.storeQuery(string.format('SELECT backpack FROM loot_list WHERE id = .. player:getAccountId() .. "';") I'm trying to pull the id from the backpack that is in the database but I'm not getting the
  19. T

    TFS 1.X+ containerItem

    if AutoLootList.players[playerId] ~= nil then local lootList = AutoLootList.players[playerId].lootList if lootList ~= nil then if corpse:getType():isCorpse() then for a = corpse:getSize() - 1, 0, -1 do local containerItem...
  20. T

    check room

    local function checkPlayers(centerroom, rangeX, rangeY) local spectators = Game.getSpectators(centerroom, false, false, rangeX, rangeX, rangeY, rangeY) for _, spec in ipairs(spectators) do if spec:isPlayer() then return true end end return false end...
Back
Top