Results 1 to 2 of 2

Thread: Feature: Add guild to player spawn name in log

  1. #1
    Registered User
    Join Date
    Aug 2020
    Posts
    138

    Feature: Add guild to player spawn name in log

    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

  2. #2
    Administrator
    Join Date
    Oct 2019
    Posts
    565

    Re: Feature: Add guild to player spawn name in log

    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.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On