• 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. B

    TFS 0.X Exauth from Sudden Death interferes in heal / potions

    Good night Tibians, I'm creating a server and my problem is this, every time my sorcerer / druid uses sudden death, he can not heal or use potion, making him die even for weak monsters, I would like a script of sd that does not interfere with its healing / pot. Tfs 0.4 config.lua...
  2. B

    Linux Can't start server

    I don't know what to do. : / Command screen don't work.
  3. B

    TFS 0.X Send message to channel

    (TFS 0.4) How use this function? doPlayerSendChannelMessage I tryed this way in globalevents: function onThink(cid, interval, lastExecution) for _, pid in pairs(getPlayersOnline()) do doPlayerSendChannelMessage(pid, "", TALKTYPE_CHANNEL_W, "test", 8) end return true end DEBUG :/ Why it...
  4. B

    C++ onDeath all monsters

    Hi! I'm using tfs 0.4 and I have added: Feature - [CreatureEvent] Regestire all monster and players in creatureevent.xml I have a problem. I'm using this script but it didn't work.. :( <event type="death" name="monsterDeath" registerTo ="monster" event="script" value="script.lua"/> function...
  5. B

    C++ Npc trade

    Hi everyone! I'm using tfs 0.4 I need a help. How to make the function also work with npc? int32_t LuaInterface::luaDoStartTrade(lua_State* L) { ScriptEnviroment* env = getEnv(); Item* item = env->getItemByUID(popNumber(L)); if(!item) {...
  6. B

    C++ Protection zone = no conditions

    I'm using tfs 0.4 What to do in order the players do not lose conditions after entering dp?
  7. B

    C++ Channel window

    What code is responsible for this panel?
  8. B

    Lua Random numbers

    I would like a loop in which random numbers from 1 to 10 are added so their sum is 100. I have no idea how to take it. Can anyone help?
  9. B

    Lua First Ittems

    I'm using tfs 0.4. I added to my server this mod [MOD] First Items But when i login to server i have a problem: Items lie beneath me. I found a solution. This happens after adding this Feature - Perfect Autostacking Items 100,0% Stack All for 0.4 and 0.3.6pl1 What to do to work both?
  10. B

    C++ Cast Description

    I'm using tfs 0.4 How can i change this line to not see the nickname? sendCreatureSay(player, SPEAK_PRIVATE, (player->getCastDescription()) ); I mean:
  11. B

    C++ New item attributes

    Hi! I'm using tfs 0.4 and when i want add: Feature - Durability System Feature - Critical Chance Hit I have a problem.. Compiling is easy but when i start a server and log in my ots is bugged. I can't do anything. What is a problem? Screen:
  12. B

    Lua If players online X

    Why it didn't work? How to do it? :( function onThink(interval, lastExecution) for i, pid in pairs(getPlayersOnline()) do if isPlayer(pid) then ppls = i end end for k, v in pairs(tabela) do if k == ppls then SCRIPT else...
  13. B

    Lua TFS 0.4 level beetwen

    I have script: local cfg = {[1] = {level = 1, level2 = 100}} function onSay(cid, words, param, channel) for v, k in pairs(cfg) do if getPlayerLevel(cid) >= k.level and getPlayerLevel(cid) <= k.level2 then SCRIPT end end end Is it possible to do something different than this? I tried: local...
  14. B

    Lua TFS 0.4 Players level

    How to get players level with storage = 1234. How to add these levels to yourself? function onSay(cid, words, param, channel) for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, 1234) == -1 then doPlayerPopupFYI(cid, getPlayerLevel(pid)) end end end
  15. B

    C++ Crates - Everyone sees different

    Is it possible for one person to see chests with id 1234 and the other 4321? If so can you guide how to do it?
  16. B

    Lua Countdown timer tfs 0.4

    for x = 0.1, 10 do local n = 10 - x addEvent(doSendAnimatedText, x * 1000, toPosition, n > 0 and tostring(n), TEXTCOLOR_WHITE) end Why does it subtract 1 and not 0.1?
  17. B

    Lua Cassino System

    I would like to create such a system. Can anyone tell me how to get started? TFS 0.4
  18. B

    Lua [tfs 0.4] Copy item

    How to copy item from position to position? I tried this way, but it does not work. local pos = {x = 1083, y = 1014, z = 7, stackpos=255} doCreateItem((getThingfromPos(pos).uid), 1, {x = 1084, y = 1014, z = 7}) Or: doCreateItem(getTileItemById(pos, (getThingfromPos(pos).uid)), 1, {x = 1084, y =...
  19. B

    Display an array element

    How to do to display an array element? function onUse(cid, item, frompos, item2, topos) local items = {["reward"] = {item = 1111, pos = {x=1000, y=1000, z=7}} doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "".. items[1] ..".") end
  20. B

    Creating Account

    Where can I find information on creating accounts? The point is to change the first letter to large. How to change it?
Back
Top