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

    Lua Error scripts

    Anything other than CONDITION_HEX? you can. Modify this if you wish to change it local condition = Condition(CONDITION_HEX)
  2. Snavy

    Lua Error scripts

    It's gonna be more than just adding an enum. https://otland.net/threads/lua-custom-conditions-or-another-way.272682/
  3. Snavy

    Lua Error scripts

    looks like CONDITION_HEX doesn't exist. local condition = Condition(CONDITION_HEX) https://github.com/opentibiabr/otservbr-global/blob/f772d06808939ab0ddb98815b49e495e24cfb435/src/enums.h#L429
  4. Snavy

    Lua Monster Error Loot

    either use name and set item name or use id and set itemid Item name Item id correct name seems to be tentacle piece (id 12622)
  5. Snavy

    Lua Creaturescripts transform revscriptsys

    What do you mean by this? are you using otbr?
  6. Snavy

    Lua Creaturescripts transform revscriptsys

    local skulls = {SKULL_WHITE, SKULL_YELLOW, SKULL_RED, SKULL_BLACK} function addPlayerFrag(player, value) db.executeQuery("UPDATE `players` SET `frags_all` = `frags_all` + " .. value .. " WHERE `id` = " .. player:getGuid() .. ";") return true end local topFrags =...
  7. Snavy

    RevScripts No walk through

    This? local moveEvent = MoveEvent('blockWalk') function moveEvent.onStepIn(player, item, position, fromPosition) player:teleportTo(fromPosition) return true end -- moveEvent:id(ITEM_ID) -- moveEvent:aid(ACTION_ID) moveEvent:register()
  8. Snavy

    TFS 1.X+ [TFS 1.3] How to Force Monsters Only Focus Summons Always the Player Have Summons?

    🤔 replace if hasEventCallback(EVENT_CALLBACK_ONTARGETCOMBAT) then return EventCallback(EVENT_CALLBACK_ONTARGETCOMBAT, self, target) else return RETURNVALUE_NOERROR end with return RETURNVALUE_NOERROR
  9. Snavy

    TFS 1.X+ Attackspeed as item attribute

    This means that getAttackSpeed is not found. attempt to call method 'getAttackSpeed' (a nil value) Have you added the luascript part?
  10. Snavy

    Lua SD bug

    what do you mean?
  11. Snavy

    TFS 1.X+ [TFS 1.3] How to Force Monsters Only Focus Summons Always the Player Have Summons?

    I tested your code and noticed it refused to follow the summon. The following worked for me. function Creature:onTargetCombat(target) if target:isPlayer() and self:isMonster() and #target:getSummons() >= 1 then self:removeTarget(target)...
  12. Snavy

    TFS 1.X+ 1.3 how to access tiles in combat area

    Looking for this? function onTargetTile(creature, position) -- do something with current combat tile end combat:setCallback(CALLBACK_PARAM_TARGETTILE, "onTargetTile")
  13. Snavy

    TFS 1.X+ gdb error - server crashing

    try # remove old core file rm ./core # start tfs & let it crash ulimit -c unlimited && ./tfs # view files ls -alt # if there is a core file, execute : gdb tfs core
  14. Snavy

    Lua Snavy & Levi - Free Scripting Service - TFS 1.3

    Haven't tested, try it. If you find bugs/errors create a thread on the support board and explain what the problem is. --| USAGE: --| !huntbs player name local config = { staminaMinutes = 100, storage = 414515, coolDown = 1 * 60 * 60 -- 1 hour } local ta =...
  15. Snavy

    Undefined variable $newsTicker

    Set the following line to false if you wish to disable code-verification. $config['site']['verify_code'] = true; Otherwise try the following: https://otland.net/threads/gesior-help-image-verification-is-missing.236051/post-2279099
  16. Snavy

    Lua Block more hits with a shield

    The role of 2 here is to set a maximum value limit. std::min picks the minimum value. std::min<uint32_t>(blockCount + 1, 2); There are 2 parameters passed into std::min function. First one is blockCount + 1 Second one is 2 When the first one is greater than the second value, for example...
  17. Snavy

    TFS 1.X+ gdb error - server crashing

    not in gdb, in your ot directory to see more details of the files. Example of last modified date/time
  18. Snavy

    Can't use Pick.. TFS 1.3

    You currently have: pickHole = {105, 142, 152}, -- hidden mud hole but it's looking for: pickHoles so simply rename pickHole to pickHoles
  19. Snavy

    Can't use Pick.. TFS 1.3

    (table expected, got nil) first parameter passed is this: actionIds.pickHoles pickHoles is missing from data/lib/core/actionids.lua
  20. Snavy

    Can't use Pick.. TFS 1.3

    data/global.lua:73: bad argument #1 to 'pairs' (table expected, got nil) Assuming line 73 is this: if table.contains(groundIds, ground.itemid) and table.contains(actionIds.pickHoles, ground.actionid) then Either groundIds is nil or actionIds.pickHoles is nil. to figure out which one, simply...
Back
Top