PDA

View Full Version : Feature: Add guild to player spawn name in log



xerxes
07-25-2024, 12:33 PM
Can a player's guild be added to the Alert text when they spawn into a zone:

Spawn: Soandso/Dark Elf/Necromancer at 0,-200,15 LVL 95, HP 100/100, Guild: Their Guild

cn187
07-25-2024, 05:50 PM
It should already be possible, but how you do it depends.

If a couple of certain guild opcodes are up-to-date [1] then the numeric ID will get mapped to a guild name, and can be saved to a DB for use with future sessions. (File->Save Guilds File)

If you've got the mapping in your DB, you should be able to put the guild name in the guild field of the filter, and it should work. (at least I think it should. I haven't tested it)

If you don't have the mapping, then you should still be able to match on the numeric guild id (displayed in the spawn list, and maybe the map spawn tooltip) instead of the guild name.

So to be safe, you could create 2 alerts, one with the name and one with the numeric ID (or 1 alert with the appropriate regex "or" in the guild field). But once you have the mapping in the DB, you shouldn't need the numeric one anymore.

[1] Newby has started including OP_GuildsInZoneList in his monthly patch. That one does most of the heavy lifting, since when you enter a zone, it gives a list of all the guild/id mappings for the players in that zone. Go to someplace like PoK or the Guild Lobby, and you could probably get most of the mappings for your server pretty quickly. OP_NewGuildInZone is a little trickier, since it's only sent when a player enters the zone and their guild wasn't already sent in OP_GuildsInZoneList. You either need luck, a second account in a different guild, or to dump the opcode directly from the executable. Fortunately, that one isn't as important.