• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Plugin - MQ2Pop Compile

Status
Not open for further replies.
Joined
Dec 1, 2006
RedCents
1,529¢
OK, here is MQ2Pop per request

Source (not written by myself)
Code:
// MQ2Pop.cpp : a simple, barebones plugin by notadruid.  All it does
// is spam the MQ2 Chat window when an NPC pops, and if the NPC's name
// contains # it will spam NAMED instead of pop

#include "../MQ2Plugin.h"

PreSetup("MQ2Pop");

bool AreWeZoning = false;
time_t seconds;

bool NamedStatus(int NewSpawnID)
{
   SEARCHSPAWN MySearchSpawn = {0};
   ClearSearchSpawn(&MySearchSpawn);
   MySearchSpawn.SpawnID = NewSpawnID;
   MySearchSpawn.bNamed = TRUE;
   if (CountMatchingSpawns(&MySearchSpawn, GetCharInfo()->pSpawn))
      return true;
   else
      return false;
}

PLUGIN_API VOID OnBeginZone(VOID) { AreWeZoning = true; }

PLUGIN_API VOID OnEndZone(VOID) {
   AreWeZoning = false;
   seconds = time (NULL);
}

PLUGIN_API VOID InitializePlugin(VOID) { DebugSpewAlways("Initializing MQ2Pop"); seconds = time (NULL); }
PLUGIN_API VOID ShutdownPlugin(VOID) { DebugSpewAlways("Shutting down MQ2Pop"); }

PLUGIN_API VOID OnAddSpawn(PSPAWNINFO pNewSpawn) {
   DebugSpewAlways("MQ2Pop::OnAddSpawn()");
   if ( AreWeZoning || time(NULL) < seconds + 3 || pNewSpawn->Type != SPAWN_NPC || pNewSpawn->MasterID || strstr(pNewSpawn->Name, "s_Mount") )
      return;
   if(NamedStatus(pNewSpawn->pSpawn->SpawnID)) {
      WriteChatf("\arNAMED\ax > %s < \arNAMED\ax",pNewSpawn->DisplayedName);
   } else {
      WriteChatf("Pop > %s < Pop",pNewSpawn->DisplayedName);
   }
}
 
Doh, sorry... I guess i have to spread some red cents around elsewhere before it will let me give you another.

Thanks again for updating Pop though, this plugin is priceless to an Offtank on raids. :D
 
I am curious how hard would it be for someone to change the color of the text when it displays a named mob. I do not have the programs or knowlegde to even begin to try a make a change in a plugin. This is the part where i beg... PLEASE someone, anyone :)
 
Here you go, the named mobs will be red, while the regular mobs will be lightgrey. This is untested, as I no longer have an EQ subscription, but it compiled fine with the newest MQ2 release. Let me know if you have any problems with it.

[EDIT] Removed non-working plugin
 
Last edited:
The plugin does not appear to be distinguishing the named mobs from the regulars. I have noticed this in the zones Crescent reach with Hollows widow spider, and in blightfire moors with thunderwood. It would be awsome if someone that knows what they are doing could fix that :) or at least tell me those arn't really named mobs, lol
 
Depends, the change might be working 2 different ways.

Named mobs have a # in front of their name in the spawn list.
Named mobs do not have "an" or "a" at the start of their name.

Or it just might not be checking the name at all, one of the two.
 
Hmm, appears to me that the plugin is checking if there is more than one of the spawn in the zone to determine if it is a named. it is either doing that, or seeing if the names match exactly as the spawn name returns. I'd have to put in some error trapping to see whats going on with it. I will try to do that later tonight if I can.
 
By the way, I forgot to say that I was using the plugin that Kukmuk made with the named mobs highlighted with color when I noticed the problem. Hope this doesn't cause anyone any grief, sigh.
 
Sorry, I assumed the NamedStatus() function worked in his code =) I rewrote it to call the function IsNamed() that was written by the MQ2 devs, and tested it in EQEmu, seems to work fine now. Red is named, Grey is regular mob. Let me know if you have any more problems!

[EDIT] Attachments removed, check later post
 
Last edited:
No Problem, Kukmuk, I only mentioned it was your version because I dont have a clue how to program, myself and I was unsure if it made any diffrerence or not. I'll give it a try in the next couple days and let you know how it works. Thanks very much for your time and effort.
 
The new plugin looks to be working on live server :). However, I had another idea while playing with it. How hard would it be to put in a switch to filter out the regular mobs? It might be awesome in certain cases to just be alerted when name spawns as opposed to all spawns. This is mostly just an idea but, maybe someone would be interested in pursuing it.

Maybe something like:

/popfilter on|off|named
on= everything
off=nothing (disables the plugin without unloading it)
named=displays only the named mobs

As a side note, I would be interested in seeing plain text for the new plugin to compare it to the original. I do not have the software to "decomplie" if that's the correct word. Someday, perhaps I'll be able to get the nesseccary software but, thats not likely in the near future.
 
How hard would it be to put in a switch to filter out the regular mobs? It might be awesome in certain cases to just be alerted when name spawns as opposed to all spawns.

This would not be hard, and when I get a spare moment of time (I am in the process of moving) I will add these commands for you and upload the latest version.

As a side note, I would be interested in seeing plain text for the new plugin to compare it to the original.

The "plain text" is in the .rar file (ending in SRC).

I do not have the software to "decomplie" if that's the correct word
The correct word is "compile" =) The source is there, you just have to create a project for MQ2Pop and add it to the solution.
 
The "plain text" is in the .rar file (ending in SRC).

I downloaded that file but was unable to open it. I do not the right software appaerently. I suppose I failed to express myself properly, sorry.
 
hoosierbilly said:
I downloaded that file but was unable to open it. I do not the right software appaerently. I suppose I failed to express myself properly, sorry.

Google for winrar and download that.
 
Added your commands:

/popfilter on -- show all spawns
/popfilter off -- show no spawns
/popfilter named -- show only named spawns

Its partially tested, but I couldn't get a named to spawn in a reasonable amount of time so I gave up testing that part (it should work).
 
I checked it for only a few minutes in crescent reach but it appear sto be working. I almost feel like a little kid with a new toy, lol. Honestly it is exciting to see an idea turn into a reality. Thank you very much. I will play with it some more tomorrow and post if I find any problems.
 
Can someone please update mq2pop to work with the new compile for the June 6th patch? Would be awesome to have this up and running before raids tonight...

Redcents to anyone that does! :D
 
The version posted by Kukmuk (couple of posts higher) on 5-25-07 is working just fine. I've been using it since last night with no problems at all. The defualt is off, so I made an autoexec.cfg file with the command /popfilter named to set the plugin to my preference. You could make the command /popfilter on or whatever your preference is.
 
Plugin - MQ2Pop Compile
Status
Not open for further replies.

Users who are viewing this thread

Back
Top
Cart