Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2008, 01:57 AM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

Added for zone emote and world emotes

Add to questmgr.cpp :

Code:
void QuestManager::ze(int type, const char *str) {
	entity_list.Message(0, type, str);
}

void QuestManager::we(int type, const char *str) {
	worldserver.SendEmoteMessage(0, 0, type, str);
}
to questmgr.h :
Code:
	void ze(int type, const char *str);
	void we(int type, const char *str);
To perlparser.cpp :

Code:
XS(XS__ze);
XS(XS__ze)
{
	dXSARGS;
	if (items != 2)
		Perl_croak(aTHX_ "Usage: ze(type, str)");

	int	type = (int)SvIV(ST(0));
	char *		str = (char *)SvPV_nolen(ST(1));

	quest_manager.ze(type, str);

	XSRETURN_EMPTY;
}

XS(XS__we);
XS(XS__we)
{
	dXSARGS;
	if (items != 2)
		Perl_croak(aTHX_ "Usage: we(type, str)");

	int	type = (int)SvIV(ST(0));
	char *		str = (char *)SvPV_nolen(ST(1));

	quest_manager.we(type, str);

	XSRETURN_EMPTY;
}
and at the bottom of perlparser.cpp :

Code:
		newXS(strcpy(buf, "ze"), XS__ze, file);
		newXS(strcpy(buf, "we"), XS__we, file);
Now for usage:

Code:
sub EVENT_SPAWN {
	#ze = zone emote.  15 is the type(color).  Yellow in this case.
	#we = world emote.  13 is the type(color).  Red in this case.
	quest::ze(15, "Welcome to the zone!"); 
	quest::we(15, "Prepare for a new world of challenges!");
	}
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 Off

Forum Jump

   

All times are GMT -4. The time now is 07:37 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