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

OpenTibia Sublime Text 3 - Lua TFS Autocomplete

Syntax

Developer
Joined
Oct 10, 2007
Messages
2,890
Reaction score
458
Location
Texas
Hello everyone, I generated this autocomplete file from our TFS 1.2 sources.
The only functions missing are pure lua functions (adding them soon). There's a few functions included that aren't in TFS by default, just ignore or delete them.

Feel free to make a revision, fork, or just star it :)
Lua functions for The Forgotten Server. Autocomplete file for Sublime Text 3. (https://gist.github.com/Cavitt/a77d50d612469652a7ad)

Save the file to: %appdata%\Sublime Text 3\Packages\User\tfs-lua.sublime-completions

Sources that I used to generate these files:
 
Last edited by a moderator:
Considering I'm just getting around to forcing myself to updating to latest client/tfs 1.2 - this helps out a lot, thank you!
 
I hope this one is better than the one I already have, Autocomplete with metatables is just an awful thing...

I don't know why I can't edit my post, but I forgot to say thanks :oops:
 
Last edited by a moderator:
I hope this one is better than the one I already have, Autocomplete with metatables is just an awful thing...

I don't know why I can't edit my post, but I forgot to say thanks :oops:

Hah no problem, this one works great with metatables, I included the class name in the trigger so you can type "player" to see all the functions for the player class.
I've also included parameters with tab stops which I've never seen in another autocomplete file here.
That was mainly why I made this list, I kept forgetting the parameters for all these damn functions :D
 
I think it should be possible, but I do not understand how. Maybe you know how to add your autocomplete things for ZeroBrane Studio?
 
Hah no problem, this one works great with metatables, I included the class name in the trigger so you can type "player" to see all the functions for the player class.
I've also included parameters with tab stops which I've never seen in another autocomplete file here.
That was mainly why I made this list, I kept forgetting the parameters for all these damn functions :D
I still don't get used to, but is an awesome contribution :rolleyes:
 
sweet! thanks for this! Its put me back into the mood to finish some projects ;)
 
Thanks for the contribution! I am using Sublime 3 and will definitly try it at some day :)
 
Will archieve this in the OTLand Cloud :)
 
Hey @Syntax
I have made some changes: https://gist.github.com/felzan/16f636644e421ca2f687
-removed duplicated snippets
-added almost everything functions from libs
-last param at new line
-alphabetical order
I have added your edited version to the OTLand Cloud :)
While I would always recommend people to check on GitHub first (in order to get the latest commit), I thought it wouldn't be bad keeping it in the cloud. Just in case one of the GitHub links breaks, or is discontinued. Afterall the OTLand Cloud is meant to be an OT-file Archieve.

http://***************/?dl=384e8b2a9ef753ffe32e4842911d2037
 
Back
Top