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

General::News EQemu news posts.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:03 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3