OkMuOnline


NowaHosting


Resultados 1 a 1 de 1
  1. #1
    Moderador LABMU's Avatar


    Data de Ingresso
    Jul 2022
    Localização
    Mineiro UAI !
    Posts
    135
    Thanks Thanks Given 
    65
    Thanks Thanks Received 
    1,807
    Thanked in
    113 Posts
    Mentioned
    3 Post(s)
    Humor
    Angelic
    País
    Brazil

    Lógica index Message.wtf e GameServer



    Lógica index Message.wtf e GameServer





    BR :


    • Lógica segue verificando o tamanho total da "categoria" ou "linhas" pois será seu multiplicador.
    • Como verificar isso ? Resposta simples basta abrir seu editor de Message.wtf verificar valor maior do ID da linha na categoria que está com cor verde na imagem logo acima.
    • Lembrando que categoria está em vermelho , ID da linha está em verde e mensagem ou texto está demarcado com cor amarelo na imagem.
    • Nesse caso explicação será baseada no GameServer 1.00.18 como exemplo usarei a categoria e a linha a seguinte mensagem "You have acquired %d exp, %d Zen and %d points additionally."
    • Seguinte mensagem fica em 4 143 60
    • Calculo seria valo da categoria multiplicado por 256 seria máximo de linhas por categoria da versão que estou usando mais a soma do numero ID da linha desejado.
    • Categoria x maximo de linhas + id da linha
    • 4 x 256 + 143 = 1167
    • Ao procurar esse valor de 1167 dentro da source do GameServer você encontrará wsprintf(szNOTIFY_MSG2, lMsg.Get(1167),
    • Seguinte funçãolMsg.Get(1167), envia pacote que puxa mensagem que está dentro do arquivo message.wtf na localização 4 143 60
    • Isso possibilita você poder setar mensagem fixa no proprio GameServer ou mudar estrutura para ler arquivo .txt no lugar do wtf como ja feito em algumas sources postada.



    ES :



    • La lógica sigue comprobando el tamaño total de la "categoría" o "filas", ya que éste será su multiplicador.
    • ¿Cómo comprobarlo? La respuesta es sencilla: abra su editor Message.wtf y compruebe el valor más grande del ID de línea en la categoría que está coloreada en verde en la imagen de arriba.
    • Recordando que la categoría está en rojo, el ID de línea en verde y el mensaje o texto está delimitado con color amarillo en la imagen.
    • En este caso la explicación se basará en GameServer 1.00.18 como ejemplo usaré la categoría y la línea el siguiente mensaje "You have acquired %d exp, %d Zen and %d points additionally."
    • El siguiente mensaje es 4 143 60
    • El cálculo sería el valor de la categoría multiplicado por 256 sería el máximo de líneas por categoría de la versión que estoy utilizando más la suma del número de identificación de línea deseado.
    • Categoría x líneas máx. + ID de línea
    • 4 x 256 + 143 = 1167
    • Buscando este valor de 1167 dentro de la fuente GameServer encontrarás wsprintf(szNOTIFY_MSG2, lMsg.Get(1167),
    • La siguiente función lMsg.Get(1167), envía un paquete que extrae el mensaje que está dentro del archivo message.wtf en la ubicación 4 143 60
    • Esto le permite establecer un mensaje fijo en el GameServer o cambiar la estructura para leer .txt en lugar de wtf como ya se ha hecho en algunas fuentes publicadas.





    EN :


    • Logic follows by checking the total size of the "category" or "rows" as this will be your multiplier.
    • How to check this ? Simple answer just open your Message.wtf editor and check the larger value of the line ID in the category that is colored green on the image above.
    • Remembering that category is in red, line ID is in green and message or text is demarcated with yellow color in the image.
    • In this case explanation will be based on GameServer 1.00.18 as an example I will use the category and the line the following message "You have acquired %d exp, %d Zen and %d points additionally."
    • Following message is 4 143 60
    • Calculation would be category value multiplied by 256 would be maximum lines per category of the version I am using plus the sum of the desired line ID number.
    • Category x max lines + line ID
    • 4 x 256 + 143 = 1167
    • When looking for this value of 1167 inside the GameServer source you will find wsprintf(szNOTIFY_MSG2, lMsg.Get(1167),
    • Next function lMsg.Get(1167), sends packet that pulls message that is inside the file message.wtf at location 4 143 60
    • This allows you to set a fixed message on the GameServer itself or change the structure to read .txt instead of wtf as already done in some sources posted.


    Créditos por Webzen, Ongam Otsugua, Nilo Master, Luiz Rios
    Fonte:https://labmu.com.br/
    Last edited by LABMU; 02-03-2023 at 10:40 PM.

    "Quem compartilha conhecimento, torna imaginação em realidade - Ongam Otsugua "


  2. The Following 7 Users Say Thank You to LABMU For This Useful Post:


Tags para este Tópico

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • You may not post Resposta(s)
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •