Thread: sh_alias
View Single Post
  #1  
Unread 05-06-2012, 09:27 AM
Thaodan's Avatar
Thaodan Thaodan is offline
The Undefeated
 
Join Date: Mar 2012
Posts: 8
sh_alias

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?
Reply With Quote