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

    C++ (or lua) Using 2 weapons will low you defense

    I'm sorry. Instead of actually asking the community "and just to be sure, is it correct", download a common used IDE to actually test and validate your code. It is of course possible to judge out of experience and knowledge whether it should or would work, but it is still no guarantee until...
  2. tokenzz

    Compiling [TFS 1.2] Resist Condition

    What exactly do you want help with? Did you intend this post as a request, or is there anything you don't understand or something that you're struggling to accomplish or have you encountered any issues?
  3. tokenzz

    Can't open corpse/container if there is something under it

    Are you using the latest tfs from github.com/otland/forgottenserver ?
  4. tokenzz

    Shirako ~Mapping Thread~

    Siramix Asterix obelix long time no see
  5. tokenzz

    How can I use isSummon in C++?

    This is possible through Lua. I find it hard to believe that adding something content related like that will benefit the general tfs "code base" since you're not exactly adding any maintainable or reusable code. Therefore, for purposes like these, use Lua.
  6. tokenzz

    Feature TFS 1.0/1/2/3 - otx3 from 7.7 to 10.9x Load Items from Lua

    stop tagging me please I shared my opinion about your effort. I'm not taking a course in computer science, I'm majoring or whatever you call it in computer science.
  7. tokenzz

    Using lua instead of xml

    looks terrible no offense. I'd call this "how to achieve unreadability"
  8. tokenzz

    Bigger damage vs monsters

    https://en.m.wikipedia.org/wiki/Pseudocode @whitevo Check examples and you'll see what people mean with actual Pseudocode when it comes to computer science. Your example is not Pseudocode and it doesn't even fulfill what you said yourself
  9. tokenzz

    Ignore if storage xx

    do you mean that you've been doing Lua scripts for that long? I don't really understand, sorry :P
  10. tokenzz

    Ignore if storage xx

    older tfs engines don't use metamethods, and since this is for sure 1.x you can ignore if player:getStorageValue(81262) ~= nil Why? Well, when is a storagevalue going to become nil? If you can answer this question then I can agree with you. If not, it's just an unnecessary imperative.
  11. tokenzz

    How did you learn to script?

    Here are a few tips: Don't feel ashamed or scared about asking questions. Remember that EVERYONE has been where you are right now. This will make (1) easier. Motivation is very important. Start off with solving easier problems to practice problem solving and advance from that. Use theory to...
  12. tokenzz

    Tibia items game, use the last letter.

    ethno coat
  13. tokenzz

    Tibia items game, use the last letter.

    Depth calcei
  14. tokenzz

    Alpha-Test Part 2 - Multiverse - Released **New Client**

    bit off-topic but please, :rolleyes: @on topic sounds cool, good luck!
  15. tokenzz

    Solved OTX 3.7 [/a talkaction]

    position = player:getClosestFreePosition(position, false) if position.x == 0 then player:sendCancelMessage("You cannot teleport there.") return false end remove this and it should work
  16. tokenzz

    Problems while compiling OTClient

    I think codex posted how to compile using msvc13 as ppl seemed to have issues compiling using msvc15
  17. tokenzz

    parseAreaMap - extract positions from "map" table

    dunno, just got the general impression of sarcasm from his comment "really?". It didn't feel like a question or sense of surprise at all. If it was, I'm sorry for the misunderstanding.
  18. tokenzz

    parseAreaMap - extract positions from "map" table

    I'd say it looks much cleaner without the function calls. But it's just a personal preference I guess. Also, it'd require a little refactoring changing it. Performance-wise it doesn't really matter anyhow I guess since you don't even have to think about performance in terms of Lua scripts like...
  19. tokenzz

    parseAreaMap - extract positions from "map" table

    replace all table.inserts with regular table inserts, e.g: local t = {1, 2, 3} t[#t + 1] = 4 this would improve performance
Back
Top