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

    How to make shielding affect armor damage reduction?

    bump @Flatlander It seems it's going to be way harder than I thought. Any ideas?
  2. Slime

    How to make shielding affect armor damage reduction?

    947 C:\Users\Putregon\Desktop\DWO\server\creature.cpp 'class Creature' has no member named 'getSkill' Here's an example of getSkill usage from player.cpp int32_t Player::getDefense() const { int32_t baseDefense = 0, defenseValue = baseDefense, defenseSkill = getSkill(SKILL_CLUB...
  3. Slime

    How to make shielding affect armor damage reduction?

    @Flatlander What do you mean? int32_t DefSkill = this->getSkill(SKILL_SHIELD, SKILL_LEVEL); or int32_t DefSkill = getSkill(SKILL_SHIELD, SKILL_LEVEL); Sorry but I didn't understand. None of these work by the way. I'm using TFS 0.3.6
  4. Slime

    How to make shielding affect armor damage reduction?

    I wanted to make shielding improve armor defense. if(checkArmor) { int32_t armorValue = getArmor(), minArmorReduction = 0, maxArmorReduction = 0; if(armorValue > 1) { int32_t...
  5. Slime

    Remaking DEF into Dodge/Flee Rate - a simple C++ question

    bump @edit The way it's now: if(checkDefense && hasDefense) { int32_t maxDefense = getDefense(); int32_t fleefail = random_range(0, 100); if (damage <= maxDefense) { if (fleefail<=80) damage = 0; blockType = BLOCK_DEFENSE; checkArmor = false; } } But it doesn't work for some reason, still if...
  6. Slime

    Remaking DEF into Dodge/Flee Rate - a simple C++ question

    I'm remaking def into sort of dodge system. I want it to work like this: if the damage dealt to the player is lower or equal to his defense rate there's 80% chance he will dodge it and 20% chance that he will get 100% damage (not including ARM reductions). I'm almost there if(checkDefense &&...
  7. Slime

    Points system by MaXwEllDeN - stopped working

    The thing is I didn't change anything. It just stopped working, I installed it from the beginning again, even created a new mysql database. Still nothing. @edit Ok, I installed the script on a clean, unmodified 0.3.6 and it works. Apparently there is a problem with executing actions and scripts...
  8. Slime

    Points system by MaXwEllDeN - stopped working

    It was all perfect and suddenly stopped working for no reason. It doesn't add points to the storage value when leveling up. That's how it looks in player_storage player_id - 4 key - 14574 value - 0 So I changed value to 100 to check if other features of the script do work. And they do. Then I...
  9. Slime

    GetSocket function in Tibiando

    I guess implementing this function is crucial to adding spell/attack/hit sounds to the game. And here's my noob question. Where do I paste this? function getSocket(cid) if not dj then error('You have to install tibiando. The tibiando work ONLY in creaturescripts. This function too.') end for...
  10. Slime

    Niezrozumiały błąd po edycji player.cpp [TFS 0.3.6pl1]

    Spoko, już udalo mi się rozwiązać problem, wystarczyło przesunąć jeden średnik w playerbox.h.
  11. Slime

    Solved Uneditable player.cpp on TFS 0.3.6pl1

    Ok guys, solved. For some reason there was class Player class PlayerBox; instead of class Player; class PlayerBox In playerbox.h
  12. Slime

    Solved Uneditable player.cpp on TFS 0.3.6pl1

    Sure, I do! Just tried to compile it on VirtualBbox (Windows XP) and it still returns same errors.
  13. Slime

    Niezrozumiały błąd po edycji player.cpp [TFS 0.3.6pl1]

    Zamieniłem u siebie w kliencie club fighting na agility, a obronę tarczą chciałem zamienić na uniki, zależne właśnie od agi. Problem jest w tym, że po edycji jakichkolwiek parametrów w player.cpp, silnik nie chce się skompilować. Przykładowo, zamieniam przypadkową linijkę...
  14. Slime

    Solved Uneditable player.cpp on TFS 0.3.6pl1

    Everything compiles fine until I try to edit anything in player.cpp file. Seriously, even if I change one letter in a place where it shouldn't be a problem it stops working. Then I put the letter back on its place - still doesn't compile, I have to replace player.cpp with a new one. Errors: 30...
Back
Top