• 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!

Recent content by Crevasse

  1. Crevasse

    Feature Monster Skill Advancement System

    Great, glad to share this since no one else ever has. Just make sure you added all of the other changes I mentioned in the thread and you should be all set.
  2. Crevasse

    Feature Monster Skill Advancement System

    Yes, I know overflow is semantically incorrect, unsigned ints will wrap around. And obvoiusly, if it just wraps around, tries could never bigger than the biggest possible unsigned int. What I didn't understand, but I think I do now thanks to your explanation, is that the program doesn't...
  3. Crevasse

    Feature Monster Skill Advancement System

    You're right, and it can actually be simplified down even more: In monster.h, in private underneath uint64_t tries = 0;, declare a new variable: float TRIES_INCREASE_FACTOR; Then, in monster.cpp, initialize the new variable in Monster::Monster(MonsterType* mtype), underneath skillTries = 0...
  4. Crevasse

    Feature Monster Skill Advancement System

    A huge thank you to Evil Hero for pointing out a serious oversight in my coding. Here are the corrections that need to be made to the code so that the skill increase is only affecting each specific, individual monster, and not affecting the skill of the entire MonsterType class. First, in...
  5. Crevasse

    Feature Monster Skill Advancement System

    I see what you’re saying. Let me do some more testing to see if that’s actually happening, and I’ll update here with what I find and if it needs to be fixed.
  6. Crevasse

    Feature Monster Skill Advancement System

    A great question. I tested this with prints already to confirm that the stat is only changing for the individual monster. Think of it like any other attribute on a monster, like HP: If you attack one dragon and his attribute "currentHealth" changes, the current health for all dragons does not...
  7. Crevasse

    Feature Monster Skill Advancement System

    Ohh ok I totally misunderstood you. I thought you were jumping in to explain a separate feature that also increased the defense attribute. You're just saying that the monsters' "skill" should be part of the formulas that determine the monsters defense as well as damage. Yes, that is already...
  8. Crevasse

    Feature Monster Skill Advancement System

    Great, so it is what I understood, thank you. In that case, NO CHANGES NEED TO BE MADE for Sabrehaven.
  9. Crevasse

    Feature Monster Skill Advancement System

    Yes, that's what I mean when I said: So, I guess I realized I'm not actually sure when the monster's defense increases. I assumed it increased at the same time that their fist fighting increased, but maybe it increases as the monster takes hits? I guess I'll have to rely on @kay to confirm...
  10. Crevasse

    Feature Monster Skill Advancement System

    Good point Kay, I totally forgot about defense. I'll write that up and post it here. Also true. For anyone who cares to make theirs as accurate as possible, here are the very few monsters that aren't set at 100, and here is what they are set at: blacksheep 0 chicken 0 dog 0...
  11. Crevasse

    Feature Monster Skill Advancement System

    In Sabrehaven nothing needs to be changed for that, the distro already includes that function. In TFS 1.5 you would need to either change the minimum creature think interval to allow it to go lower than 1 second, or re-work the function for how the game determines when a monster can cast its...
  12. Crevasse

    Feature Monster Skill Advancement System

    I'm not sure exactly what you mean by "double hit." In old Tibia, monsters had no cooldown between spells, that is why a hunter could shoot 2x in a very short period of time. Is this what you mean?
  13. Crevasse

    Feature Monster Skill Advancement System

    I'm not going to convert this to 0.4. I've never worked with 0.4 and don't plan on doing so anytime soon. A direct copy and paste to 1.5 is not going to work, monster melee attacks are not handled the same way as Nostalrius (combat.cpp). A quick look makes me think it might be handled in...
  14. Crevasse

    Feature Monster Skill Advancement System

    It's common knowledge at this point that monsters in oldschool Tibia had a melee skill that would actually train and level up as they fought. I've never seen anyone write/share code for this, so I'd like to share mine. This is written for/implemented in Sabrehaven (Nostalrius), but could likely...
  15. Crevasse

    Lua How to make trap damage blocked by armor?

    I haven't tested what @highsanta suggested, it should work, but it would be really messy to add all of that stuff about declaring local combats. If you want to retain your current script structure without having a whole bunch of different local combats declared, you can make a small source edit...
Back
Top