edited 1×, last 31.08.11 04:00:13 pm
Forum




combining scripts
9 replies



EDIT: lol. few seconds too late

Just add two or more dofile lines in your server.lua file. You can execute up to lots of Lua scripts at the same time.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the

EDIT: You can have unlimit addhooks (Of the same) if they all have a different variable.
edited 1×, last 31.08.11 04:10:29 pm

yeah depends on the scripts.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
addhook command (if hooked functions use the return value).
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the









