Fixed clan :)

here is clan fix
add this in worldpackets.cpp
Code:
// -----------------------------------------------------------------------------------------
// CLANS 
// -----------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------
// CLANS 
// -----------------------------------------------------------------------------------------
bool CWorldServer::pakManageClan ( CWorldClient* thisclient, CPacket* P )
{ 
STARTPACKET(pak,0x7e0,0xb3);
SETWORD( pak, 0x00, 0x0633 );
SETWORD( pak, 0x02, 0x0009);
SETDWORD( pak, 0x04, GETDWORD((*P), 0x00 ));
//clan level
SETWORD( pak, 0x08, 0x0700 );
SETWORD( pak, 0x0a, 0x0006 );
SETWORD( pak, 0x0c, 0x0000 );
SETWORD( pak, 0x0e, 0x6400 );
SETDWORD( pak, 0x10, 0x00000000 );
SETDWORD( pak, 0x14, 0x00000000 );
SETWORD( pak, 0x18, 0x0000 );
SETWORD( pak, 0x1a, 0x0100 );
SETDWORD( pak, 0x1c, 0x00000000 );
SETDWORD( pak, 0x20, 0x00000000 );
SETDWORD( pak, 0x24, 0x00000000 );
SETDWORD( pak, 0x28, 0x00000000 );
SETDWORD( pak, 0x2c, 0x00000000 );
SETDWORD( pak, 0x30, 0x00000000 );
SETDWORD( pak, 0x34, 0x00000000 );
SETDWORD( pak, 0x38, 0x00000000 );
SETDWORD( pak, 0x3c, 0x00000000 );
SETDWORD( pak, 0x40, 0x00000000 );
SETDWORD( pak, 0x44, 0x00000000 );
SETDWORD( pak, 0x48, 0x00000000 );
SETDWORD( pak, 0x4c, 0x00000000 );
SETDWORD( pak, 0x50, 0x00000000 );
SETDWORD( pak, 0x54, 0x00000000 );
SETDWORD( pak, 0x58, 0x00000000 );
SETDWORD( pak, 0x5c, 0x00000000 );
SETDWORD( pak, 0x60, 0x00000000 );
SETDWORD( pak, 0x64, 0x00000000 );
SETDWORD( pak, 0x68, 0x00000000 );
SETDWORD( pak, 0x6c, 0x00000000 );
SETDWORD( pak, 0x70, 0x00000000 );
SETDWORD( pak, 0x74, 0x00000000 );
SETDWORD( pak, 0x78, 0x00000000 );
SETDWORD( pak, 0x7c, 0x00000000 );
SETDWORD( pak, 0x80, 0x00000000 );
SETDWORD( pak, 0x84, 0x00000000 );
SETDWORD( pak, 0x88, 0x00000000 );
SETDWORD( pak, 0x8c, 0x00000000 );
SETDWORD( pak, 0x90, 0x00000000 );
SETWORD( pak, 0x94, 0x0000 );
SETWORD( pak, 0x96, 0x0000 );
SETWORD( pak, 0x98, 0x6800 );
//nombre clan 
int h=0;
while (h<17)
{
SETBYTE(pak,0x9a+h,thisclient->clanname[h]);
h++;
}
SETWORD( pak, 0xac, 0x0000);
SETDWORD( pak, 0xae, 0x00000000 );
SETWORD( pak, 0xb2, 0x0000 );
thisclient->SendPacket( &pak );
//other people see your clan created
STARTPACKET(pak2,0x7e0,0x22);
SETWORD( pak2, 0x00, 0xf135);
SETWORD( pak2, 0x02, 0x06a9);
SETWORD( pak2, 0x04, 0x0009);
SETDWORD( pak2, 0x06, GETDWORD((*P), 0x00 ));
SETWORD( pak2, 0x0a, 0x0100);
while (h<17)
{
SETBYTE(pak2,0x0c+h,thisclient->clanname[h]);
h++;
}
SETWORD( pak2, 0x1a, 0x0000);
SETDWORD( pak2, 0x1c, 0x00000000 );
SETWORD( pak2, 0x20, 0x0000 );
thisclient->SendPacket( &pak2 );
//Set master
STARTPACKET(pak3,0x7e0,0x18);
SETWORD( pak3, 0x00, 0xa584);
SETWORD( pak3, 0x02, 0x4100);
SETBYTE( pak3, 0x04, 0x0001);
SETDWORD( pak3, 0x06, 0x00000000 );
SETDWORD( pak3, 0x0a, 0x00000000 );
SETDWORD( pak3, 0x0e, 0x00000000 );
SETDWORD( pak3, 0x12, 0x00000000 );
SETDWORD( pak3, 0x16, 0x00000000 );
while (h<17)
{
SETBYTE(pak3,0x05+h,thisclient->clanname[h]);
h++;
}

thisclient->SendPacket( &pak3 );
return true;
}

add this in worldsockets.h
Code:
// -----------------------------------------------------------------------------------------
// Main loginserver client class
// -----------------------------------------------------------------------------------------
class CWorldClient : public CClientSocket
{
public:
char clanname[65];
under password ( char password[33]; )

add this in worldserver.cpp under Incoming packet

Code:
case 0x07e0: return pakManageClan ( (CWorldClient*)thisclient, P );

now go to worldsocktes.h and search for this //------------------ PACKETS (worldpackets.cpp)
and add this code in the packtes from worldserver.cpp
Code:
bool pakManageClan ( CWorldClient* thisclient, CPacket* P );
 
again, he didnt write a single line of this code. its not really a fix, only a (static , testing only) code to create a clan lol. he stole it from deadspirit, who stole it from the _very early_ source of donan.
 
well, guys, listen...
first, cant you read? o_O the code _is definitly_ stolen. well, it doesnt help you anything lawl...
and well, if you have 200pms a day, of which 199 are questions how to fix XXX, you're getting sick of it.
lol, you can get together without pros, only leechers and no1 sharing anything =) you'll be at the same thing you're at now, at _nothing_

i made so many tools and fixes, like stb2sql convertion (which is _really_ helpful) and so many ingame things... i thought about sharing them so long...
but, well, i looked at ragezone and saw, w00t 1 guy is able to understand what im coding. so after that, and after sharing some gm commands etc, i saw, that _even if_ i share code, with a manual how to add it, i still have noobs begging me for _more_ stuff, and _really_ noobie questions.

again, guys, i hope you will at least listen _once_...
DONT START A PRIVATE SERVER WHEN YOU CANT CODE. IT WILL ONLY MAKE YOU ANGRY AND BEGGING PROS FOR MORE CODE. NOONE IS BORN AS GOD, SO ARE THE PROS. THEY SPEND MUCH TIME ON LEARNING HOW TO PROGRAM, AND THEY DIDNT START WITH SUCH A _HUGE_ PROJECT, TOO. GET A GOOD BOOK ABOUT C++ AND GODDAMN ___LEARN___ THE LANGUAGE BEFORE CODING **** YOU DONT EVEN UNDERSTAND.

lol, long post again, i can only repeat and repeat the **** above.. noone will even read it though.
ragezone _finally_ became noobzone, at least at the rose online section...
i think i wont go here anymore, since noone else is active here who does even _understand_ the code.
 
well, guys, listen...
first, cant you read? o_O the code _is definitly_ stolen. well, it doesnt help you anything lawl...
and well, if you have 200pms a day, of which 199 are questions how to fix XXX, you're getting sick of it.
lol, you can get together without pros, only leechers and no1 sharing anything =) you'll be at the same thing you're at now, at _nothing_

i made so many tools and fixes, like stb2sql convertion (which is _really_ helpful) and so many ingame things... i thought about sharing them so long...
but, well, i looked at ragezone and saw, w00t 1 guy is able to understand what im coding. so after that, and after sharing some gm commands etc, i saw, that _even if_ i share code, with a manual how to add it, i still have noobs begging me for _more_ stuff, and _really_ noobie questions.

again, guys, i hope you will at least listen _once_...
DONT START A PRIVATE SERVER WHEN YOU CANT CODE. IT WILL ONLY MAKE YOU ANGRY AND BEGGING PROS FOR MORE CODE. NOONE IS BORN AS GOD, SO ARE THE PROS. THEY SPEND MUCH TIME ON LEARNING HOW TO PROGRAM, AND THEY DIDNT START WITH SUCH A _HUGE_ PROJECT, TOO. GET A GOOD BOOK ABOUT C++ AND GODDAMN ___LEARN___ THE LANGUAGE BEFORE CODING **** YOU DONT EVEN UNDERSTAND.

lol, long post again, i can only repeat and repeat the **** above.. noone will even read it though.
ragezone _finally_ became noobzone, at least at the rose online section...
i think i wont go here anymore, since noone else is active here who does even _understand_ the code.

Sadly is true, unluckly theres no place for serious ppl, because most os "serious" coders are too arrogant and think know every **** and dont let anyone to get in or else talk about, and most of good ppl give p and forget about rose, filtering out noob from ragezonei is the only place that i know and i think a private subforum under rose section can solve some of our "social" problems here, what you suggest?
 
well, guys, listen...
first, cant you read? o_O the code _is definitly_ stolen. well, it doesnt help you anything lawl...
and well, if you have 200pms a day, of which 199 are questions how to fix XXX, you're getting sick of it.
lol, you can get together without pros, only leechers and no1 sharing anything =) you'll be at the same thing you're at now, at _nothing_

i made so many tools and fixes, like stb2sql convertion (which is _really_ helpful) and so many ingame things... i thought about sharing them so long...
but, well, i looked at ragezone and saw, w00t 1 guy is able to understand what im coding. so after that, and after sharing some gm commands etc, i saw, that _even if_ i share code, with a manual how to add it, i still have noobs begging me for _more_ stuff, and _really_ noobie questions.

again, guys, i hope you will at least listen _once_...
DONT START A PRIVATE SERVER WHEN YOU CANT CODE. IT WILL ONLY MAKE YOU ANGRY AND BEGGING PROS FOR MORE CODE. NOONE IS BORN AS GOD, SO ARE THE PROS. THEY SPEND MUCH TIME ON LEARNING HOW TO PROGRAM, AND THEY DIDNT START WITH SUCH A _HUGE_ PROJECT, TOO. GET A GOOD BOOK ABOUT C++ AND GODDAMN ___LEARN___ THE LANGUAGE BEFORE CODING **** YOU DONT EVEN UNDERSTAND.

lol, long post again, i can only repeat and repeat the **** above.. noone will even read it though.
ragezone _finally_ became noobzone, at least at the rose online section...
i think i wont go here anymore, since noone else is active here who does even _understand_ the code.


eek....i agree with u...like alot...i used to notice how this section wasnt even huge b4, now its pretty much full of leechz, i also agree with the part u stated with getting a damn c++ book and freakin read...c++ isnt all that hard...juss takes u a bit time to read all of it..nicely put
 
Back