Search results

  1. Stigma

    OtLand New Staff Members

    Congratulations to all.
  2. Stigma

    TFS 1.X+ Whats the difference addFocus and RealeseFocus?

    The script will work fine regardless I believe, but when you remove a value from a table the memory stays allocated, but it's marked to be freed up so something else can use it next garbage collection cycle. Otherwise the table will just get bigger and bigger for no reason (this will still...
  3. Stigma

    TFS 1.X+ Whats the difference addFocus and RealeseFocus?

    They''re both callback functions, meaning they get called when an event is triggered (in this case, onAddFocus is called when the NPC adds focus to a player, go figure what onReleaseFocus does). In this case, it just initializes a few values to 0, and removes the cid from each table when focus...
  4. Stigma

    The best VIP system ever! [Action/Movevent/Globalevent]

    https://otland.net/threads/vip-system-the-forgotten-server-1-0.224910/ ?
  5. Stigma

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Works fine for me 🤔 Add print('onThink: '.. interval) to make sure it's executing at the right interval, if not then your sources are probably outdated.
  6. Stigma

    TFS version

    https://otland.net/threads/documenting-luascript-cpp-functions.260927/ Or you can check all of the functions yourself in luascript.cpp in your source files.
  7. Stigma

    TFS version

    What do you mean?
  8. Stigma

    New: What song are you listening to thread

  9. Stigma

    TFS version

    I've actually been in the process of writing a gitbook to try teaching Lua to people who are new to programming in general: Introduction (https://stigmax.gitbook.io/lua-guide/) It is by no means anywhere near done, all I've got in the past 3 days is an explanation of each type & introductions to...
  10. Stigma

    TFS version

    Account type should be 5, not 3.
  11. Stigma

    TFS 1.X+ [1.3] /ghost mode, when login he loose ghost mode??

    Edit ghost talkaction to add storage value (1 for true, -1 for false) depending whether the user is toggling ghost on/off (1/-1 respectively). Check for that storage value in login.lua, if the value is 1, toggle ghost mode on, otherwise if it's -1 don't do anything.
  12. Stigma

    TFS 1.X+ [tfs 1.3] stages.xml dont accept (dotted numbers)

    It's not worth the effort.
  13. Stigma

    Looking for a Frag Remover Script

    Might error with that db query because of the BBCode tags.
  14. Stigma

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    You're confusing weapons.xml with items.xml, Weapon is for a weapon that would normally go into weapons.xml & has support for scripts.
  15. Stigma

    TFS 1.X+ [tfs 1.3] stages.xml dont accept (dotted numbers)

    No. You'll very rarely have to worry about performance in Lua.
  16. Stigma

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    For future reference: https://github.com/otland/forgottenserver/blob/7f8e92777da8a73fd64348d98333d4eca2441bc3/src/luascript.cpp#L2896-L2905
  17. Stigma

    TFS 1.X+ [tfs 1.3] stages.xml dont accept (dotted numbers)

    It's not a bug, it's just read in as an integer. It would be more work to change all of that jazz in source to get it to support floating point numbers. Just use this to implement stages in lua: Move experience stages to Lua by ranisalt · Pull Request #1642 · otland/forgottenserver...
  18. Stigma

    Condition

    Post your entire weapons.xml here.
  19. Stigma

    Condition

    Use event="script" value="magmabow.lua", not script="magmabow.lua".
Top