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

    TFS 1.X+ Time between different spell casts

    Hello otlanders! I've been looking around, trying myself a bunch of things, but so far, no luck. Maybe you could help me? Thanks in advance. Basically, Im trying to lower the time between casts of spells of different group. I tried deleting from spells.xml groupcooldown, tried setting it to 0...
  2. Aeronx

    Lua doTargetCombatHealth(...) bug

    Hello otlanders! I've been doing so much testing with doTargetCombatHealth(), and I dont know if its a bug, intended, and if there's a work around for it. So far, this is the basic mass healing spell. function onTargetCreature(creature, target) local player = creature:getPlayer() local...
  3. Aeronx

    Solved Configuring Recover account/password

    Hello Otlanders! I've been trying for days now many options to configure the automatic account/password recovery throguth email on znote. I've set all the data from my webservice into config.php Is phpmailer 100% necessary? If so, there is anything to configure about it? This is the info on...
  4. Aeronx

    Solved target name contains [tfs 1.2]

    Hello guys! I've been trying all day long, searched the whole internet, but i have been totally unsuccesfull and i am on my nerves lol I have this table: local config = { ['gang member'] = {amount = 20, storage = 21901, startstorage = 45553, startvalue = 1}, ['smuggler'] = {amount =...
  5. Aeronx

    Solved :gmatch() [TFS 1.2]

    Hello otlanders! I am trying to learn a bit more here, so maybe you can instruct me. I have started working with :gmatch and for easy tests I tested it with monster names. local desc = target:getName():gmatch('%d') local lvl = tonumber(desc()) print(lvl) the targeted monster has the name...
  6. Aeronx

    TFS 1.X+ Server performance

    Hello otlanders! I've made a little script that every second uses the DB as in global event. So my question is, would it lag or even crash the server if there are 50+ players using this global event? Is there a way to know the performance? a better way to make this? function onThink(interval)...
  7. Aeronx

    Solved Spell crashing server [TFS 1.2]

    Hello guys! im testing new things and i've created simple script, but for some reason I dont know it crashes the server. function onCastSpell(creature, var) local pos = creature:getPosition() local item = Game.createItem(2579, 1, pos) if item then item:setActionId(8764)...
  8. Aeronx

    Lua Learning about movements [TFS 1.2]

    Hello otlanders! Today is testing day! I've being doing some testing with creature:allowMovement(), creature:setDirection() and doMoveCreature(). After doing some tests, i've seen that allowMovement prevents ANY type of movement, even if its forced by teleportTo or doMoveCreature.. it tries to...
  9. Aeronx

    Solved how to..? [TFS 1.2]

    Hello everyone! Ive been trying a lot of things for hours, and nothing seems to work, either is too easy and i dont see it or cannot be done. This is a part from a waaaay bigger script, but im giving your the problem part so, lets see if you can help me guys! function spawnMonsters(value)...
  10. Aeronx

    Solved Stacking problem

    Hello everybody! I've been searching, testing and trying to do magic to solve this, but i dont find an answer. I have this script: function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if not creature then return true end if not...
  11. Aeronx

    Lua setTarget [TFS 1.2]

    Hello everyone! I've been doing testing with game.getSpectators and tried something like this: local creatures = Game.getSpectators(creature:getPosition(), false, false, 7, 7, 7, 7) if #creatures == 0 then return true end for i = 1, #creatures do if creatures:isMonster() then...
  12. Aeronx

    Lua Spells and Animations

    Hello everyone! Im doing some testing and trying to learn a bit here, so maybe you can help me out, thank you in advance. Here's the code: local function sendEffc(cid) local cid = Player(cid) r1 = cid:getPosition() a1 = Position(r1.x, r1.y - 3, r1.z) a2 = Position(r1.x + 1...
  13. Aeronx

    Team The Lost Kindgom Online searches for partners

    Hello everyone! The lost kingdom is looking for mature people to works on this areas: - OTclient - Website - Mapper - Spriter The project its been up for 2 years now. It's a really custom server, very unique with features only seen there. Building a project is really time consuming and I...
  14. Aeronx

    Solved isInArray problem

    Hello all! I've been doing many test, but i've been totally unsuccessful. function onUse(cid, item, fromPosition, itemEx, toPosition) local it = ItemType(itemEx.itemid) for h = 2375, 2378 do j = h print(j) print(isInArray(j, itemEx.itemid)) print("-----")...
  15. Aeronx

    Solved StorageValue on Sources [TFS 1.2]

    Hello all! I've been trying to change the formula of attackspeed on sources adding a storage value. uint32_t ret = (vocation->getAttackSpeed() * (1 - getStorageValue(88888) * 0.00375)); but i get an error at the "888)<---" too few arguments in function call Can anyone tell me what im...
  16. Aeronx

    Solved creature interval and os.time [TFS 1.2]

    Hello otlanders. I've started doing some testing with party buffs and such. And I got to this. local times = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10} function shine9(cid) local cid = Creature(cid) local position = cid:getPosition() position:sendMagicEffect(19) end...
  17. Aeronx

    Solved Compiling error on Reward Chest tfs 1.2

    Hello all! I have this error compiling the tfs with this system: Reward System [remake of #1628] by socket2810 · Pull Request #1641 · otland/forgottenserver · GitHub I think the problem is that I added the 4 new files to source wrong, but i didnt know how to solve it. I am compiling in windows...
  18. Aeronx

    Solved pet cast spell on command [TFS 1.2]

    Hello otlanders, i've been doing some testing on spells for a new system i'm working on. This spell should be casted by master and executed by summon. Instead is casted on master. I did some spells for healing or damage and they work perfectly, but for some reason, "taunt" spell is resisting...
  19. Aeronx

    Lua TFS 1.2 check container

    for i = 0, getContainerSize(getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).uid)-1 do thing = getContainerItem(getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).uid, i) local resto = isInArray(thing.itemid, 8293) print(resto) print(thing.itemid) end resto prints all false.. thing.itemid prints...
  20. Aeronx

    Lua Spell help / skill tries [TFS 1.2]

    Hello everyone! I've been trying this custom spell. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, 1) function onGetFormulaValues(player, skill...
Back
Top