• 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!

0.4

  1. elnelson

    Lua [0.4] DPS meter

    i looked this post: Monster - Training Dummy with DPS calculation (https://otland.net/threads/training-dummy-with-dps-calculation.263659/) and would see a nice addition if someone could help me build this script, to be honest i donot have an idea how to calculate this. The main idea is to check...
  2. Lurk

    TFS 0.X Why is this statsChange calling stack overflow?

    I'm using tfs 0.4, rev 3777 I'm trying to use this script to increase damage by each player reset and it also has a chance to crit but it always returns a lot of errors in console even tho the values are fine here's the script function onStatsChange(cid, attacker, type, combat, value) if...
  3. Lurk

    TFS 0.X playerGetPing is very imprecise

    Hi, I'm using tfs 0.4 and this getPlayerPing from mock adapted but it is very imprecise, when I ping my server with cmd it says that my ping is over 100, but this function says I'm at 20 something ping, any idea how I can improve it? Here's the 0.4 version int32_t...
  4. Obito

    C++ Where to find right click & left click in sources [walking with mouse]

    Hello where to find the responsible codes for walking with mouse clicks in the source files?
  5. Lurk

    TFS 0.X block vocations on account manager

    Hello, I have some custom vocations and they're available on my account manager. I know that's why I have my fromvoc with the same id of the vocation, but I want set on my iologindata.cpp which vocations id are available for everyone. I didn't found a good way to do this but on the sources and I...
  6. elnelson

    Lua [0.4] Watch script, show remaining time until next event

    Hello, otlanders, i have this script for the watches, its simple but i need some help to make it better, the idea is to show the remaining time for the next incoming events (ascendant order), if any event has passed it should show that event at the bottom as is the event that will take more time...
  7. S

    [TFS 0.4] Push Cumulative Question

    Hi guys! I don't know if you know this type of "push", this is very common in old versions (like 7.92). A more "skilled" player can move the character up to 3/4 sqms away. I would like to know if someone with more experience could help me implement this type of push (2, 3 or 4 sqms depending...
  8. S

    [TFS 0.4] Walkthrough other players

    Hi guys!! I was trying to make in the sources (0.4) a system that could allow players with a vocation >8 to pass through players with a vocation <=8. However, without success. This is my part of the sources that checks this: bool Player::canWalkthrough(const Creature* creature) const {...
  9. 1

    Editing Floor View with Storage 0.4

    Hey there! Firstly sorry for my bad english... So.. I'm looking for a system that verify the player storage.. and when return 1, will change the Floor View: I developed a solution that i can verify the storage in GetMapDescription, and GetFloorDescription... using a new param (bool...
  10. M

    TFS 0.X Weapon Spell

    0.4 Hello guys, im wondering if this script can be done. I need a script that, when you equip a weapon, you learn a spell. I know how to do with items like helmet and shield, but weapons have a different folder, not in movements, so i tried to do the same and didnt work. Also, Im looking for a...
  11. Lurk

    a guy made himself god and everyone else in my server aswell

    I'm using this website GesiorACC 2019 8.60 UPDATE 29/06/2019 (https://tibiaking.com/forums/topic/44980-gesioracc-2019-860-update-29062019/) I know this was posted here in otland as well tho I don't know where it is, and I'm using tfs 0.4 and google cloud to host the server I don't know how but...
  12. ralke

    convert autokick system for trainers from 0.4 to 1.3

    hi, i was wondering if someone can help me with this as a request, i got this script that i used a lot on my 0.4 server and i want to have it for tfs 1.3, its a moveevent that set a timer when player stepin, when time is finished it will teleport player to a default position. also timer is reset...
  13. Lurk

    Lua onThink function help

    Hello, I'm working in this script, tfs 0.4 8.6 function onThink(cid, interval) local rate = 1.15 -- só access local ratering42 = 3.15 -- ring 200 com acces local origratering42 = 3.0 -- ring 200 sem access local ratering41 = 2.45 -- ring 130 com access local origratering41 = 2.3 -- ring 130 sem...
  14. ralke

    [8.60] Greed OT based on Tfs 0.4

    Hi, I want to release all my datapack in thanks for everything I've learned in this forum. It contains 32 hunt teleports (with more teleports in its interiors), 27 quest teleports (more countless quest to explore), task systems, training dummy, pvp reward, among many others. If you have any...
  15. Lurk

    TFS 0.X player dying and reseting to level 1

    Hello, I was using this script function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then if (getPlayerSlotItem(cid, 2).itemid == 10134) then pos = getCreaturePos(cid) doCreatureSetDropLoot(cid, false) doPlayerSetLossPercent(cid, experience, 0)...
  16. mikkas70

    [TFS 0.4] Players can't connect into my server

    Hello everyone, I'm running a TFS 0.4 rev 3777 on Debian, but I'm facing some issues. Done so far: Compiled server Opened ports 7171 and 7172 both for TCP and UDP Changed my config.lua into using the ip as my public IP address (188.X.X.X) For some reason, my friends aren't able to connect to...
  17. Lurk

    TFS 0.X Always war shield

    hello, I want everyone in my server to always have the shield emblem on their character (that one of guild wars) and I know that adding this on my login.lua if getPlayerGuildId(cid) > 0 then local guild = getPlayerGuildId(cid) doGuildAddEnemy(guild, enemy, 0, WAR_GUILD)...
  18. Lurk

    TFS 0.X hundred of onCreatureLeave messages on console

    each second there's at least 30, listing npcs and monsters, there's also "Monster: monstername not found in the friendList." [19:24:33.332] Monster: Cond Jumy not found in the friendList. [19:24:33.332] onCreatureLeave - Cond Jumy I'm trying this TFS 1.X+ - tfs 1.2 how can i create a crash log...
  19. Lurk

    TFS 0.X SQL Query to change depot items

    Hello, I had some depots in certain towns linked wrong and now a player has different items in different depots at the same city. Is there a SQL Query that would allow me to send all the items my players have from one depot to another? Example: I have 30 itens in the depot of town 1 and 50 in...
  20. Lurk

    Lua Npc can only but 30 at a time

    Hello, I have a tfs 0.4 server and whenever a player has excessive items in containers (bcakpacks) and sell more than 40 at a time to a npc it will causes lag, probably because it has to check every slot in the player backpack idk, is there a way to limit the amount of itens the npc can buy at a...
Back
Top