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

    Lua Prevent monsters to hit other monsters

    Hello, I am using this script to prevent monsters to hit other monsters. function onStatsChange(cid, attacker, type, combat, value) -- This should block all damage monster cause on eachother expect player summons if isMonster(cid) and isMonster(attacker) then local master =...
  2. K

    Lua Critical damage not normal to monsters which absorb element

    Hello, I am using this script (creature script) for critical hit on monsters and players. but i found something weird. when i hit a monster with a weapon its basic dmg is 100 a monster with <element holyPercent="50"/> a critical dmg amount is 100% extra the damage to this monster should be 50...
  3. K

    Lua [Error - CreatureEvent::executeCombat] Call stack overflow.

    Hello, Sorry for bumping old post. But i found it and used it and it worked perfect but with a problem. The problem is when someone has a kind of protection, for example if someone has 18% protection And you use a weapon which its basic dmg is 100 If you hit this guy without his protection...
  4. K

    C++ How to make critical hit works for wands damage?

    Hello @Togu I still away from home, but here you are the script https://otland.net/threads/error-creatureevent-executecombat-call-stack-overflow.253489/#post-2460409 I made some edits on mine to make it easier with config and check if you wear x weapons but when i tested it i found a problem...
  5. K

    C++ How to make critical hit works for wands damage?

    Ok, i will post everything once i reach my laptop.
  6. K

    C++ How to make critical hit works for wands damage?

    Thanks @Togu and @itachi_ for help. I found another solution to make a critical system based on Lua script which will work with any kind of damage. ( spells, weapons )
  7. K

    C++ How to make critical hit works for wands damage?

    I made a change to lines From: int32_t WeaponWand::getWeaponDamage(const Player* player, const Creature*, const Item*, bool maxDamage /* = false*/) const { float multiplier = 1.0f; if(Vocation* vocation = player->getVocation()) multiplier =...
  8. K

    C++ How to make critical hit works for wands damage?

    I got these errors Error 1 error C2371: 'maxValue' : redefinition; different basic types \weapons.cpp 981 1 tfs Error 2 error C2065: 'attackSkill' : undeclared identifier \weapons.cpp 981 1 tfs Error 3 error C2065: 'attackValue' : undeclared identifier...
  9. K

    C++ How to make critical hit works for wands damage?

    Hello, I see that critical hit only work for melee weapons and distance weapons but not for wands. I want to edit the source to make it work for wands also. This is my weapons.cpp https://pastebin.com/Te9HV45J Look to this lines ( melee weapon has the line of critical damage ) int32_t...
  10. K

    TFS 0.X Players can’t use runes on wild growth

    Thanks, it worked.
  11. K

    TFS 0.X Players can’t use runes on wild growth

    I edited them to not disappear when someone goes above them.
  12. K

    TFS 0.X Players can’t use runes on wild growth

    Hello, how to make players can use runes when they stand on wild growth? tfs 0.4
  13. K

    C++ Looking for Critical attribute to add it

    Hello, I am looking for an edit to add critical hit chance and critical amount attributes to items.xml. Or a lua script ( creature event ) when a player wear a x weapon it adds to him critical chance. Some thing like that. I am using TFS 0.4 any help ? Solved I used this one...
Back
Top