• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. R

    Target Square

    is there any way to make this function create the target? local function sendCancelTarget(player) local msg = NetworkMessage() msg:addByte(0xA3) msg:addU32(0x00) msg:sendToPlayer(player) msg:delete() end I thought I would change the 0x00 to end 1 or 2 to see if it worked...
  2. R

    Target Square

    I can do remove the red square through the script, but I wanted the player, if he wants, to remove it manually by pressing on another target or by pressing ESC.
  3. R

    Target Square

    Up 1628904361 int LuaScriptInterface::luaCreatureSetTarget(lua_State* L) { // creature:setTarget(target) Creature* creature = getUserdata<Creature>(L, 1); if (creature) { Creature* target = getCreature(L, 2); pushBoolean(L, creature->setAttackedCreature(target))...
  4. R

    Target Square

    #edit I managed to get it to work :), but now the problem is that I can't remove the red square when the player stops attacking :( local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) function...
  5. R

    vc14 no exist

    I managed to compile, I thought it wouldn't work because of the errors there.
  6. R

    vc14 no exist

    does anyone know how to compile the otserv brazil source? can't find "VC14". is this tfs: https://github.com/opentibiabr/otservbr-global
  7. R

    condition accumulating

    I was tested in several ways, but none of them worked, or I applied the dot and didn't remove or didn't apply the dot, but I've been testing it in several different ways and I ended up getting it, I just hope I don't have any bugs hehehe :3 if it's someone who wants to do the same thing, I'll...
  8. R

    condition accumulating

    can fix it for me, because the way I tried it didn't work, pls. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local condition =...
  9. R

    condition accumulating

    .
  10. R

    condition accumulating

    tfs 1.3 I have 2 spells, one that applies a fire DOT and another that increases damage if Player has the DOT. the DOT is for 5 turns, but when you use the spell more than once on the target the spell reaches more than 15/20dots depending on when I use it. there is some usual form of 5 shifts I...
  11. R

    doCreatureCastSpell() tfs 1.3revscript

    thanks, i will learn more about this.
  12. R

    doCreatureCastSpell() tfs 1.3revscript

    I did it that way here, I don't know if it's the most viable way :/. Can you tell me if using storage nowadays to keep track of things is still viable or in this situation I should use something else? if you can, look at the script and talk about where you could improve, what would you do. thanks
  13. R

    doCreatureCastSpell() tfs 1.3revscript

    is there any version of "doCreatureCastSpell()" for tfs 1.3 revscript? if not, can you give me an idea of how to make an item when on.use, use a spell
  14. R

    centralize spell

    sorry for the inconvenience, it's just that I don't speak English well and i ended up getting confused, but it worked the way Pox did. thanks also Fresco, it helped me in another script kkkk thank you all
  15. R

    centralize spell

    I think I must have explained it wrong, when I use a spell and walk, as it is an event, the spell accompanied, I wanted it to cast in the same place I cast the spell first
  16. R

    centralize spell

    does anyone know how i can do to fix this spell? local combat = {} local area = { { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} }, { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 1, 0, 2, 0, 1, 0}, {0, 1...
  17. R

    script crashing server if player logs out.

    I was redoing an old script for version 1.3, but if I log off the char, it crashes the server. function getPosDirs(p, dir) return dir == 1 and {x=p.x-1, y=p.y, z=p.z} or dir == 2 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 3 and {x=p.x, y=p.y+1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or...
  18. R

    RevScripts skip line description

    it worked, thank you very much. can you tell me if there is any way using revscript?
  19. R

    RevScripts skip line description

    can you give me an example, I tried in several ways and nothing. in XML I tried in several ways too and nothing.
  20. R

    RevScripts skip line description

    how to do skip a line using tfs from revscript and is there any way to record the item's description in the item's own script? \n does not work; i try "boneBreaker:description("blabla")" but it doesn't exist that way.
Back
Top