[Release] World Conquer: Project Development

02/14/2015 21:56 pintinho12#1
Hello guys,

first of all i wish to advise. I am not a professional, i am coding this to learn. I am making this a open source, since it's based on the [Only registered and activated users can see links. Click Here To Register...] and this is actually open source too. Actually i moved the Phoenix structure to a new source, so it would be easier for me to understand.

The source is ready to login and already have a few functions. There is no protection against any kind of attack in this version. There are a few things that need to be changed if you want to use this on a open server.

Of course you will notice that my codes aren't so great, but if you want to point anything bad, make something constructive so i can improve myself too. I will update the source if the community say that i need to keep the work.

This does have a lot of packet handlers that has not been finished yet, because i found out somethings on the middle of the development and so i started to do some researchs. There are a few txt files on the MsgServer/bin/debug folder, which contains informations about a few packets.

The client i am using is version 5517, i will list a few things that has been already coded here. By the way, there isn't much done.

[Only registered and activated users can see links. Click Here To Register...]
Character Creation Packet isn't finished yet. It doesn't redirect the character after creation and doesn't make the name checks.
Chat Message Packet does handle Talk, Whisper, Guild, Friend and World Messages (GM/PM Commands).
Item Action does handle: Buy, Sell (Bound Items too), Equip, Unequip, Warehouse money, Repair and Repair All, Improve, Uplevel, Ping Packet (lol), Enchant, Talisman Socket with Items (I don't want to implement the CPs part on my server), Drop Packet (Not completed, it doesn't check for bound items and etc), Blessing, Activate Items (Accessories, items with timers, all handled already), Socket Equipment, Merge Items, Split Items (Shift + Click), Item tooltip and Degrade Equipment (Thanks to COPS V6).
String Packet does handle the basic.
Relationship packet does handle Add Friend, Delete Friend, Enemies etc.
Interaction Packet does handle Physical Attack (Meele and Bow) and Magic Attacks of Sort 1 and 14/33.
[Only registered and activated users can see links. Click Here To Register...]
And the rest you should check out by yourself.

I will also provide on this thread, a little guide of how to work on the interaction packets (Attacking). I tried to implement it like on Demons Source, using the Sort Types of the cq_magictype.

Bellow, a few screenshots and then later, a tutorial of how to handle the attack classes. They're in order of development.

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

If you want to see all versions, check out the link below: (The versions not listed here, are not releases, just backups or shared work)
[Only registered and activated users can see links. Click Here To Register...]

Battle System

The battle system may be complex to some peoples, but once you get familiar with it, it's pretty easy.
If you want to change the calculations you should look for the methods CalcAttackPower (Physical and Bow) and CalcMagicPower (Magic) on the file Structures\Entities\Battle System.cs

This will affect any attack calculation. You don't need to create millions of methods to handle each kind of attack.

The method CheckCondition on the same file, will check if the target is able to be attacked by a magic attack.

The methods for Physical and Magic attacks on Battle System are ProcAttack_Hand2Hand() and ProccessMagicAttack(int nType, uint idTarget, ushort x, ushort y, byte ucAutoActive).

Any magic check should be done on ProccessMagicAttack, once it's not the sort requirement. If the requirement is done by the type of magic (sort), you should look below on the Launch method.

The boolean Launch()

This method will just send the skill to it's own processor. Then, you create the processor and make the other Sort support. Check the ready sorts for more information.

There are a few known bugs that I will leave there, so who ever download this, try to solve. On future versions they will be fixed.

Last Update: 03-08-2015

Thanks for Akarui, never denied me support and for the Phoenix Project.
Thanks for CptSky for releasing Cops V6 that helped me on a few items handle algos and for the tips of the portals.
Thanks for pro4never, because of the Albetros Source that been so useful to me with it's packet structures.

And thanks for everyone who at least check out the code or the server itself.


Vídeo for release alpha 1.0.1005a
02/15/2015 18:50 AhmedGfx#2
Keep Going , I support you :D .
It's great work .
02/15/2015 19:36 pintinho12#3
Quote:
Originally Posted by AhmedGfx View Post
Keep Going , I support you :D .
It's great work .
Thank you, i will soon post an update with more skills support. I am working on them right now.

Sort 2 is already done.
[Only registered and activated users can see links. Click Here To Register...]
02/15/2015 20:36 AhmedGfx#4
It's good thing to complete this work .

but there are a lot of actions types you don't made it , yet .

Ex:
511 , to check type of equipment position you are wear .
517 , to check id of equipment parameters ( item_position 1 == , set item_id 1 )
1071 , to do action after time by seconds like (seconds action_id )
1077 , like ( select name from cq_user where id= %user_id )

and more , sorry for my bad English .

and i suggest to you work in last version of conquer .. :D
02/15/2015 21:52 pintinho12#5
I like the version 5517, i will be upgrading it later.
I've got a lot of problems while working on this, i changed city, got some problems with family, so I lost much time. I am working on the interactions now, but i will work on the action types after i finish the skills. So i can make at least Guild War working perfectly.

Those action types will be made in 1-2 weeks.

Sort 16 done. Next one will be Sort 5.
[Only registered and activated users can see links. Click Here To Register...]
02/15/2015 21:58 AhmedGfx#6
are you using 5517 client , and Conquerloader v2 ??

every time i logged in , it's get error account or password wrong .
02/15/2015 22:41 pintinho12#7
I Use the latest version
[Only registered and activated users can see links. Click Here To Register...]
02/16/2015 08:04 AhmedGfx#8
I use it and every time i log in .

Failed to login: Invalid Account ID or Password(1) .

and i am using Conquer 5517 Client .
02/16/2015 22:41 pro4never#9
Quote:
Originally Posted by AhmedGfx View Post
I use it and every time i log in .

Failed to login: Invalid Account ID or Password(1) .

and i am using Conquer 5517 Client .
Dont use the numpad to enter numbers. They show as different characters server side unless he has code that manually matches them back up with the correct #s
02/16/2015 23:07 AhmedGfx#10
It's right , thanks .
02/18/2015 02:07 pintinho12#11
Quote:
Originally Posted by pro4never View Post
Dont use the numpad to enter numbers. They show as different characters server side unless he has code that manually matches them back up with the correct #s
Do you have it?
I can get them by myself, but if you have it done, can you share?
I've been working on the skills so far #00
Otherwise i will leave this for later and wont finish xD
02/18/2015 02:32 pro4never#12
Check albetros, exodus?, csv3-4 they should all have it.

It's just matching up the chars after password decryption with the proper #s they should represent
02/23/2015 12:15 ScorpioN[Timur]#13
Hey man i download your source but not opened :(
I need video please can you help :rolleyes:
02/23/2015 12:50 pintinho12#14
I will see if i can do it when i get back home in a few hours.

I will be updating the source code today! I've got a few family problems here, but I've been working anyway.

I did a few more Sort types, including Detach Status (Revive and that ninja skill that removes fly) and some others.

Also i implemented the Trade System with the logs (Gotta test a few things, but it works, i just hope it's already 100%).

Also i implemented the Team System, not totally done yet. I will try this afternoon.
02/23/2015 12:58 ScorpioN[Timur]#15
Quote:
Originally Posted by pintinho12 View Post
I will see if i can do it when i get back home in a few hours.

I will be updating the source code today! I've got a few family problems here, but I've been working anyway.

I did a few more Sort types, including Detach Status (Revive and that ninja skill that removes fly) and some others.

Also i implemented the Trade System with the logs (Gotta test a few things, but it works, i just hope it's already 100%).

Also i implemented the Team System, not totally done yet. I will try this afternoon.
Okay man i wait you :)