• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Bogart

    Lua TFS 0.4 - Graduation system, storage for 5 best players

    local storage = 1030 local high_value = 887 local top_n = 5 function onStartup() local score = 1 local highscore = db.storeQuery("SELECT player_id FROM `player_storage` WHERE player_storage.key = '" .. storage .. "' and value > 0 ORDER BY value DESC LIMIT ".. top_n .. ";")...
  2. Bogart

    C++ How to open game.cpp

    Those aren't your sources, those are libraries lol. There should be a folder that contains the sources, or you wont be able to compile.
  3. Bogart

    Lua Help: Don't allow to carry more than certain amount of an item

    It wont work if there's a bp inside that bp with that item, thats why the loop.
  4. Bogart

    Lua Help: Don't allow to carry more than certain amount of an item

    function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) local itemid = 2160 local maxcount = 50 if toPosition.x == 65535 then if item:isContainer() then count = searchInContainer(item, itemid) end if...
  5. Bogart

    Need help with Script

    Are we going to fight to see who helps faster?
  6. Bogart

    Need help with Script

    player:getStorageValue(21696) > (os.time() + 60 )
  7. Bogart

    Need help with Script

    player:getStorageValue(21696) > (os.time() + 24* 60 * 60 )
  8. Bogart

    Convert tfs 0.4 script to 1.2

    Nvm not 3, look in your database and check which id is the rank you wish and use it in the third parameter
  9. Bogart

    Convert tfs 0.4 script to 1.2

    function onStepIn(cid, item, pos) if item.uniqueid == 8000 then doPlayerSetGuildId(cid, 3, 1) end end function doPlayerSetGuildId(cid, guildId, rank) local playerId = getPlayerGUID(cid) db.query("INSERT INTO `guild_membership` (`player_id`, `guild_id`, `rank_id`) VALUES...
  10. Bogart

    Lua Item for random teleport

    No problem, feel free to ask about any doubts. Night!
  11. Bogart

    Lua Item for random teleport

    Which item are you using for this script?
  12. Bogart

    Lua Raid Daays

    Yes, it'll execute when it's the 20th each month. To your question: It's in milliseconds, 5 hours = 5*60*60*1000 = 18000000. It's H * M * S * MS, 3 hours = 3 * 60 * 60 * 1000 = 10800000.
  13. Bogart

    Lua Raid Daays

    if tonumber(os.date("%d")) == 20 then
  14. Bogart

    Lua Item for random teleport

    Use an item that isn't usable on other items.
  15. Bogart

    Convert tfs 0.4 script to 1.2

    Here's a setGuild function: function doPlayerSetGuildId(cid, guildId, rank) local playerId = getPlayerGUID(cid) db.query("INSERT INTO `guild_membership` (`player_id`, `guild_id`, `rank_id`) VALUES ('" .. playerId .. "', '" .. guildId .. "', '" .. rank .."');") end Use it like...
  16. Bogart

    Lua Item for random teleport

    local random_voices = { "xxxx", "yyyy", "zzzz", "abc123" }
  17. Bogart

    Lua Item for random teleport

    function back(cid) if Player(cid) then doTeleportThing(cid, zcx) end end Update that function and no, it should not lag at all since it's just calling a function.
  18. Bogart

    Lua Item for random teleport

    Which TFS are you using?
  19. Bogart

    Lua Item for random teleport

    change cid to cid.uid in addEvent.
  20. Bogart

    Lua Item for random teleport

    Line 26: addEvent(back, timeback * 1000, cid.uid
Back
Top