Hey, this might be a stupid question, but I just looked into the code of one thing which I can't tell what it is, but you get the idea here:
static ChatCommand unbanCommandTable[] =
{
{ "ip", 'm', &ChatHandler::HandleIPUnBanCommand, "Deletes an address from the IP ban table: <address>", NULL, 0, 0, 0 },
{ "character", 'b', &ChatHandler::HandleUnBanCharacterCommand, "Unbans character x", NULL, 0, 0, 0 },
{ "account", 'z', &ChatHandler::HandleAccountUnbanCommand, "Unbans account x.", NULL, 0, 0, 0 },
{ NULL, '0', NULL, "", NULL, 0, 0, 0 }
};
There is a reference to function, I mean like I want to make similar system to the my little RPG like a hook system that I can like hook my own function to onCharacterMove or something like that, this is a bit sucky explanation I am sorry, but I guess someone knows what I mean :( I mean that I make a table where the hooks will be stored and the move function runs them from there ?