FICTURE7 / CoCSharp

Clash of Clans library, proxy and server written in .NET [Unmaintained]
MIT License
109 stars 57 forks source link

CoCSharp.Client Plugin API #24

Closed FICTURE7 closed 9 years ago

FICTURE7 commented 9 years ago

Just a simple working plugin API. Ideas can be discussed here.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

we should bring back a pluginapi class, for things like joining a clan or upgrading buildings or training troops

FICTURE7 commented 9 years ago

It shouldn't be problem just use the Client property.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

i will add a complete village interaction via plugins, as far as possible (limited by CoCSharp) what does the id in building mean? did you create a enum for it?

FICTURE7 commented 9 years ago

I think you didn't read the code that handles CSV files or any other code at all or you did not even understand them because from what I can see your skills at writing C# code is fairly poor.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

yeah i read them afterwards. and my skill is poor because im 15 and havent learnt c# from someone, just by myself

FICTURE7 commented 9 years ago

well, this explains why u always have an excuse to everything lel

FICTURE7 commented 9 years ago

Anyways, do you think there is more to add to the API?

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

first we should modify the logic of cocsharp, like adding building type enum to buildings

FICTURE7 commented 9 years ago

We don't need to, this data is specified in .csv files.

FICTURE7 commented 9 years ago

Botting with the client won't be possible as we don't know how the checksum works by the way.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

it would be nicer if the csv files get parsed automaically and the information is accessable

FICTURE7 commented 9 years ago

Well, I implemented the parsing part.

FICTURE7 commented 9 years ago

Take a look here.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

what checksum do you mean?

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

at the login packet?

FICTURE7 commented 9 years ago

No, at ClientCommandPacket

FICTURE7 commented 9 years ago

You should get yourself some info before you talk xD

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

yeah

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

well i am too lazy to look at the clientcommandpacket, so does the checksum change? per start or per update or every time?

FICTURE7 commented 9 years ago

Laziness is not what I want. Go find out yourself.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

nope :p

FICTURE7 commented 9 years ago

pfff, I don't know why am I even wasting my time with you.

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

i dont know too :tongue:

a1e3cdc47c9eae132bd41ae1f5d0510d commented 9 years ago

l3l