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

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    Also post what your otclient is showing for your: void Map::resetAwareRange() { AwareRange range; range.left = 14; range.top = 12; range.bottom = 13; range.right = 15; setAwareRange(range); } I do not see that you have the following function in Protocolgame.cpp bool...
  2. Flatlander

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    Start over, follow my tutorial again using viewport and the below for OTC: void Map::resetAwareRange() { AwareRange range; range.left = 14; range.top = 12; range.bottom = 13; range.right = 15; setAwareRange(range); } Should be: { AwareRange range; range.left =...
  3. Flatlander

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    I see you are typing in the values individually, rather than using: static const int32_t maxViewportX = 10; //min value: maxClientViewportX + 1 static const int32_t maxViewportY = 10; //min value: maxClientViewportY + 1 static const int32_t maxClientViewportX = 10...
  4. Flatlander

    [Tutorial] Adding more tiles to game window - Updated 7/6/2018

    I have never used OTX. How similar is it to TFS 1.X? Does it still have a protocolgame.cpp? If yes can you post it here so I can take a look at it?
  5. Flatlander

    For some reason attack speed didn't change

    Should stay 8.6 if you use this ninjalulz repo.
  6. Flatlander

    For some reason attack speed didn't change

    I just checked the Source Code from that and it doesn't match what you gave me for your doAttacking function in Player.cpp. [8.60] The Forgotten Server 1.2 ninjalulz/forgottenserver ninjalulz/forgottenserver if you are going to compile, I would download the newest sources from this distro and...
  7. Flatlander

    For some reason attack speed didn't change

    I have been working on OT Servers for like.... 10+ years? I'm not an official contributor to the TFS Project, but I know my way around the code pretty well, the reason we weren't able to accurately test my solutions to his problem was because he was not compiling correctly. (I'm not amazing at...
  8. Flatlander

    For some reason attack speed didn't change

    In the onAttacking function, it schedules another "creatureCheck" in the scheduler. This is exactly like doing an addEvent. So there are 3 ways onAttacking can be called. Every time your creature thinks (onThink) Every time you, or a nearby creature moves. (onWalk) Scheduled event - repeats...
  9. Flatlander

    For some reason attack speed didn't change

    You cannot use Notepad++ to compile. After saving your changes in Notepad++, you have to "Compile" the server using Visual Studio or another compiler. This will create a brand new TFS.exe file, which will be what you use when running your server.
  10. Flatlander

    For some reason attack speed didn't change

    Weapons.xml "can" have things to do with how attackspeed works. Don't be so fast to be rude to people, he was trying to help. As for your issue, I am at a loss, honestly it should be working even with the earlier code and maybe even your original code. The scheduler either does 50 ms or your...
  11. Flatlander

    For some reason attack speed didn't change

    You do not need to create a new vocation. I think I was reading the function wrong (I thought TFS 1.x has this working right but maybe not) Try this: void Player::doAttacking(uint32_t) { if (lastAttack == 0) { lastAttack = OTSYS_TIME() - getAttackSpeed() - 1; } if...
  12. Flatlander

    For some reason attack speed didn't change

    Try this one more time, if it doesn't work let me know. (I changed one thing) void Player::doAttacking(uint32_t) { if (lastAttack == 0) { lastAttack = OTSYS_TIME() - getAttackSpeed() - 1; } if (hasCondition(CONDITION_PACIFIED)) { return; } if...
  13. Flatlander

    For some reason attack speed didn't change

    Try using this edited version of doAttacking. (It is the newest TFS 1.X version with extra functionality removed) void Player::doAttacking(uint32_t) { if (lastAttack == 0) { lastAttack = OTSYS_TIME() - getAttackSpeed() - 1; } if (hasCondition(CONDITION_PACIFIED)) {...
  14. Flatlander

    For some reason attack speed didn't change

    Awesome! Thank you for posting this code, I will now explain what is happening. In short, I believe you only need to make sure the below scheduler is working correctly. g_scheduler.addEvent(createSchedulerTask(std::max<uint32_t>(SCHEDULER_MINTICKS, getAttackSpeed())...
  15. Flatlander

    For some reason attack speed didn't change

    First, I want to tell you that your post is hard to understand, and you don't give us accurate information. But, no worries, I will help you anyway. Your issue is simple, in TFS Source -> player.cpp, the function doAttacking does not schedule the "next attack" correctly, therefor it waits too...
  16. Flatlander

    Optimizing TFS Pathfinding

    I fixed all the code issues on this thread to match the Pull Request I made to TFS. This is now tested (Thanks to Xagul) and it is 100% working. Mark has expressed some concerns about it may not choosing the "best" path, I asked him to give an example of what could go wrong. Shouldn't be too...
  17. Flatlander

    Monster ViewRange configured in monster.xml files

    I have this code working on my server, which has literally thousands of edits, if you find something is missing you'll have to let me know and i'll update the tutorial.
  18. Flatlander

    [Tutorial Requests] Flatlander Source Code Changes

    Maybe that is true, maybe it is not. I highly doubt whatever "class" you went to taught you every single thing there is to know about C++ or programming. Most of the best Programmers I know, that now work designing stuff at Intel (like my uncle) are self-taught. The thirst for knowledge is the...
  19. Flatlander

    [Tutorial Requests] Flatlander Source Code Changes

    No the repository is not up to date, I honestly dislike Github and stopped using it due to annoyances. If you think you can simply "Learn" C++ or any coding language and just know everything, you have no idea what you are talking about. Programming is a field where you are constantly...
  20. Flatlander

    [Tutorial Requests] Flatlander Source Code Changes

    I actually finished bug-testing and fixing my lighting system Yesterday. I don't think I'll be making a tutorial on it any time soon, it's way too big of a thing for me to do now.
Back
Top