Go Back   EQEmulator Home > EQEmulator Forums > General > General::News

General::News EQemu news posts.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2014, 06:02 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default Perl Plugins/Mods & Wiki Updates

Spent the full past two days going through every single Perl plugin and cleaning it up for ease of public consumption. The Plugins repository has been fully updated and cleaned up completely. Many plugins have been updated and full examples ready to make it easy for people to reference.

All plugins have been updated and fully documented: HERE (Perl Plugin Master Reference)

New Plugins/Mods

Happy developing

Last edited by Akkadius; 04-19-2014 at 06:43 AM..
Reply With Quote
  #2  
Old 05-17-2014, 07:59 PM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default Maruqee

Looking for a little help with the marquee messaging. Attempting to use the plugin gave failed results so I attempted to make sure it was in the client_message.pl under the plugin folder. It wasn't so I added the needed code in.

I have found that the error seems to be coming from the SendMarqueeMessage function regardless. It is definitely within my source under the client.cpp

Code:
void Client::SendMarqueeMessage(uint32 type, uint32 priority, uint32 fade_in, uint32 fade_out, uint32 duration, std::string msg)
{
	if(duration == 0 || msg.length() == 0) {
		return;
	}

	EQApplicationPacket outapp(OP_Marquee, sizeof(ClientMarqueeMessage_Struct) + msg.length());
	ClientMarqueeMessage_Struct *cms = (ClientMarqueeMessage_Struct*)outapp.pBuffer;

	cms->type = type;
	cms->unk04 = 10;
	cms->priority = priority;
	cms->fade_in_time = fade_in;
	cms->fade_out_time = fade_out;
	cms->duration = duration;
	strcpy(cms->msg, msg.c_str());

	QueuePacket(&outapp);
}
Even using something as simple as below will result in only the NPC sending the first Test message and nothing after. Is there something wrong with the marquee message function in my source or am I just over looking something extremely simple?

Code:
sub EVENT_SAY
{
	$client->Message(15,"Test");

	$client->SendMarqueeMessage(15, 510, 1, 100, 3000, "Testing");
	
	$client->Message(15,"Test2");
}
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote
  #3  
Old 05-17-2014, 10:29 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Mariomario View Post
Looking for a little help with the marquee messaging. Attempting to use the plugin gave failed results so I attempted to make sure it was in the client_message.pl under the plugin folder. It wasn't so I added the needed code in.

I have found that the error seems to be coming from the SendMarqueeMessage function regardless. It is definitely within my source under the client.cpp

Code:
void Client::SendMarqueeMessage(uint32 type, uint32 priority, uint32 fade_in, uint32 fade_out, uint32 duration, std::string msg)
{
	if(duration == 0 || msg.length() == 0) {
		return;
	}

	EQApplicationPacket outapp(OP_Marquee, sizeof(ClientMarqueeMessage_Struct) + msg.length());
	ClientMarqueeMessage_Struct *cms = (ClientMarqueeMessage_Struct*)outapp.pBuffer;

	cms->type = type;
	cms->unk04 = 10;
	cms->priority = priority;
	cms->fade_in_time = fade_in;
	cms->fade_out_time = fade_out;
	cms->duration = duration;
	strcpy(cms->msg, msg.c_str());

	QueuePacket(&outapp);
}
Even using something as simple as below will result in only the NPC sending the first Test message and nothing after. Is there something wrong with the marquee message function in my source or am I just over looking something extremely simple?

Code:
sub EVENT_SAY
{
	$client->Message(15,"Test");

	$client->SendMarqueeMessage(15, 510, 1, 100, 3000, "Testing");
	
	$client->Message(15,"Test2");
}
You need to have all of the current opcodes, latest source and latest plugins repo and you can simply use marquee messages as simply as:

plugin::MM("Message"); or use manual arguments with $client->SendMarqueeMessage();
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

   

All times are GMT -4. The time now is 09:40 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3