-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incrementado o suporte ao mac_address
- Foi necessário adicionar algumas alterações nos pacotes de comunicação entre os servidores. (não tem nada haver com o cliente) - A Alteração original para implementação do mac_address foi feita por @Megasantos no commit d1ebe6d --- Esta alteração apenas visa compartilhar entre os 3 servers a informação do mac_address para que seja possível criar logs de segurança utilizando o mac_address em todos os 3 servers. -> Funções de NPC agora podem utilizar o comando *getcharmac({<account_id:int>}) Obtém o endereço mac_address do jogador o qual foi invocado o script ou na conta invocada (neste caso é necessário que esteja online, para pegar offline, utilize sql) -> Não achei necessário o uso de parametros como name ou char_id pois já existem outras funções que podem fazer isso. Caso de sucesso no retorno, o conteudo do mac será no formato: "00-00-00-00-00-00" ou embranco (caso seu client não esteja diffado para enviar o pacote do mac) Caso de erro no retorno, o conteudo do mac será: "" e será lançado um alerta no servidor de mapas. Exemplo: set @self_mac$, getcharmac(); set @acc_mac$, getcharmac(2000001); set @acc_mac2$, getcharmac(getcharid(3, "João"));
- Loading branch information
1 parent
fe3941e
commit 51dd5f2
Showing
14 changed files
with
147 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE `loginlog` | ||
ADD COLUMN `mac_address` VARCHAR(18) NULL DEFAULT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.