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

    monster pause tfs1x

    In this case, monster variable is a string. You can't access the userdata of the monster like this. Try search in area, look for the boss and get the userdata. Look from startPosition to endPosition, get tile in each interation, get creatures in the tile, check if the creature is the boss that...
  2. Z

    monster pause tfs1x

    Send the code u are using please. In lua you can set the speed of the monster to 0, then it will not move. myMonster:changeSpeed(-myMonster:getSpeed())
  3. Z

    monster pause tfs1x

    Hi, You compiled your sources after the changes? Im using this function in my server and is working Ok... Have some error? What dont worked? Give more info and i try to help you.
  4. Z

    Lua how to get table with conditions?

    Hi, Why u don't try to store the count of conditions in storage, and when you need to perform the dmg, just read the storage count? FIRE_CONDITION_COUNT_STORAGE = 1000 function Player.addFireCondition() local conditionCount = self:getStorageValue(FIRE_CONDITION_COUNT_STORAGE)...
  5. Z

    TFS 1.X+ tfs 1.3 doubt with a lua script (teleport for the position that enter)

    Always are, he is the best! Its just another approach, this modification is very usefull.
  6. Z

    TFS 1.X+ tfs 1.3 doubt with a lua script (teleport for the position that enter)

    You can use this: [LIB] Storing Information and use one special storage to save your position as string. As Delusion said, without this, u can only save integer values in storages. --Edit When i was writing the post, he marked as solved, i hope don't have problem.
  7. Z

    Summon Speed

    When summon your pet you can do: summonUserdata:changeSpeed(playerUserdata:getSpeed()) Assuming that you are using 1.x and you have access to both userdata. Give more info next time...
  8. Z

    monster pause tfs1x

    Check this: Creature:setNoMove
  9. Z

    C++ Remove summon from experience map

    Excellent explanation! But if i get the summon ratio and add with player ratio will result in 1.0(all exp) that is what im trying to do, if i couldn't do that, i will definitly use the damageMap solution. --Edit After some tests, this solution worked well. Thanks for help!
  10. Z

    C++ Remove summon from experience map

    -Sorry, i forgot to edit my previous post Hi, To compile your code i have to change some parts, here is the code after i change: void Creature::onDeath() { bool lastHitUnjustified = false; bool mostDamageUnjustified = false; Creature* lastHitCreature =...
  11. Z

    C++ Remove summon from experience map

    Hello, I thought about do this, but if i need to access the damageMap, i will not have the real data about damage. Because of this, i tryed to change the experience map to read the attacker and identify if is a player summon and change the attacker to master. I think doing your change should...
  12. Z

    C++ Remove summon from experience map

    Thanks for answer. I can't test now, tomorow i give you feedback if worked.
  13. Z

    C++ Remove summon from experience map

    Thanks for answer, by commenting this lines the experience map will not be filled. No one recieve exp. This code block check if the attacker have a index in the experience map, if don't have, give the last index in map to attacker and set the value as gainExp, if the attacker already exist in...
  14. Z

    C++ Remove summon from experience map

    Hi, I need to change summon from experience map to master, then the master will receive the experience that summon would recive. I already blocked summon to recive experience, but if summon and player damage the creature, when the experience map is constructed, the experience wouldn't all to...
  15. Z

    free 5 days premmy when creating account

    TFS version? Send you creaturescripts/scripts/login.lua please.
  16. Z

    [OTClient] How to add new lua libraries?

    You can put the libary(.lua or .dll i guess, only tested with .lua) in the lua folder, and then require to use. Let me know if worked.
  17. Z

    [OTClient] How to add new lua libraries?

    Hi, I created lua folder in OTC master folder, and put my libary myLibName.lua inside, then just used require("myLibName") in my .lua module file and accessed the libary functions. Any problem, u can PM me, i can help you. Hope works.
  18. Z

    Lua Somebody can help me with house functions? (TFS1.2)

    Hi, Try: house:getTown() Ex: player:getHouse():getTown():getId() --Player Userdata -> get House Userdata -> get Town from House Userdata -> get Town id You can get a house info by using House(id) or just using functions to get the house Userdata like getHouse(). I use this pastebin to look for...
  19. Z

    Aprendendo C++

    Ola, Definitivamente vou olhar esse livro. Já vi algumas pessoas o indicando tambem! Muito obrigado pela dica.
  20. Z

    C++ Creature CastSpell() right way

    Hello, I have this function to do Creatures cast spells, but isn't working in right way, if a monster(summon) cast a spell, the spell is damaging the player(master), if hit another player, the master don't get Skull, the master and the player that recive damage don't get Pz Locked. After search...
Back
Top