Added prelim work on OP_Marquee incase anyone else wants to also have a go at it. Packet and opcode for SoD client figured out partially.

This commit is contained in:
KimLS 2013-12-22 22:37:41 -08:00
parent 0d661204ed
commit ccf6b5ff68
3 changed files with 20 additions and 0 deletions

View File

@ -538,3 +538,4 @@ N(OP_MercenaryDismiss),
N(OP_MercenaryTimerRequest), N(OP_MercenaryTimerRequest),
N(OP_OpenInventory), N(OP_OpenInventory),
N(OP_OpenContainer), N(OP_OpenContainer),
N(OP_Marquee),

View File

@ -5073,6 +5073,24 @@ struct ServerLootItem_Struct {
uint8 maxlevel; uint8 maxlevel;
}; };
//Found in client near a ref to the string:
//"Got a broadcast message for ... %s ...\n"
struct ClientMarqueeMessage_Struct {
uint32 type;
uint32 unk04; // no idea, have seen 10 mostly, didn't notice a change when altering it
uint32 priority; //needs a better name but it does:
//opacity = priority / 255
//# of ending blinks = (int)((priority - 1) / 255)
//so 510 would have 100% opacity and 1 extra blink at end
uint32 unk12; //no idea, seen 0, 500, 1000.
uint32 unk16; //no idea, seen 500, 1000
//Visually I couldn't tell a difference from these previous two,
//but there's probably a reason for them that's more subtle than what i was looking for
uint32 duration; //in ms
char msg[1]; //message plus null terminator
};
typedef std::list<ServerLootItem_Struct*> ItemList; typedef std::list<ServerLootItem_Struct*> ItemList;
// Restore structure packing to default // Restore structure packing to default

View File

@ -348,6 +348,7 @@ OP_IncreaseStats=0x71eb
OP_InspectMessageUpdate=0x53a3 # C OP_InspectMessageUpdate=0x53a3 # C
OP_OpenInventory=0x1003 OP_OpenInventory=0x1003
OP_OpenContainer=0x3278 OP_OpenContainer=0x3278
OP_Marquee=0x7dc9
# Expedition # Expedition
OP_DzQuit=0x054e OP_DzQuit=0x054e