Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 07/02/2018 in all areas

  1. 1 point
    Thank you very much friend, it works for me using reference of "SendExchangeData ()" !!
  2. 1 point
    Check files for SendExchangeData(), SendExchangeDataX().
  3. 1 point
    This is also the exact reason why we have various sorting algorithm, if we would sort a small list, say consisting of 4 entries, an "insertion" sort would be suitable, but once the list too big, as suggested by your question, perhaps we can use some other algorithm to solve the sorting of the giant list to save cost and time. try "Bubble" sort. In your question above, we try to scale the number of execution by a fixed amount regardless how many entries are in the list. This is how one would try to optimize their programs.
  4. 1 point
    @quad we study the time and cost of executions by using a notation called "O-Notation".
  5. 1 point
    So the point of this thread is plain and simple: provide short, clean and useful functions to replace all those multiple, messy and commented codes in your server files. I did this because there's literally thousands of lines and they repeat themselves, per item, they only change their value. I though of these while cleaning my scripts, like ItemEffect.lua. I can reduce the amount of lines per file, easier to read, modify (add, delete and alter) and maybe throw in there some useful additions. I'll try to keep this thread update whenever I can make new scripts to reduce lines. It'll be in spoiler format, those spoilers will contain some basic information, the variable lines and the function itself. Please note that you'll have to alter ItemInfo.txt in some/most cases, since these scripts literally replace the older functions. If this thread is on the wrong place, please go ahead and move it to where it corresponds, thanks. Please do note that I'm currently doing this without testing them in-game (too lazy to open it right now), but they should work, if not, let me know.
  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
×
×
  • Create New...