- Joined
- Oct 31, 2008
- Messages
- 341
- Reaction score
- 294
Well, I just want to write some thing's about this "Project" :
Actually I just did open a Project from me and Hijax ( big thanks to him ) , we just started with this some years ago and it's a old bad version, dont have any others left.
The last Day's I started to rewrite it to a better C++ Standard, at this Moment I dont have planned to Support Linux like Kashato / KS6 and even Aylen did like I read here. Why ? I dont know... never was interested to work completly on Linux, at all it should be no problem to Convert it later to Linux cuz that are just some Functions.
The Emulator use's at this Moment the Old Client Files - I dont like Thief and some of the other stuff Inix did add - there is no big stuff to later add the new Packets and modifiy some old.
How do I use / create Packets ? hmm I like this way it was Hijax idea.
Read a Packet
Create a Packet
Database is for now MySQL - easy and fine I think..
The Current Progress is not far - just some Basic stuff because I find all time some part's to improve.
A Big next Step is the MapSystem I need a good Idea / Concept for it not sure atm.
----
If u have any Questions or want some other Information's just post here.
Actually I just did open a Project from me and Hijax ( big thanks to him ) , we just started with this some years ago and it's a old bad version, dont have any others left.
The last Day's I started to rewrite it to a better C++ Standard, at this Moment I dont have planned to Support Linux like Kashato / KS6 and even Aylen did like I read here. Why ? I dont know... never was interested to work completly on Linux, at all it should be no problem to Convert it later to Linux cuz that are just some Functions.
The Emulator use's at this Moment the Old Client Files - I dont like Thief and some of the other stuff Inix did add - there is no big stuff to later add the new Packets and modifiy some old.
How do I use / create Packets ? hmm I like this way it was Hijax idea.
Read a Packet
Code:
std::unique_ptr<CPacketReader> PacketReader(new CPacketReader(Data,Size));
std::string Username = PacketReader->GetString_();
std::string Password = PacketReader->GetString_();
Code:
std::unique_ptr<CPacketCreator> Packet01(new CPacketCreator);
Packet01->SetType(0x42);
Packet01->AddByte(Character.Special);
Packet01->AddWord(0x00); // ???
Packet01->AddWord(1337); // Contribution
Packet01->AddByte(Character.Strength);
Packet01->AddByte(Character.Health);
Packet01->AddByte(Character.Intelligence);
Packet01->AddByte(Character.Wisdom);
Packet01->AddByte(Character.Agility);
Packet01->AddWord(1000); // Current HP
Packet01->AddWord(1001); // Maximal HP
Packet01->AddWord(1002); // Current MP
Packet01->AddWord(1003); // Maximal MP
Packet01->AddWord(1); // OTP
Packet01->AddWord(2); // Evasion
Packet01->AddWord(3); // Defense
Packet01->AddWord(4); // Absorbtion
Packet01->AddDword(0); // EXP
Packet01->AddWord(0x00); // ???
Packet01->AddByte(0x00); // ???
Packet01->AddWord(100); // Minimal physical damage
Packet01->AddWord(101); // Maximal physical damage
Packet01->AddWord(102); // Minimal magical damage
Packet01->AddWord(103); // Maximal magical damage
Packet01->AddWord(10); // StatPoints
Packet01->AddWord(20); // SkillPoints
Packet01->AddByte(10); // Fire resistance
Packet01->AddByte(11); // Ice resistance
Packet01->AddByte(12); // Light resistance
Packet01->AddByte(13); // Curse resistance
Packet01->AddByte(14); // Non-Elementary resistance
Packet01->AddDword(10000); // Range
send(m_Socket, Packet01->Get(), Packet01->GetSize(), 0);
Database is for now MySQL - easy and fine I think..
The Current Progress is not far - just some Basic stuff because I find all time some part's to improve.
A Big next Step is the MapSystem I need a good Idea / Concept for it not sure atm.
----
If u have any Questions or want some other Information's just post here.