• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

MQ2AdvBeep

zippzipp

Member
This plugin allows you to take full advantage of the wonderful beep command in game.

It has 2 modes:

Normal mode:
/advbeep [frequency] [length]

set your frequency and length(300 is normal) and go!

and

Music mode:
/advbeep [note] [length] [octave]

Possible notes: c, csharp, d, dsharp, e, f, fsharp, g, gsharp, a, asharp, b

length: normal is 300

Octave: 1-5

Can use music mode to make music macros like JingleBells.mac which is bellow

MQ2AdvBeep.cpp
Rich (BB code):
// MQ2AdvBeep.cpp : Defines the entry point for the DLL application.
//

// PLUGIN_API is only to be used for callbacks.  All existing callbacks at this time
// are shown below. Remove the ones your plugin does not use.  Always use Initialize
// and Shutdown for setup and cleanup, do NOT do it in DllMain.

// by zippzipp


#include "../MQ2Plugin.h"


PreSetup("MQ2AdvBeep");

int c[5] = {131, 262, 523, 1046, 2096};
int csharp[5] = {139, 277, 554, 1108, 2217};
int d[5] = {147, 294, 597, 1175, 2349};
int dsharp[5] = {156, 311, 622, 1244, 2489};
int e[5] = {165, 330, 659, 1318, 2637};
int f[5] = {175, 349, 698, 1397, 2794};
int fsharp[5] = {185, 370, 740, 1480, 2960};
int g[5] = {196, 392, 784, 1568, 3136};
int gsharp[5] = {208, 415, 831, 1664, 3322};
int a[5] = {233, 440, 880, 1760, 3520};
int asharp[5] = {233, 466, 932, 1866, 3729};
int b[5] = {248, 494, 988, 1973, 3951};

VOID AdvBeep(PSPAWNINFO pChar, PCHAR szLine){

   CHAR Frequency[MAX_STRING]; GetArg(Frequency,szLine,1);
   CHAR Length[MAX_STRING]; GetArg(Length,szLine,2);
   CHAR Octave[MAX_STRING]; GetArg(Octave,szLine,3);
   int freqflag = 0;

	if(IsNumber(Frequency)){
		if(IsNumber(Length))
			Beep(atoi(Frequency),atoi(Length));
		else
			Beep(atoi(Frequency),300);
	} else {
		if(IsNumber(Length) && IsNumber(Octave)) {
			if(atoi(Octave) > 5 || atoi(Octave) < 1) {
				WriteChatColor("Octave must be between 1 and 5",COLOR_LIGHTGREY);
                return;
			}

			if(!strcmpi(Frequency,"c")) {
				Beep(c[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"csharp")) {
				Beep(csharp[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"d")){
				Beep(d[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"dsharp")){
				Beep(dsharp[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"e")){
				Beep(e[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}			
			if(!strcmpi(Frequency,"f")){
				Beep(f[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"fsharp")){
				Beep(fsharp[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"g")){
				Beep(g[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"gsharp")){
				Beep(gsharp[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"a")){
				Beep(a[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"asharp")){
				Beep(asharp[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(!strcmpi(Frequency,"b")){
				Beep(b[atoi(Octave)],atoi(Length));
				freqflag = 1;
			}
			if(freqflag == 0)
				DoCommand(pChar,"/beep");
		} else {
			WriteChatColor("Syntax: /advbeep [freq] [length] or /advbeep [note] [length] [octave]",COLOR_LIGHTGREY);
   
		}
	}

}

PLUGIN_API VOID InitializePlugin(VOID){
	AddCommand("/advbeep", AdvBeep);
}

PLUGIN_API VOID ShutdownPlugin(VOID){
	RemoveCommand("/advbeep");
}

JingleBells.mac
Rich (BB code):
|----------------------------------
|  JingleBells.mac by Zippzipp
|  
|  Plays jingle bells with beeps
|----------------------------------

#turbo

Sub Main

   /advbeep d 300 2   |  dashing through the snow
   /advbeep b 300 2
   /advbeep a 300 2
   /advbeep g 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep b 300 2
   /advbeep a 300 2
   /advbeep g 300 2
   /advbeep e 300 2

   /advbeep e 300 4 | o'er the fields we go laughing all the way
   /advbeep c 300 4
   /advbeep b 300 4
   /advbeep a 300 4
   /advbeep d 300 4
   /advbeep d 300 4
   /advbeep e 300 4
   /advbeep d 300 4
   /advbeep c 300 4
   /advbeep a 300 4
   /advbeep b 300 4
  
   /advbeep d 300 2 | bells on bob-tail ring making spirits bright What 
   /advbeep b 300 2
   /advbeep a 300 2
   /advbeep g 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep b 300 2
   /advbeep a 300 2
   /advbeep g 300 2
   /advbeep e 300 2

   /advbeep e 300 2  | fun it is to ride and sign a sleighing song tonight
   /advbeep e 300 2
   /advbeep c 300 2
   /advbeep b 300 2
   /advbeep a 300 2
   /advbeep d 300 4
   /advbeep d 300 4
   /advbeep d 300 4
   /advbeep d 300 4
   /advbeep e 300 4
   /advbeep d 300 4
   /advbeep c 300 4
   /advbeep a 300 4
   /advbeep g 300 4

   /advbeep d 300 2  | jingle bells jingle bells jingle all the way
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep d 300 4
   /advbeep g 300 4
   /advbeep a 300 4
   /advbeep b 300 4

   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep a 300 4
   /advbeep a 300 4
   /advbeep g 300 4
   /advbeep a 300 4

   /advbeep d 300 4  | jingle bells jingle bells jingle all the way
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep b 300 4
   /advbeep d 300 4
   /advbeep g 300 4
   /advbeep a 300 4
   /advbeep b 300 4

   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep b 300 2
   /advbeep d 300 4
   /advbeep d 300 4
   /advbeep c 300 4
   /advbeep a 300 4
   /advbeep g 300 4

/return

Note: I am not the best at translating music but it sounds pretty good.

Enjoy!!! and Happy Holidays!

--Zippzipp
 
Actually, this could be a useful plugin. Allows seperate beeps for seperate events so you can distinguish immediately what's causing the beep.
 
Aye had that in mind as well when i wrote this. Thats why i tried to make it easy by including about 40 preset tones (the different notes on octaves) plus the ability to input any frequency. Could be useful for a lot of stuff in MQ. GM detection, channel distinguishing, macro debugging, all kindsa cool stuff. Along with fun holiday tunes!

--Zippzipp
 
MQ2Customsound can be used to do a lot of this, with much more variance...

But hell, this has more entertainment value than most plugins...

Red cents to whoever gets me the simpsons, zelda, and mission impossible soundtracks...
 
Here is zelda

Zelda.mac
Rich (BB code):
|-----------------------------
|  Zelda.mac by zippzipp
|-----------------------------


#turbo

Sub Main

  /advbeep a 300 2
  /advbeep a 300 2
  /advbeep b 300 2
  /advbeep c 300 2
  /advbeep d 300 2
  /advbeep g 300 2

  /advbeep b 300 2
  /advbeep b 300 2
  /advbeep c 300 2
  /advbeep d 300 2
  /advbeep e 300 2

  /advbeep e 300 2
  /advbeep e 300 2
  /advbeep f 300 2
  /advbeep g 300 2
  /advbeep a 300 2

  /advbeep a 300 2
  /advbeep a 300 2
  /advbeep g 300 2
  /advbeep f 300 2
  /advbeep g 300 2
  /advbeep f 300 2
  /advbeep e 300 2


  /advbeep e 300 2
  /advbeep d 300 2
  /advbeep d 300 2
  /advbeep e 300 2
  /advbeep f 300 2

  /advbeep e 300 2
  /advbeep d 300 2
  /advbeep c 300 2
  /advbeep c 300 2
  /advbeep d 300 2
  /advbeep e 300 2

  /advbeep e 300 2

  /advbeep d 300 2
  /advbeep c 300 2
  /advbeep c 300 2
  /advbeep d 300 2
  /advbeep e 300 2

  /advbeep d 300 2
  /advbeep c 300 2
  /advbeep b 300 2
  /advbeep b 300 2
  /advbeep c 300 2
  /advbeep d 300 2

  /advbeep f 300 2
  /advbeep e 300 2

  /advbeep a 300 2
  /advbeep d 300 2
  /advbeep g 300 2
  /advbeep b 300 2
  /advbeep b 300 2
  /advbeep c 300 2
  /advbeep d 300 2
  /advbeep e 300 2

  /advbeep e 300 2
  /advbeep e 300 2
  /advbeep f 300 2
  /advbeep g 300 2
  /advbeep a 300 2

  /advbeep c 300 2
  /advbeep b 300 2
  /advbeep g 300 2

  /advbeep e 300 2
  /advbeep f 300 2
  /advbeep a 300 2
  /advbeep g 300 2
  /advbeep e 300 2

  /advbeep c 300 2

  /advbeep d 300 2
  /advbeep d 300 2
  /advbeep e 300 2
  /advbeep f 300 2
  /advbeep a 300 2
  /advbeep g 300 2


/return
 
Batman theme music

Batman.mac
Rich (BB code):
|--------------------------
|  Batman.mac by zippzipp
|--------------------------
#turbo

Sub Main

   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep g 300 2
   /advbeep g 300 2
   /advbeep fsharp 300 2
   /advbeep fsharp 300 2
   /advbeep f 300 2
   /advbeep f 300 2
   /advbeep fsharp 300 2
   /advbeep fsharp 300 2
   /advbeep g 300 2
   /advbeep g 300 2
   /advbeep fsharp 300 2
   /advbeep fsharp 300 2
   /advbeep f 300 2
   /advbeep fsharp 300 2
   /advbeep g 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep c 300 2
   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2

   /advbeep c 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep a 300 2
   /advbeep a 300 2
   /advbeep gsharp 300 2
   /advbeep gsharp 300 2
   /advbeep g 300 2
   /advbeep gsharp 300 2
   /advbeep a 300 2
   /advbeep g 300 2
   /advbeep g 300 2
   /advbeep fsharp 300 2
   /advbeep fsharp 300 2
   /advbeep f 300 2
   /advbeep fsharp 300 2
   /advbeep g 300 2
   /advbeep d 300 2
   /advbeep d 300 2
   /advbeep csharp 300 2
   /advbeep csharp 300 2
   /adbeep c 300 2
   /advbeep csharp 300 2
   /advbeep d 300 2
   /advbeep f 300 2
   /advbeep g 300 2
   /advbeep f 300 2
   /advbeep g 300 2

/return

Enjoy

--Zippzipp
 
MQ2AdvBeep

Users who are viewing this thread

Back
Top
Cart