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

    [8.6] [0.3.7] - TeamWarOT HardCore - Team vs Team

    TeamWarOT HardCore 8.6 - Team vs Team Hey guys, today I'm opening the code for an old project. Something I did a long time ago. I hope to help the community and also revive this style of server. It was developed using MODs, so the entire server is in 3 files. Database Working with...
  2. HeberPcL

    Replace Kick OnLogin

    Hey OtLanders... I would like to allow replaceKickOnLogin only for players with `save` == 1 in the database. ReplaceKickOnLogin = true Thanks!!
  3. HeberPcL

    Lua Skull System - Custom TFS 1.x

    Hey OtLanders, I'm making a server Enforced and would like to customize the Skull System, based on frags per storage and using all Skull Colors. { SKULL_YELLOW, SKULL_GREEN, SKULL_WHITE, SKULL_RED, SKULL_BLACK, SKULL_ORANGE } I tried using worldType = "pvp" and the setSkull() function works...
  4. HeberPcL

    Lua NO Drop Corpse - TFS 1.x

    Hey OTlands, I would like to disable the body after the death of the players in TFS 1.2, any ideas? Just editing source? Item* corpse = getCorpse(lastHitCreature, mostDamageCreature); if (corpse) { g_game.internalAddItem(tile, corpse, INDEX_WHEREEVER...
  5. HeberPcL

    Lua Outfit Color Change BLOCK - TFS 1.x

    function Creature:onChangeOutfit(outfit) local old = self:getOutfit() if ( (old.lookHead ~= outfit.lookHead) or (old.lookBody ~= outfit.lookBody) or (old.lookLegs ~= outfit.lookLegs) or (old.lookFeet ~= outfit.lookFeet) ) then self:sendCancelMessage("You cannot change your outfit...
  6. HeberPcL

    How to install boost_iostreams

    Hey, OTlanders... In commit #1984 @djarek refactored the loaded map file and now boost_iostreams is required. Below is the compilation error and the lib for installation. Error: -- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so CMake Error at...
  7. HeberPcL

    Function Performance Optimization

    Hey, I want to make is more performative function. The idea is very simple, get my rank in an array and return rank name. Configs example: fragsStorage = 22222 titles = { -- Frags / Rank Name [5] = "Private First Class", [13] = "Specialist", [25]...
  8. HeberPcL

    CreatureEvent Start Skills TFS 1.x

    Hey... Today updated the @Ratser script for last TFS. Version Tested: The Forgotten Server - Version 1.2 local firstStorage = 56364 local firstSkills = { [1] = { { amount = 55 } }, [2] = { { amount = 55 } }, [3] = { { skillid =...
  9. HeberPcL

    Lua Top 5 - InGame

    REMOVE Fixed!
  10. HeberPcL

    TalkAction Own Loot Backpack - Tfs 1.x

    Hello, remaker script for tfs 1.x. by @Azi https://otland.net/threads/own-loot-backpack.14923/ talkactions.xml <talkaction words="!ownbp" script="ownbp.lua"/> ownbp.lua local config = { cost = 1000, -- Cost (GP) ownTime = 24 * 60 * 60 * 1000, -- Time (24 horas) backpackId = 2000...
  11. HeberPcL

    Lua Creature Position - Bug?

    Hey, I did the following script and found a strange error and for this reason I am sharing it may be a bug. Code: toPosition = player:getPosition() local skeleton = doSummonCreature("Skeleton", toPosition) local skeletonCheckPositionNow = skelelton:getPosition() -- return error...
  12. HeberPcL

    Lua Monster Target

    Hey, Want to limit the target of a specific example Monster (Orc vs Troll) in TFS 0.4 would use the onTarget(). How I could do this in TFS 1.0 ?? TFS 0.4 function onTarget(cid, target)
  13. HeberPcL

    Solved Movement Add Attribute

    Gentlemen, I can't get the movement add the Magic Level to the player using Script. Any idea how to solve? items.xml <item id="2542" article="a" name="tempest shield"> <attribute key="weight" value="5100"/> <attribute key="defense" value="30"/> <attribute...
  14. HeberPcL

    Solved getTileInfo Error

    Hey, I have a problem that I can not understand the reason, maybe you can help me. The below script returns error in the following line: local n, i = getTileInfo({x=x, y=y, z=v.toPos.z}).creatures, 1 Any idea how to solve? Thank you! Error: [10:35:50.592] [Error - GlobalEvent Interface]...
  15. HeberPcL

    Lua io.file Read and Write

    Hey community, I need to make a script to open the config.lua file, look for protectionLevel and change what is configuration. If the setting is protectionLevel = 50 it changes for protectionLevel = 8. I found the following code, but I don't know how to apply in TFS; local f =...
  16. HeberPcL

    Useful Links

    I thought the customer very good and I'm happy for the community. For those who would like to develop modules for the client follows the links with all the necessary information. Developing Resources OTClient Coding Style Contributing Compiling on Linux Compiling on Windows Module Tutorial...
  17. HeberPcL

    Lua Check Monsters in my Screen!

    Hello guys, I need a help as i could check and list the monsters that are on my screen. I noticed that there are some functions, but could not make it work. Functions: getMonsterSummonList (name) getMonsterTargetList (cid) getMonsterFriendList (cid) Thanks All. :p
  18. HeberPcL

    Lua Query Other DB

    Guys, I have this little problem. I would run a query that is on an external server. Does anyone have any idea how I can do it in LUA? $host="myip.com"; //source $user="root"; $password="pass"; $db="mydbname"; $ots->connect(POT::DB_MYSQL, array('host' => $host, 'user' => $user...
  19. HeberPcL

    Modern AAC - Resitricted names BUG!

    /*Resitricted names*/ $config['restricted_names'] = array("god", "gamemaster", "admin", "account manager"); Not restricting the specified names. i search in files: system/application/controllers/character.php if(in_array(strtolower($unit), $config['invalidNameTags'])) {...
  20. HeberPcL

    Modern AAC - Premium Points

    injection.php <?php if(!defined('BASEPATH')) exit('No direct script access allowed'); //** Connection to the database **// $ots = POT::getInstance(); $ots->connect(POT::DB_MYSQL, connection()); $SQL = POT::getInstance()->getDBHandle(); $player = $GLOBALS['player']...
Back
Top