Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Translation & corrections #35

Open
wants to merge 107 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
8170cf3
Create README.md
salesprendes Dec 11, 2018
a0da8bc
Merge branch 'master' of https://github.com/salesprendes/Bot-Dofus-1.…
salesprendes Dec 14, 2018
02496ba
Update README.md
salesprendes Dec 14, 2018
9aa00bc
Update README.md
salesprendes Dec 16, 2018
33fab46
pathfinding
salesprendes Dec 16, 2018
e990404
.
salesprendes Dec 16, 2018
b83be55
refactoring mapa y celdas
salesprendes Dec 16, 2018
445a1a9
.
salesprendes Dec 16, 2018
7bced15
.
salesprendes Dec 17, 2018
f3c14a3
.
salesprendes Dec 17, 2018
ce5eabb
Update README.md
salesprendes Dec 17, 2018
4153901
scripts (movimiento), movimiento + tiempo de espera mejorado
salesprendes Dec 18, 2018
316082b
Merge branch 'master' of https://github.com/salesprendes/Bot-Dofus-1.…
salesprendes Dec 18, 2018
d7ea804
.
salesprendes Dec 18, 2018
e7cd603
yeah
salesprendes Dec 19, 2018
90bb113
Update README.md
salesprendes Dec 19, 2018
a537637
.
salesprendes Dec 21, 2018
fa96b19
Merge branch 'master' of https://github.com/salesprendes/Bot-Dofus-1.…
salesprendes Dec 21, 2018
df9456c
Fix -> System.ObjectDisposedException: Cannot access a disposed object
salesprendes Dec 21, 2018
2cfc4fe
.
salesprendes Dec 22, 2018
041290b
pathfinding refactoring
salesprendes Dec 23, 2018
eef05e3
movimientos entre mapas esquiva monstruos
salesprendes Dec 23, 2018
79641a8
eficiencia pathfinding
salesprendes Dec 23, 2018
4454037
.
salesprendes Dec 24, 2018
f51af53
comienzo de las peleas
salesprendes Dec 25, 2018
a645aa7
peleas
salesprendes Dec 25, 2018
7742ebb
.
salesprendes Dec 25, 2018
2d68565
.
salesprendes Dec 26, 2018
da08f51
actualización peleas
salesprendes Dec 30, 2018
b8335e0
.
salesprendes Jan 9, 2019
ac62996
.
salesprendes Mar 23, 2019
2dbf699
actualizado
salesprendes Apr 24, 2019
1670a71
actualizado
salesprendes Apr 24, 2019
6cef60a
Actualización
salesprendes May 11, 2019
8166c10
.
salesprendes May 11, 2019
6abfb4d
pathfinding mejora
salesprendes May 11, 2019
3408a8c
Images
salesprendes May 11, 2019
67c3eac
.
salesprendes May 11, 2019
d96befb
Update README.md
salesprendes May 11, 2019
693de68
mejora
salesprendes May 11, 2019
8b7133d
.
salesprendes May 11, 2019
f048279
.
salesprendes May 12, 2019
50a5231
Antibot Recoleccion
salesprendes May 12, 2019
675b440
celdas teleport!
salesprendes May 12, 2019
ccda194
mejora
salesprendes May 13, 2019
553e99f
pescador fix
salesprendes May 13, 2019
8e109cc
pathfinder peleas
salesprendes May 15, 2019
ed06cdd
mejora rendimiento
salesprendes May 17, 2019
aad6312
todo
salesprendes May 17, 2019
5b6aed5
diferentes mejoras
salesprendes May 18, 2019
faef6fc
Refactor movimientos-recoleccion
salesprendes May 19, 2019
4e2846c
updated
salesprendes May 28, 2019
895cca6
.
salesprendes Jun 1, 2019
394aeb8
.
salesprendes Jun 1, 2019
5283b0d
update
salesprendes Jun 2, 2019
44843c7
fast
salesprendes Jun 10, 2019
818278d
.
salesprendes Jun 11, 2019
78db367
fack
salesprendes Jun 14, 2019
4c6d2e2
correcion datos hechizos
salesprendes Jun 15, 2019
611d86b
.
salesprendes Jun 15, 2019
a5b67d4
.
salesprendes Jun 16, 2019
280fe72
.
salesprendes Jun 17, 2019
546c9d4
awuyoki
salesprendes Jun 18, 2019
bee931f
.
salesprendes Jun 27, 2019
5cec42e
.
salesprendes Jun 30, 2019
cb192d7
.
salesprendes Jun 30, 2019
00a1a34
.
salesprendes Jun 30, 2019
6e59c3d
Regeneración (sentado)
salesprendes Jun 30, 2019
39af2a5
.
salesprendes Jun 30, 2019
8aec154
.
salesprendes Jul 1, 2019
c4f2b16
.
salesprendes Jul 3, 2019
7e78f28
.
salesprendes Jul 9, 2019
3fbb4a8
.
salesprendes Jul 9, 2019
cfd7b78
.
salesprendes Jul 11, 2019
0c8ed20
Add .gitignore
Dyshay Oct 17, 2019
554e181
add .gitignore
Dyshay Oct 17, 2019
4f016ee
Update README.md
Dyshay Oct 17, 2019
27dad45
Update label to french
Dyshay Oct 17, 2019
e8bb869
Update of UI Translation
Dyshay Oct 17, 2019
a42d992
Starting translate of message displaying in the console
Dyshay Oct 17, 2019
2191045
Finish Frame translation and add 1.30 version
Dyshay Oct 17, 2019
6e616cb
Continue the translation
Dyshay Oct 17, 2019
3cdb2e6
Finish translate of display in console
Dyshay Oct 17, 2019
758e16f
Merge pull request #1 from Dyshay/froms-translation
Dyshay Oct 17, 2019
2179085
Update of named function for lua script
Dyshay Oct 17, 2019
b149014
Merge pull request #2 from Dyshay/froms-translation
Dyshay Oct 17, 2019
70895b2
Update gitignore
Dyshay Oct 17, 2019
385bb6e
Update the dev from master
Dyshay Oct 17, 2019
2278efa
Merge pull request #3 from Dyshay/dev
Dyshay Oct 18, 2019
ab900de
coordinated implementation in the script
Dyshay Oct 18, 2019
d7a4e7a
Fix the change map
Dyshay Oct 18, 2019
81e6840
Update the code for coordinate
Dyshay Oct 18, 2019
f4be31b
Fix the ping value
Dyshay Oct 18, 2019
3d05746
Update the display message to french with good server name
Dyshay Oct 18, 2019
1510b84
Test Github
Dyshay Oct 18, 2019
779b0cf
Remove blank space
Dyshay Oct 18, 2019
817bda0
Remove regex pattern
Dyshay Oct 18, 2019
ee0e17d
Upstream branch
Dyshay Oct 18, 2019
dfe6b77
Use only direction for search a way
Dyshay Oct 18, 2019
dcdd8e7
add unkow (value) received from server ?
Dyshay Oct 18, 2019
5d269b6
Update logique for find teleport cell
Dyshay Oct 19, 2019
1656761
Merge pull request #9 from Dyshay/update-move
Dyshay Oct 19, 2019
707a847
Set theme jekyll-theme-slate
Dyshay Oct 21, 2019
113cdaa
Fixing Algathe and add Issering in server list
Dyshay Oct 22, 2019
31d68e0
Merge pull request #34 from Dyshay/fix-server
Dyshay Oct 22, 2019
d5716e0
UI Translation & corrections
Undefined3301 Oct 23, 2019
20e918d
Update UI_Inventario.cs
Undefined3301 Oct 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

/.vs/Bot_Dofus_1.29.1/v16
/bin/Debug
/obj/Debug
/bin
4 changes: 2 additions & 2 deletions App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>
</configuration>
352 changes: 278 additions & 74 deletions Bot_Dofus_1.29.1.csproj

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Bot_Dofus_1.29.1.sln.DotSettings.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNotificationDisabled/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Method/@EntryIndexedValue">&lt;Policy Inspect="False" Prefix="" Suffix="" Style="aaBb_AaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Parameters/@EntryIndexedValue">&lt;Policy Inspect="False" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Locals/@EntryIndexedValue">&lt;Policy Inspect="False" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=TypesAndNamespaces/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=EnumMember/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=PublicFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="aaBb_aaBb" /&gt;&lt;/Policy&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=PrivateInstanceFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb_aaBb"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="aaBb" /&gt;&lt;/Policy&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Property/@EntryIndexedValue">&lt;Policy Inspect="False" Prefix="" Suffix="" Style="aaBb"&gt;&lt;ExtraRule Prefix="" Suffix="" Style="aaBb_aaBb" /&gt;&lt;/Policy&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Event/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb_aaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Interfaces/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=PrivateConstants/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /&gt;</s:String>

<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNamingAutoDetectionCompleted/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>
70 changes: 70 additions & 0 deletions Comun/Frames/Autentificacion/AutentificacionLoginFrame.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
using Bot_Dofus_1._29._1.Comun.Frames.Transporte;
using Bot_Dofus_1._29._1.Comun.Network;
using System.Text;

/*
Este archivo es parte del proyecto BotDofus_1.29.1

BotDofus_1.29.1 Copyright (C) 2019 Alvaro Prendes — Todos los derechos reservados.
Creado por Alvaro Prendes
web: http://www.salesprendes.com
*/

namespace Bot_Dofus_1._29._1.Comun.Frames.Autentificacion
{
class AutentificacionLogin : Frame
{
[PaqueteAtributo("AlEf")]
public void get_Error_Datos(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("LOGIN", "Connexion rejetée. Nom de compte ou mot de passe incorrect.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("AlEa")]
public void get_Error_Ya_Conectado(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("LOGIN", "Déjà connecté. Essayez encore une fois.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("AlEv")]
public void get_Error_Version(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("LOGIN", "La version %1 de Dofus que vous avez installée n'est pas compatible avec ce serveur. Pour jouer, installez la version %2. Le client DOFUS sera fermé.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("AlEb")]
public void get_Error_Baneado(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("LOGIN", "Connexion rejetée. Votre compte a été banni.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("AlEd")]
public void get_Error_Conectado(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("LOGIN", "Ce compte est déjà connecté à un serveur de jeu. Veuillez réessayer.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("AlEk")]
public void get_Error_Baneado_Tiempo(ClienteTcp cliente, string paquete)
{
string[] informacion_ban = paquete.Substring(3).Split('|');
int dias = int.Parse(informacion_ban[0].Substring(1)), horas = int.Parse(informacion_ban[1]), minutos = int.Parse(informacion_ban[2]);
StringBuilder mensaje = new StringBuilder().Append("Votre compte sera invalide pendant ");

if (dias > 0)
mensaje.Append(dias + " jour(s)");
if (horas > 0)
mensaje.Append(horas + " heures");
if (minutos > 0)
mensaje.Append(minutos + " minutes");

cliente.cuenta.logger.log_Error("LOGIN", mensaje.ToString());
cliente.cuenta.desconectar();
}
}
}
116 changes: 116 additions & 0 deletions Comun/Frames/Autentificacion/LoginCuenta.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
using Bot_Dofus_1._29._1.Comun.Frames.Transporte;
using Bot_Dofus_1._29._1.Comun.Network;
using Bot_Dofus_1._29._1.Otros;
using Bot_Dofus_1._29._1.Otros.Enums;
using Bot_Dofus_1._29._1.Otros.Game.Servidor;
using Bot_Dofus_1._29._1.Utilidades.Criptografia;
using System.Threading.Tasks;

/*
Este archivo es parte del proyecto BotDofus_1.29.1

BotDofus_1.29.1 Copyright (C) 2019 Alvaro Prendes — Todos los derechos reservados.
Creado por Alvaro Prendes
web: http://www.salesprendes.com
*/

namespace Bot_Dofus_1._29._1.Comun.Frames.LoginCuenta
{
public class LoginCuenta : Frame
{
[PaqueteAtributo("HC")]
public void get_Key_BienvenidaAsync(ClienteTcp cliente, string paquete)
{
Cuenta cuenta = cliente.cuenta;

cuenta.Estado_Cuenta = EstadoCuenta.CONECTANDO;
cuenta.key_bienvenida = paquete.Substring(2);

cliente.enviar_Paquete("1.30");
cliente.enviar_Paquete(cliente.cuenta.configuracion.nombre_cuenta + "\n" + Hash.encriptar_Password(cliente.cuenta.configuracion.password, cliente.cuenta.key_bienvenida));
cliente.enviar_Paquete("Af");
}

[PaqueteAtributo("Ad")]
public void get_Apodo(ClienteTcp cliente, string paquete) => cliente.cuenta.apodo = paquete.Substring(2);

[PaqueteAtributo("Af")]
public void get_Fila_Espera_Login(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("File d'attente", "Position " + paquete[2] + "/" + paquete[4]);

[PaqueteAtributo("AH")]
public void get_Servidor_Estado(ClienteTcp cliente, string paquete)
{
Cuenta cuenta = cliente.cuenta;
string[] separado_servidores = paquete.Substring(2).Split('|');
ServidorJuego servidor = cuenta.juego.servidor;
bool primera_vez = true;

foreach(string sv in separado_servidores)
{
string[] separador = sv.Split(';');

int id = int.Parse(separador[0]);
EstadosServidor estado = (EstadosServidor)byte.Parse(separador[1]);
string nombre = cuenta.configuracion.servidor;

// Add Method to take name with Id

if (id == cuenta.configuracion.get_Servidor_Id())
{
servidor.actualizar_Datos(id, nombre, estado);
cuenta.logger.log_informacion("LOGIN", $"Le serveur {nombre} est {cuenta.juego.servidor.GetState(estado)}");

if (estado != EstadosServidor.CONECTADO)
primera_vez = false;
}
}

if(!primera_vez && servidor.estado == EstadosServidor.CONECTADO)
cliente.enviar_Paquete("Ax");
}

[PaqueteAtributo("AQ")]
public void get_Pregunta_Secreta(ClienteTcp cliente, string paquete)
{
if (cliente.cuenta.juego.servidor.estado == EstadosServidor.CONECTADO)
cliente.enviar_Paquete("Ax", true);
}

[PaqueteAtributo("AxK")]
public void get_Servidores_Lista(ClienteTcp cliente, string paquete)
{
Cuenta cuenta = cliente.cuenta;
string[] loc5 = paquete.Substring(3).Split('|');
int contador = 1;
bool seleccionado = false;

while (contador < loc5.Length && !seleccionado)
{
string[] _loc10_ = loc5[contador].Split(',');
int servidor_id = int.Parse(_loc10_[0]);

if (servidor_id == cuenta.juego.servidor.id)
{
if(cuenta.juego.servidor.estado == EstadosServidor.CONECTADO)
{
seleccionado = true;
cuenta.juego.personaje.evento_Servidor_Seleccionado();
}
else
cuenta.logger.log_Error("LOGIN", "Serveur non accessible lorsque celui-ci se reconnectera");
}
contador++;
}

if(seleccionado)
cliente.enviar_Paquete($"AX{cuenta.juego.servidor.id}", true);
}

[PaqueteAtributo("AXK")]
public void get_Seleccion_Servidor(ClienteTcp cliente, string paquete)
{
cliente.cuenta.tiquet_game = paquete.Substring(14);
cliente.cuenta.cambiando_Al_Servidor_Juego(Hash.desencriptar_Ip(paquete.Substring(3, 8)), Hash.desencriptar_Puerto(paquete.Substring(11, 3).ToCharArray()));
}
}
}
4 changes: 4 additions & 0 deletions Comun/Frames/Frame.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace Bot_Dofus_1._29._1.Comun.Frames
{
public class Frame { }
}
37 changes: 37 additions & 0 deletions Comun/Frames/Juego/AutentificacionJuego.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Bot_Dofus_1._29._1.Comun.Frames.Transporte;
using Bot_Dofus_1._29._1.Comun.Network;

/*
Este archivo es parte del proyecto BotDofus_1.29.1

BotDofus_1.29.1 Copyright (C) 2019 Alvaro Prendes — Todos los derechos reservados.
Creado por Alvaro Prendes
web: http://www.salesprendes.com
*/

namespace Bot_Dofus_1._29._1.Comun.Frames.Juego
{
class AutentificacionJuego : Frame
{
[PaqueteAtributo("M030")]
public void get_Error_Streaming(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("Login", "Connexion rejetée. Vous n'avez pas pu vous authentifier pour ce serveur car votre connexion a expiré. Assurez-vous de couper les téléchargements, la musique ou les vidéos en continu pour améliorer la qualité et la vitesse de votre connexion.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("M031")]
public void get_Error_Red(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("Login", "Connexion rejetée. Le serveur de jeu n'a pas reçu les informations d'authentification nécessaires après votre identification. Veuillez réessayer et, si le problème persiste, contactez votre administrateur réseau ou votre serveur d'accès Internet. C'est un problème de redirection dû à une mauvaise configuration DNS.");
cliente.cuenta.desconectar();
}

[PaqueteAtributo("M032")]
public void get_Error_Flood_Conexion(ClienteTcp cliente, string paquete)
{
cliente.cuenta.logger.log_Error("Login", "Pour éviter de déranger les autres joueurs, attendez %1 secondes avant de vous reconnecter.");
cliente.cuenta.desconectar();
}
}
}
67 changes: 67 additions & 0 deletions Comun/Frames/Juego/ChatFrame.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
using Bot_Dofus_1._29._1.Comun.Frames.Transporte;
using Bot_Dofus_1._29._1.Comun.Network;

namespace Bot_Dofus_1._29._1.Comun.Frames.Juego
{
internal class ChatFrame : Frame
{
[PaqueteAtributo("cC+")]
public void get_Agregar_Canal(ClienteTcp cliente, string paquete) => cliente.cuenta.juego.personaje.agregar_Canal_Personaje(paquete.Substring(3));

[PaqueteAtributo("cC-")]
public void get_Eliminar_Canal(ClienteTcp cliente, string paquete) => cliente.cuenta.juego.personaje.eliminar_Canal_Personaje(paquete.Substring(3));

[PaqueteAtributo("cMK")]
public void get_Mensajes_Chat(ClienteTcp cliente, string paquete)
{
string[] separador = paquete.Substring(3).Split('|');
string canal = string.Empty;

switch (separador[0])
{
case "?":
canal = "RECRUTEMENT";
break;

case ":":
canal = "COMMERCE";
break;

case "^":
canal = "INCARNAM";
break;

case "i":
canal = "INFORMATION";
break;

case "#":
canal = "EQUIPE";
break;

case "$":
canal = "GROUPE";
break;

case "%":
canal = "GUILDE";
break;

case "F":
cliente.cuenta.logger.log_privado("Message Reçu", separador[2] + ": " + separador[3]);
break;

case "T":
cliente.cuenta.logger.log_privado("Message Envoyé", separador[2] + ": " + separador[3]);
break;

default:
canal = "GENERAL";
break;
}

if (!canal.Equals(string.Empty))
cliente.cuenta.logger.log_normal(canal, separador[2] + ": " + separador[3]);
}
}
}
50 changes: 50 additions & 0 deletions Comun/Frames/Juego/IMFrame.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using Bot_Dofus_1._29._1.Comun.Frames.Transporte;
using Bot_Dofus_1._29._1.Comun.Network;

/*
Este archivo es parte del proyecto BotDofus_1.29.1

BotDofus_1.29.1 Copyright (C) 2019 Alvaro Prendes — Todos los derechos reservados.
Creado por Alvaro Prendes
web: http://www.salesprendes.com
*/

namespace Bot_Dofus_1._29._1.Comun.Frames.Juego
{
class IMFrame : Frame
{
[PaqueteAtributo("Im189")]
public void get_Mensaje_Bienvenida_Dofus(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_Error("DOFUS", "Bienvenue à DOFUS, le Monde des Douze ! Attention Il est interdit de communiquer le nom d'utilisateur et le mot de passe de votre compte.");

[PaqueteAtributo("Im039")]
public void get_Pelea_Espectador_Desactivado(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("COMBAT", "Le mode Spectator est désactivé.");

[PaqueteAtributo("Im040")]
public void get_Pelea_Espectador_Activado(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("COMBAT", "Le mode Spectator est activé.");

[PaqueteAtributo("Im0152")]
public void get_Mensaje_Ultima_Conexion_IP(ClienteTcp cliente, string paquete)
{
string mensaje = paquete.Substring(3).Split(';')[1];
cliente.cuenta.logger.log_informacion("DOFUS", "Dernière connexion à votre compte effectuée le " + mensaje.Split('~')[0] + "/" + mensaje.Split('~')[1] + "/" + mensaje.Split('~')[2] + " à " + mensaje.Split('~')[3] + ":" + mensaje.Split('~')[4] + " adresse IP " + mensaje.Split('~')[5]);
}

[PaqueteAtributo("Im0153")]
public void get_Mensaje_Nueva_Conexion_IP(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("DOFUS", "Votre adresse IP actuelle est " + paquete.Substring(3).Split(';')[1]);

[PaqueteAtributo("Im020")]
public void get_Mensaje_Abrir_Cofre_Perder_Kamas(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("DOFUS", "Vous avez dû donner " + paquete.Split(';')[1] + " kamas pour accéder à ce coffre.");

[PaqueteAtributo("Im025")]
public void get_Mensaje_Mascota_Feliz(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("DOFUS", "Votre animal est si heureux de vous revoir !");

[PaqueteAtributo("Im0157")]
public void get_Mensaje_Error_Chat_Difusion(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("DOFUS", "Ce canal est seulement disponible aux abonnés de niveau " + paquete.Split(';')[1]);

[PaqueteAtributo("Im037")]
public void get_Mensaje_Modo_Away_Dofus(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_informacion("DOFUS", "Désormais, tu seras considéré comme absent.");

[PaqueteAtributo("Im112")]
public void get_Mensaje_Pods_Llenos(ClienteTcp cliente, string paquete) => cliente.cuenta.logger.log_Error("DOFUS", "Tu es trop chargé. Jetez quelques objets pour pouvoir bouger.");
}
}
Loading