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

    CreatureEvent Critical/Dodge System based on weaponSkill/speed TFS 1.2

    Updated 05/08/2017 So this is my first "contribuition" it's a critical system based on the weapon that you use and a dodge system based on the player speed and free cap. It has effects and texts for melee and ranged attacks. Wands/spells have only texts. Monsters can crit/dodge and everything...
  2. L

    Problem with the /reload command TFS 1.2

    I can't use the /reload if i just type /reload i get "Reload type not found." if i put a reload type like "/reload all" nothing happens just this error. Lua Script Error: [TalkAction Interface] data/talkactions/scripts/reload.lua:onSay data/talkactions/scripts/reload.lua:76: attempt to call...
  3. L

    Lua Function for verifying weapon type equipped?

    Really thanks to @Static_ @WibbenZ @Joe Rod and this thread I could achieve what i wanted. If someone wants to see/use. I just use it to simulate a more "complex" critical system for my home server/(D&D wannabe), i tried alot to make the imbuiment system work but i couldn't, so i came up with...
  4. L

    Lua Function for verifying weapon type equipped?

    So there is a way to see my "version" of tfs, because i dont to redo the source edit
  5. L

    Lua Function for verifying weapon type equipped?

    I thought i was but maybe not now that u explained it, could u link me the latest one? Or i just download this (Tfs 1.2)??
  6. L

    Lua Function for verifying weapon type equipped?

    Ok i put it and got the same error, (i have the global.lua and the core/player.lua at the same time its ok? or i need to delete one of them) But i just changed the print(creature:getWeaponType()) to print(attacker:getWeaponType()) and now im getting some numbers on the console 1 for sword / 2...
  7. L

    Lua Function for verifying weapon type equipped?

    No luck, still getting the test message "NOT A SWORD!" maybe it's the source edit that i mentioned before? I tested to see if the skills were leveling up as normal, and yes everything is working. If someone wants i could upload my files somewhere
  8. L

    Lua Function for verifying weapon type equipped?

    ok guys @Joe Rod and @WibbenZ i'm very new to this and idk where to put those functions, i'm using a clean datapack and just one source edit ( True Dual Wielding ) and this script ( Random Item Stats ). I'm trying to change tibia to use it as a D&D like game for me and my friends to play over...
  9. L

    Lua Function for verifying weapon type equipped?

    I tried to use this function on a new TFS 1.2 and it didn't work. And it spams "attempt to call global 'getPlayerWeapon' (a nil value)" I know it's an old thread but someone can help?
  10. L

    [TFS 1.0] Critical Hit % - Permanent

    Oh i just inverted everything, i thought that it was HARD to make all the monsters crit but it's hard to make players crit on every monster am i right?
  11. L

    onBlock/blockHit function?

    @Ziker and @whitevo thanks for all the fast replys, do you have an example to add a new event? Like another thread that does this type of thing? And whatd does the skillTries do? isn't it supposed to slowly increase the players skill until a increment/level and why can't we use it? if you want...
  12. L

    onBlock/blockHit function?

    ok guys a lot of complicated stuff i tried to understand but it's just too much but i have been thinking if it was possible to do like this (just some examples like i said i don't know alot about coding, but i want to try to put my ideias to work) if player IN_FIGHT and onHealthChange return...
  13. L

    [TFS 1.0] Critical Hit % - Permanent

    Guys im having a wierd situation ALL the monsters can crit but i can't what have i done wrong? Using TFS 1.2 this is the code on creaturescripts/scripts/shieldBlock.lua function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if...
  14. L

    onBlock/blockHit function?

    Guys i tried to understand the source code hint that @Ziker posted, and i found this bool Game::combatBlockHit(CombatDamage& damage, Creature* attacker, Creature* target, bool checkDefense, bool checkArmor, bool field) { if (damage.primary.type == COMBAT_NONE && damage.secondary.type ==...
  15. L

    onBlock/blockHit function?

    I don't really now scripting but i wanted to know if it is possible to get something like this If a player has a shield and successfully blocked an attack do X And if it is please teach me how to do it or just make an example, im trying to learn .lua and understand c++
  16. L

    Feature True dual wielding for TFS 1.x

    I installed everything patched etc, got the same error that Sizaro got, fixed it but i cant equip 2 weapons in game The message changes from "You cannot dress this object there" to "Sorry, not possible" Can someone help me ?
Back
Top