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

    AAC If I wanted to make my own website...

    I would have to learn php first, right? In order to link the website with mySQL database, what would I need to learn? Do you guys have any good books or courses that would teach me how to do this? I am a fast learner so I think I can handle. I do have background in programming, but only in C...
  2. R

    Most viable way to handle % bonus to damage (read text)

    I'm currently working on a strategized PvP/PvE project, and I want to encourage players to rely more on elemental resistances, and I also want to implement a bonus % to x type of damage system, where X would be ice, fire, death, holy, energy, earth, melee and distance. I was wondering if I...
  3. R

    C++ Wand damage problem

    EDIT: nevermind, I should have written > minChange and >maxChange, but my dumbass brain wrote >0 int32_t WeaponWand::getWeaponDamage(const Player* player, const Creature*, const Item*, bool maxDamage /*= false*/) const { if (maxDamage) { return -maxChange; } return...
  4. R

    C++ True Dual Wielding for TFS 1.2

    The author said the script works for 1.2, but I get errors and the author is inactive in otland I think (haven't logged in since last year) This is the link to the system: Feature - True dual wielding for TFS 1.x I am using a pure TFS 1.2 copy from otland github. I downloaded both the .patch...
  5. R

    C++ how to give "array -1" a value

    Simple question, I have this: double percentMax[4] = {0.25, 0.40, 0.80, 1.50}; and I want to make a uniform_random(x, y) where: x = percentMax[i-1] y = percentMax[ii] <- I put double i here otherwise the forum would interpret it as italic but If my i = 0, there is no i = -1 since 0 is the...
  6. R

    AAC Changing "localhost" domain

    My question is a little stupid but I couldn't find any tutorials on how to do this... I can fully use the AAC I downloaded (myaac v.0.2.3), and my ot server already has an ip (xxxxx.servegame.com). However I can only access my website via localhost, so that means only I can access it. How can I...
  7. R

    C++ cmath or not? (TFS 1.2)

    Is this library included in the tfs 1.2 source? I ask because I need to use a round function... If this library is not included, then what kind of function can I use to round values to the nearest integer?
  8. R

    C++ rand()% function

    EDIT: To generate random values use the uniform_random function in tools.h (remember to include it in the code you are working on) As some of you may know, the rand()% function in c++ is not truly random. It repeats values and to change this you need to include time.h and srand(time(0));, but...
  9. R

    C++ need help with some "get" functions in C++ (TFS 1.2)

    EDIT: Forgot to explain the "get" functions I want lol. Every time a new item is created it has random stats, it doesn't matter if it is via /i command, monster drops, quests, trade or etc... So would it be possible to get the origin square of the item (the chest if it is a quest, the monster if...
  10. R

    C++ Sending floating text via source

    With the help of xeraphus I managed to get a code where items have x chance to be created with extra stats. However sometimes this chance can be pretty low, and it would suck for players lool at each item they drop in search of enhanced items. Is there any way I could send a magic effect to the...
  11. R

    C++ "readXML" on TFS 1.2

    EDIT: SOLVED, solution can be found in the Best Answer by Xeraphus (Post #10) Guys, I am creating a new system based on: Feature - Random Attributes, but I want to make it for TFS 1.2 First post was a mess so I edited everything. Basically what I am trying to do is add new attributes on TFS...
  12. R

    Compiling Tfs 1.2 or 1.3 - and why?

    I would like answers based on flexibility - available lua functions without having to do a lot of source edit Stability - 1.3 is still being updated right? Does that mean 1.2 is in its "perfect" form? And that's it! Please try to be detailed about your answer, I managed to compile both sources...
  13. R

    Choosing TFS 1.3 tibia version

    After a long time of visual studio uninstall and updates and etc etc, I finally managed to compile the 1.3 TFS. Then I spent a little longer configuring xampp and mysql and etc and I finally managed to open the .exe and run the server (yay me!) But how can I choose which client version will be...
  14. R

    Based on the systems I want to use, what tfs would be better?

    Title is pretty self explainable. I am using tfs 0.4 3884 currently (tibia 8.6) and it is pretty stable. I already added some systems succesfully, like: Random Item Attributes System Perfect Upgrade System Mutation System (i created this one myself) Attack speed system (fist fighting via source)...
  15. R

    Incompatibility between those two systems

    System number 1 = Feature - Random Attributes System number 2 = Perfect Upgrade System The random attributes is perfect, I tested it and it works like a charm. The upgrade system also works, but only on items that did not suffer from the random attributes changes. For instance: I edited the...
  16. R

    Compiling Warning about db after compiling

    EDIT: I think the sqlite corrected the error by itself, as the second time I opened the .exe the error was gone. So I compiled a tfs 0.4 3884 rev, and everything i needed was there except a standard s3db file so I used one from a 3777 rev. I'm not sure if this is the cause of my issue but when...
  17. R

    How to correctly display exp and skills?

    What do I have to edit in order to correctly show the player's current xp and skills? If I am not mistaken, the exp stops increasing if player reaches 2 billion and something, and the skills stop showing once player reaches skill 244. Is there any way to show exp up to 16566949800 (level 1000)...
  18. R

    Lua everything works perfectly, except...

    EDIT: Solved - The solution was simply adding a condition that checks if the player storage value is equal to 1 or 5 (because those do not have outfits in the transformation) and setting the outfit parameters inside those conditions. If you don't do this, the value for un_table.look will glitch...
  19. R

    Lua Tables (where to insert them)

    I am working on a transformation system and to make my scripts less visually poluted I decided to use tables. However, I don't know where I should create them so that I can access them via any .lua file. Should I create a separate .lua file in the data/libs folder or should I put the new table...
  20. R

    Lua How to make something last x seconds

    So I am testing this simple script because I have a future project in mind that will use a similar code. Player uses a talkaction and receives 50 health. The action has 5 seconds cooldown as you can see below. This script is working fine btw, I tested it and found no issues. local ex_storage =...
Back
Top