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

functions

  1. Evil Hero

    [TFS 1.5] Raw Functions and Variables dump 1.0

    This file includes a complete raw data dump of all the current functions and variables from TFS 1.5 The file is just for linters or to search something specific PLEASE DO NOT LET YOUR SERVER LOAD THIS FILE
  2. Sarah Wesker

    [TFS 1.5] Counter based on a monster.

    I have created a couple of functions that help create a monster that represents a countdown timer with its name changing every second to reflect the countdown. On each tick, an onThink function is executed if it exists, or an onEnd function is executed if it exists. This function accepts some...
  3. potinho

    Lua Dodge/Critical/Life and Mana Leech - OTX 2

    I want to add critical, dodge, life and mana leech but in source based (to be stable and faster). There's a repository teaching how to add? I use OTX 2 (tfs 0.3.7 based) and want to implement this on my server.
  4. Codinablack

    TFS 1.3 Functions List June/2021

    Hey everyone, I know this list is long sought after, and that many people just want to tell everyone to look in luascript.cpp, but if you are like me, that is still more time and bs than its worth, I prefer an old school text or lua (syntax highlighting thank you) file with a LIST of the...
  5. C

    Automatic done task?

    I have a task to kill a certain number of monsters. How to write a function in cavebot to check the status of the task. When I did it, he stopped killing. And he went to hand over the task to the NPC.?
  6. Sacarus

    TFS 1.X+ Where are movements functions? onEquipItem, onDeEquip...

    Hi, where may I find those functions that we can target in movements.xml? onEquipItem, onDeEquipItem, onStepInField..? (TFS 1.2) (example: <movevent event="Equip" itemid="2195" slot="feet" function="onEquipItem" />) Is it only in sources, movement.cpp>MoveEvent::EquipItem ?? Another...
  7. Sarah Wesker

    C++ Send Effects a Single Viewer ?

    I would like to send effects to a single viewer? -- example function: toPos:sendEffectToClient(magicEffect)
  8. Colandus

    A few useful functions (CHECK!)

    -- Returns the top item on a tile. function getTopItem(pos) pos.stackpos = 1 + getTopCreature(pos).itemid return getTileThingByPos(pos) end -- Teleport a creature with effects, invisible players will not show effects! function doTeleportCreature(cid, pos, pushmove) if(not...
  9. Colandus

    Some table functions!

    Alright, now it's time for me to release my table functions! :) Here they are (explanation below): -- ~##TABLE::FUNCTIONS::BY::COLANDUS##~ -- FIND_NOCASE = 0 FIND_PATTERN = 1 FIND_PATTERN_NOCASE = 2 function table.find(t, v, c) -- function 100% by Colandus! if type(t) ~= "table" then...
Back
Top