This patch is very very simple. There is an addition to the player packet that I don't have time to look at, but it is unlikely to cause much trouble (besides whining about bad size every time you zone). Plenty of folks out there can work it out I'm sure.
Here are the new opcodes (Note that basically everything over opcode 0x40ish or so is simply one digit lower than it used to be):
ZoneEntryCode 0x0253
CharProfileCode 0x006a
ConsiderCode 0x0174
ZoneSpawnsCode 0x0188
ClientTargetCode 0x018b
CPlayerItemsCode 0x01dc
NewSpawnCode 0x0228
NewZoneCode 0x00ef
DeleteSpawnCode 0x00f7
EmoteTextCode 0x00f6
MakeDropCode 0x00fe
DoorSpawnsCode 0x01dd
SpawnUpdateCode 0x0159
NewCorpseCode 0x0114
RemDropCode 0x00fd
There are probably bunches more, but these will get folks rollin.
Here is the new decode.cpp:
/*
* Decode.cpp
*
* ShowEQ Distributed under GPL
* http://www.hackersquest.gomp.ch/
*/
#include "main.h"
#include "decode.h"
uint16_t implicitlen (uint16_t opcode)
{
switch (opcode) {
case 0x0017: // 23
return 0x08; // 8
case 0x0022: // 34
return 0x12; // 18
case 0x0039: // 57
return 0x0c; // 12
case 0x00c6: // 198
return 0x08; // 8
case 0x00e6: // 230
return 0x17; // 23
case 0x00f7: // 247
return 0x04; // 4
case 0x010f: // 271
return 0x88; // 136
case 0x0110: // 272
return 0x1f; // 31
case 0x0144: // 324
return 0x09; // 9
case 0x0153: // 339
return 0x04; // 4
case 0x0159: // 345
return 0x08; // 8
case 0x0242: // 578
return 0x03; // 3
case 0x0243: // 579
return 0x03; // 3
case 0x025c: // 604
return 0x06; // 6
case 0x025d: // 605
return 0x06; // 6
default:
return 0;
}
}
My SO's father has just been diagnosed with brain cancer. They are cutting open his skull to try to carve it out on Tuesday, but he will most likely die. It appears that even if he survives the operation, the survival rate goes to zero in only 5 years.
As such, I will be out of town visiting him and not working on seq for a while. Please be kind to each other....you never know how long you've got.
--piggy