http://www.host-a.net/u/MegaScience/Tool_Fill_Can.zipI have just spent a few hours going over the Fillcan's code and optimizing it. I have added the RTB Hook to set Fillcan limit; combined the color, colorFX, and shapeFX commands into one; added a %type to lists instead of rechecking the type; and above all reformatted it to be more pleasant to the eye. I have tested it, and it works as far as filling bricks, vehicles, and people goes. However, I am unsure if it works completely, which is why I am posting it here for additional modification where needed by another user. Once whoever decides to finish up corrections to this is finished, perhaps Ephialtes could submit this as an official Fillcan update. Any opinions?
They may take credit for whatever work is done, as well. Remember that this is Zor's Mod, upgraded by Hit man, and now I have modified it further. This could be considered an uncoordinated group project at this point.
Edit: 12:55 AM EST, 11/10/11: Fixed random faces. Forgot to change some variables, so it was setting default. Should work now.
Edit2: I've been told my version seems to be less laggy. I did reduce a few oddities in the coding, not many. Could anyone confirm if there is any noticeable reduction in lag? Also, I have not modified the brick limit code pertaining to admins and super admins. This means they always fill up to 128000 bricks. Would it be better to apply more hooks for admins and super admins separately, and then give the host the 128000 limit instead?
Edit3: 1:19 AM EST, 11/11/11: Fixed and added more RTB Pref Hooks for Hosts, Super Admins, Admins, and Normal Players. Having the ability to set how many bricks are filled even for the Host is meant to control just how much the Host wants the server to lag at one time when using it. Only the host can modify Super Admin and Host limits. I'm borrowing RTB's method for identifying the host.