LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Tutorials & Other Helpful Information (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=21)
-   -   sh_alias (https://www.lotrointerface.com/forums/showthread.php?t=1799)

Thaodan 05-06-2012 09:27 AM

I writing a plugin that makes real aliases like in sh.
So you can run aliases by / not bye ;
For example: /sh_alias rnd /roll = /rnd.

I have some questions:

I want to save settings in an dictionary that i load as settings.
I want to save the aliases with the folling syntax settings.commands.alias for
the name of the alias and settings.commands.<alias_name>.target for the command the will executed if alias is called.
Is it possible to save code that will exuted in target like:
/sh_alias looking_for im looking for 2 captains, 2 burgler

It is possible to get how many elements settings.commands has in lua?

All times are GMT -5. The time now is 06:56 AM.

vBulletin® - Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.