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

    Someone can help with c++ tfs 1.2

    Hello community In this npc code here bool Npc::getNextStep(Direction& dir, uint32_t& flags) { if (Creature::getNextStep(dir, flags)) { return true; } if (baseSpeed <= 0) { return false; } if (focusCreature != 0) { return false; } if...
  2. G

    C++ TFS 1.2 Someone can help me to modific this code?

    not work ;/ tfs not have that flags bool skipStacking = (flags & FLAG_IGNORE_CONTAINER) || (flags & FLAG_IGNORE_ARROW) || (flags & FLAG_IGNORE_BOTH_HANDS);
  3. G

    C++ TFS 1.2 Someone can help me to modific this code?

    How can I modify this code to work this way. if the item that will be added to the player has property (isStackable()) it will not autostack if the item is added to any container of the player, or arrow slot or in both hands, but if the item is added and there is no empyt slot in the player's...
  4. G

    Lua Need script when move item start decay

    Hello friends, Im using tfs 1.2 I'm looking for a script that when I move a specific one from a list, it starts to decay, an item that is on the floor of the map Can someone help me? Thanks in advance
  5. G

    OTClient OTCV8 weird thing related with opcode.

    Informations, im using tfs 1.2 MY SHOP OPCODE IS 201 in client script and server script. Hello friends, I'm having problems with the opcode, I'm using OTcv8, I have the shop system installed in creaturescripts. <event type="extendedopcode" name="Shop" script="shop.lua" /> I also have the shop...
  6. G

    adapt server to old client 7.4

    I'm adapting the server to connect with client 7.4, im using tfs 1.2, well i already disable the RSA, XTEA, removed soul bytes and changed looktype bytes... I can now access the list of chars and connect, i can see the character logged in on server console... but i got a debug on client...
  7. G

    Lua Doors script tfs 1.2

    This is my script, i'm trying to replicate the cipsoft door system, but i'm not succeeding i'm having difficulty with the logic and how to apply it in the script door = openHorizontalDoors[item:getId()] if door then local doorCreature = Tile(toPosition):getTopCreature() if...
  8. G

    Lua help with my rope script

    What is the rope being used on to trigger the storage? yes I understood thank you very much, it worked
  9. G

    Lua help with my rope script

    I'm creating a quest that the player needs to use the rope and in less than 3 seconds can open a door
  10. G

    Lua help with my rope script

    thanks for replying but i need something i don't need to log in again to change I thought it could be used in the function something like os.time() something like this player:setStorageValue(500,1, os.time() + 3000) then if os.time() >
  11. G

    Lua help with my rope script

    My script local ropeSpots = { 386, 421 } local holeSpots = { 293, 294, 369, 370, 385, 394, 411, 412, 421, 432, 433, 435, 482, 5081, 483, 594, 595, 607, 609, 610, 615, 1066, 1067, 1080 } function onUse(player, item, fromPosition, target, toPosition) local tile =...
  12. G

    C++ tfs question

    Well monsters currently check for hasfollowpatch() far away from the blocked location, where can this be changed for monsters to check for hasfollowpatch closer to the blocked passage?
  13. G

    TFS 1.X+ Monsters respawn direction

    Yes! But for some reason this default direction is not working, just on first time when the server start
  14. G

    TFS 1.X+ Monsters respawn direction

    Hello guys, im using TFS 1.2 I'm trying to make all monsters appear in the respawn looking north (DIRECTION_NORTH) but i'm encountering a problem, the monsters only appear looking north when the server starts. if i kill the monster, when it appears again it's looking south... Can someone...
  15. G

    Lua How to check queryadd in this script 1.2

    Example: this is my doors script door = openVerticalDoors[item:getId()] if door then local doorCreature = Tile(item:getPosition()):getTopCreature() if doorCreature then doorCreature:teleportTo(item:getPosition():moveRel(1, 0, 0), true) end...
  16. G

    Lua Script help 1.2

    local resultId = db.storeQuery("SELECT `id`, `owner` FROM `houses` WHERE NOT `owner` = 0 AND (SELECT `premdays` FROM `accounts` WHERE (SELECT `account_id` FROM `players` WHERE `id` = `owner`) = `id`) = 0") if resultId ~= false then repeat local house =...
  17. G

    Lua Spell Script help

    local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) function onGetFormulaValues(player...
  18. G

    C++ C++ New Feature resquest

    Hi guys, i need help to implement this https://otland.net/threads/tfs-0-4-overspawn-monsters-like-old-tibia.275933/ On tfs 1.2
  19. G

    script error help tfs 1.2

    someone can help me? i have this script local config = { number_max_ip = 1, } local white_list = {"000.000.000.000", "000.000.000.000"} function onLogin(player) if isInArray(white_list, Game.convertIpToString(player:getIp())) == false then if...
Back
Top