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

    Using lua instead of xml

    You shouldn't even make API changes to older versions, it's not worth it. Just work with the bleeding edge from GitHub.
  2. Lordfire

    Solved Healing Spell Help

    Try returning formula values negated and swapped. return -max, -min That way they will heal instead of hit and will still be in the correct order.
  3. Lordfire

    MYSQL ERROR IP

    It probably won't, but you can try searching for every other query that uses player->getName() and guarantee it is surrounded with escapeString
  4. Lordfire

    MYSQL ERROR IP

    @Zainox While I couldn't find it on my sources, search for UPDATE `players` SET` ip` = (exactly this string) and replace the player name (it will probably be something like WHERE name = '" << player->getName() << "';) with db.escapeString, e.g. UPDATE `players` SET `ip` = '" << player->lastIP <<...
  5. Lordfire

    MYSQL ERROR IP

    Do you have access to the source code? Let's hope no one creates a character named "Daniel';drop table players"
  6. Lordfire

    Feature [TFS 1.2] Load Vocations in Lua or XML (Optional from Config)

    I personally wouldn't care for choosing between XML and Lua. Either I apply this patch and fuck XML or I don't even care for it. Lua is much better as you could have functions instead of plain values, e.g. if you want a player to get 10 extra cap every 5 levels you could use gaincap =...
  7. Lordfire

    Existem BR's?

    huashuashuas moio entao
  8. Lordfire

    Existem BR's?

    cara, o server no brasil mais barato que eu achei foi de 60 reais sendo que eu consigo o mesmo servidor nos EUA por 10 dólares, metade do preço basicamente. se for pra abrir um mapa maior, tipo um global, ai vai pelo menos 100 reais de servidor sendo que na ovh um server de 22 dólares já dá e...
  9. Lordfire

    Existem BR's?

    bumpando depois de 6 meses mas o post merece nao tem como fazer servidor no brasil porque existe um custo absurdo, o host mais barato que eu conheço é o da amazon e no brasil custa pelo menos 4x o preço do server nos eua, e o motivo pra isso todo mundo sabe, né? eu vou tentar alguma coisa com o...
  10. Lordfire

    Lua fast attack in only two wands/rods

    Yes, but you'll need a custom script.
  11. Lordfire

    Lua fast attack in only two wands/rods

    You'll need to set the new attackspeed with an onEquip/onDeEquip moveevent.
  12. Lordfire

    [TFS 1.1] Disable Loot message for specific monsters

    Yup, right here: https://github.com/ranisalt/forgottenserver/blob/master/src/monsters.cpp#L146-L165 Put creature names to an array/list, check if it's there, if yes do not send the message.
  13. Lordfire

    Lua Please someone explains raids.xml to me (in detail)

    No, the server will count 69 days from start and then execute your raid (considering the margin stuff), but if you close the server prior to the raid happening it will never run. I have patched the most recent version of TFS to have Lua-scripted raids instead of that XML file, check it...
  14. Lordfire

    How to use AND - && xml?

    Also, what distro are you using? TFS 1.x has hugely different configuration syntax.
  15. Lordfire

    How to use AND - && xml?

    Upon login, if player has storage 666 set and storage 40001 set, then set storage X to 1. Now on outfits XML use storage X instead.
  16. Lordfire

    How to use AND - && xml?

    No. And it doesn't make sense.
  17. Lordfire

    How to use AND - && xml?

    That's what storages are for.
  18. Lordfire

    How to use AND - && xml?

    You don't. Why would you want it anyways? Just internally only set that storage value when both conditions are met.
  19. Lordfire

    addEvent interval ignored

    First of all it will never work, as you are executing the function and not passing it as a parameter. Try that: addEvent(doCreatureSay, i, cid, "hello",19)
  20. Lordfire

    Nginx vs Apache

    Nginx is much more modern, lightweight and easier to configure than Apache. I used both and I just can't go back to Apache anymore.
Back
Top