• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

GMZorita -Fame Packets

Status
Not open for further replies.
Junior Spellweaver
Joined
Apr 15, 2007
Messages
154
Reaction score
0
Ok i am posting this because i could barely understand what he said so this is an easy rewording.


Client to Server Give fame: 69 - F1 38 04 00 01
69 = Packet ID
F1 38 04 00 = User ID
01 = Command / fame


Server to Client Get fame: 31 - 00 08 00 47 4D 5A 6F 72 69 74 61 01 C2 02 00 00
31 = Packet ID
08 = name size
47 4D 5A 6F 72 69 74 61 = Name of famer/defamer


Client to Server Take fame: 69 - F1 38 04 00 00
69 = Packet ID
F1 38 04 00 = User ID
00 = Command / defame

Server to Client Lose fame: 31 - 00 08 00 47 4D 5A 6F 72 69 74 61 00 C1 02 00 00
31 = Packet ID
08 = name size
47 4D 5A 6F 72 69 74 61 = Name of famer/defamer

Easy break down:

If the Quoted byte is 01 then add 1, Else if the Quoted byte is 00 subtract 1

Fame user ~ 69 00 00 00 00 "01"
DeFame user ~ 69 00 00 00 00 "00"
GetFame ~ 31 00 08 00 47 4D 5A 6F 72 69 74 61 "01" C2 02 00 00
LoseFame ~ 31 - 00 08 00 47 4D 5A 6F 72 69 74 61 "00" C2 02 00 00

Please correct me if i'm wrong
 
Junior Spellweaver
Joined
Apr 15, 2007
Messages
154
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

bump edited it a bit
 
Initiate Mage
Joined
Apr 13, 2008
Messages
2
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

Nice.

can you add me on MSN, to help me understand private servers a bit more? I know C++, But some of the stuff confuses me. :/


Thanks :)
 
Experienced Elementalist
Joined
Dec 7, 2006
Messages
294
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

if you could barely understand what he said, how come ur posting a translation?

this is useless IMO...
 
Junior Spellweaver
Joined
Apr 15, 2007
Messages
154
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

if you could barely understand what he said, how come ur posting a translation?

this is useless IMO...

lol, well i understood it but it was a bit hard to read at first
 
Newbie Spellweaver
Joined
Apr 3, 2008
Messages
9
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

I just posted what i typed in my note pad it was enought to understand imo.

And anyone could understand the way i posted.
Unless your a crtl+c/v witch
 
Junior Spellweaver
Joined
Apr 15, 2007
Messages
154
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

I just posted what i typed in my note pad it was enought to understand imo.

And anyone could understand the way i posted.
Unless your a crtl+c/v witch

lol >.< well i'm not just trying to help the noobs realize that they can't add that to players.cpp and it work >.<
 
Newbie Spellweaver
Joined
Apr 12, 2008
Messages
19
Reaction score
0
Re: [Re-word]GMZorita -Fame Packets

if you could barely understand what he said, how come ur posting a translation?

this is useless IMO...

Not useless.. you can send packets with packet editor.. since there is no GG you can use it
 
akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
Re: [Re-word]GMZorita -Fame Packets

if i am not wrong...

den we shld add smth like this

case 0x69: PlayerPacket::Fame(this, buf+2);break;

void PlayerPacket::Fame(Player* player){
if (Buffer[0] = 0x01){
Packet packet = Packet();
packet.addHeader(0x31);
packet.addbyte(0);
packet.addInt();
packet.addbyte(0);
packet.addString(player->getName(), 12);
packet.packetSend(player);
}
}
 
Newbie Spellweaver
Joined
Feb 19, 2008
Messages
33
Reaction score
0
Re: [Release]GMZorita -Fame Packets

I seem to be on the right track but on the persons screen who famed me it said "you have raised ""s level of fame." with no name in the quotes, then on HIS screen it showed my fame like 28k+. On my screen it was 0 and i didnt get a recieve packet on my side. This is in playerpacket.cpp
Code:
void PlayerPacket::Fame(Player *player, unsigned char* Buffer){
	if(Buffer[0] == 0x01){
	Packet packet = Packet();
	packet.addHeader(0x31);
	packet.addByte(0); // 00
	packet.addInt(11); // player name size, for now lets say BrokenGlass = 11
	packet.addByte(0); // 00
	packet.addString(player->getName(), 12); // adds name
	packet.addBytes("01C2020000");
	packet.packetSend(player); // sends 00 11 00 brokenglass 01C2020000
}
}

Can anyone fix this
 
Status
Not open for further replies.
Back
Top