• 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!

Recent content by Akela

  1. A

    TFS 0.X talkaction to show the date you can do the quest again

    FYI: the error is essentially just a typo. Line 4 of the error message is telling you that the context (q.name) implies variable "q" can be indexed (like a table), but that it's a number, which can't be indexed. The actual code that pops is at line 13 of the first script: "print(q.name)".
  2. A

    TFS 0.X talkaction to show the date you can do the quest again

    Based on reading a Lua page on the web, I expected that print(tablename) would print something like "Table:9B8A7F6E" (i.e. a string version of the table's address in Lua's internal storage). This, if it worked, would be a compact way to see if the table (which, as I see it, is your single most...
  3. A

    TFS 0.X talkaction to show the date you can do the quest again

    Lucky timing :) I just finished work ( I'm on CET) You need a "print zexus_quest_list" directly after this: zexus_quest_list = { -- rook [8000] = { name = "Sabre Rook", item = 2385, lvl = 1, time = 15 * mins}, [8001] = { name = "Doublet Rook", item = 2485, lvl = 2, time = 30 *...
  4. A

    TFS 0.X talkaction to show the date you can do the quest again

    This is a situation where you could have done a more comprehensive test "single pass" test, but it makes sense to focus on the big problem for now: By using "quest_list" you've greatly reduced the possibility that something is unsetting "quests". Though for next time, add something to the...
  5. A

    TFS 0.X talkaction to show the date you can do the quest again

    Best guess: something else is using those (poorly named) globals. Easy to test.
  6. A

    Lua TFS 1.2 Task system issues

    Your control logic is off. Debugging this kind of thing is a PITA. If you coded it yourself, flip the logic starting at line 48 of the second script ("local isComplete = true") so you start with a "not complete" boolean instead, and test for completion in the loop. This will ripple through to...
  7. A

    Send a message if an effect appears on the screen.

    If the client-side error is due to playing two sound files at once, it should be possible to "single-thread" them using addEvent(). Or client-side scripting if that's possible? Server-side scripting would be a bit sensitive to variations in client-server network latency.
  8. A

    Send a message if an effect appears on the screen.

    A suggestion: Don't expect the sounds to work nicely if you start a second one in the middle of one that's currently being played. Test ASAP to see what happens.
  9. A

    2 tiles to remove stone issue

    The code structure is a bit strange. Start here: Print "bigcrystal" and "smallcrystal" immediately after they are set Print "item.uid" immediately before: if item.uid == 64120 then Print "bigcrystal" and "smallcrystal" immediately following the code above BTW: In general, if you don't get an...
  10. A

    Linux firewall blocking coneection (sudo ufw enable)

    If your access is via SSH, and you're using ufu on Ubuntu (or probably other Linuxes), probably port 22 is blocked. Link: https://www.ubuntupit.com/how-to-configure-firewall-with-ufw-on-ubuntu-linux/ ufu command that will help with port 22 (or whatever port is the problem - just substitute for...
  11. A

    Try/Catch on lua?

    I'm not a Lua coder, but it's an interesting question, and may be relevant for me later so I did a quick search. These are interesting: https://stackoverflow.com/questions/8696950/how-to-simulate-try-finally-or-try-except-in-languages-that-dont-have-them...
  12. A

    TFS 0.X DDOS players protection

    Is this a real DDOS (IP layer attack), or something internal to OT? If it's a real one, why do the checking in-game? It might be easier to look for a network-centric tool instead. If something exists, it would be independent of the OT version, which would be nice.
  13. A

    Lua Is it possible to interact with the map and/or cpp pathing logic in Lua?

    Hi Xikini Do you have the code for doSteerCreature()? It doesn't have to work on current versions - I just want to get a feel for what's possible. FWIW I've started design work (core objects, ideas for the obvious issues, etc). You're right about waypoints, paths, etc. I'll need to...
  14. A

    TFS 1.X+ Problem "The Elemental Spheres Quest"

    @Kownikuzyt The original developer of that quest used a coding style which makes it resistant to a quick analysis: There's a fair bit of code, and it's spread around, but there are no comments in the code, and you haven't shared any external documentation that would tie it together for us It...
  15. A

    TFS 1.X+ Problem "The Elemental Spheres Quest"

    Have you done a text search through all your Lua scripts for "Storage.ElementalSphere.MachineGemCount"? I agree 100% with Xikini - there's almost certainly something else that interacts with that storage.
Back
Top