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

    Send a message if an effect appears on the screen.

    If we knew what you wanted to accomplish you would probably get better advice. I'm not good at source edits either but I figured out how this works on TFS 1.3 and it looks to be pretty similar on 0.4 as well, just the constant names are different. I'm pretty sure this is not what you really...
  2. forgee

    Furniture Package working outside houses tiles

    Good point. I didn't look too closely at that. Proof it's past my bedtime. :]
  3. forgee

    Furniture Package working outside houses tiles

    Is there a Github repository with the source of the server you're using? I had a look at this https://github.com/peonso/OTHire/blob/master/source/luascript.cpp#L4534. I don't know if that is the same as what you have, but it looks like it returns false if the tile is not found at all, and 0 if...
  4. forgee

    !online

    Staff members should see other staff members but players should not see staff. I did not test it though. local maxPlayersPerMessage = 10 function onSay(player, words, param) local hasAccess = player:getGroup():getAccess() local players = Game.getPlayers() local onlineList = {}...
  5. forgee

    TFS 1.X+ Block use item on items with decay like aol, life ring, soft boots

    I don't know why I thought getCharges() would return -1, it seems to return 0. I updated my post above, should work now assuming the stats lib checks for stackable items etc.
  6. forgee

    Name monsters from lower to higher string

    If you just need to rename all files in a folder this will do it, however it will only change the first letter, so demon skeleton.xml becomes Demon skeleton.xml. If you prefer Demon Skeleton.Xml, replace name.capitalize() with name.title(). Put the script in the monsters folder and run it, but...
  7. forgee

    TFS 1.X+ Block use item on items with decay like aol, life ring, soft boots

    I assumed stats_onUse handled most of that and we just needed to filter out a few additional (overlooked?) item types that we didn't want to be enchantable.
  8. forgee

    Name monsters from lower to higher string

    You would have to provide more information. Post whatever script you want to use it in. It's really straight forward, just pass the name to ucwords, ucwords('demon skeleton') returns 'Demon Skeleton'.
  9. forgee

    TFS 1.X+ Block use item on items with decay like aol, life ring, soft boots

    Try this. Not sure what else might need to be checked. function onUse(player, item, fromPosition, itemEx, toPosition) if not itemEx or not itemEx:isItem() then return false end local it = itemEx:getType() if it:getDecayId() > 0 or it:getTransformEquipId() > 0 or it:getCharges()...
  10. forgee

    Name monsters from lower to higher string

    $titleCase = ucwords($monsterName) https://www.php.net/manual/en/function.ucwords.php
  11. forgee

    Lua TFS 1.2 10.98 infinite hp, nobody can kill me

    The post @Evil Puncker linked above explains how to read the console when it closes right away like yours. Run the server in a console and the output stays on the screen. You need to copy/rename config.lua.dist to config.lua (not .ini). Then you need to enter your MySQL username, database and...
  12. forgee

    Otserv Online Mysql Error

    Don't use your global ip address to connect to MySQL. mysqlHost = "127.0.0.1"
  13. forgee

    Compiling Problem with tfs compilation

    The short answer is that you need Debian 9 or later.
  14. forgee

    Compiling How to fix that? [TFS 0.4]

    As I said, I'm not good at c++:confused: Try this: Container* container = ammoItem->getContainer() if (container && container->getName() == "Quiver") { for(ContainerIterator iter = container->begin(), end = container->end(); iter != end; ++iter) { if (item->getAmmoType() ==...
  15. forgee

    Compiling How to fix that? [TFS 0.4]

    I'm not good at c++ but looking at the source changes you linked to I would try this. After this line here (before the for-loop), add this: if (container->getName() != "Quiver") { return NULL; }
  16. forgee

    Problem with first steps of programming

    Your onLogin() function needs to return true. Login events does not need to be registered in login.lua. Experience change is in data/events/scripts/player.lua. Just add your code in the exisiting Player:onGainExperience() method.
  17. forgee

    Lua [TFS 1.3] Help with script logic

    Change this line if not house or house and house:getDoorIdByPosition(toPosition) > 0 then. To if not house or house and house:getDoorIdByPosition(toPosition) ~= nil then. As getDoorIdByPosition returns nil and not a number if no door is found.
  18. forgee

    What TFS should be used for 8.6 server?

    https://otland.net/threads/8-60-latest-forgottenserver-1-3-clean-downport.263472/
  19. forgee

    [TFS 1.3] Spell cooldown. I am exhausted

    I don't think 8.6 uses groupcooldown, which is probably why you didn't have it in spells.xml to begin with.
  20. forgee

    [TFS 1.3] Spell cooldown. I am exhausted

    It works fine on my end. With cooldown = "10000" and groupcooldown = "1000" I can use the same spell only every 10 seconds, but I can use other spells from the same group after 1 second. So no, I have no idea. Make sure your server is up to date with otland/forgottenserver...
Back
Top