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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2014, 09:38 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

Thanks for the reply. I apologize for posting this in the code submission forum, but if there really is a problem with the functionality following other changes to the database or code, we should address it.

I tried many permutations all with the same effect, the book does not appear when client->ReadBook is called. Here is the simplified code for testing and the in-game text. The same result happens whether the mob in question is set as targetable (type 1) or untargetable (type 11).

Code:
sub EVENT_SPAWN {
	quest::npcfeature("size", 150);
	quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
}

sub EVENT_ENTER {
	$client->Message(315, "'The Codices of Ascension' by Senior Researcher Xal'Fora.  State which volume you would like to read, [volume one] to [volume nine].");
	quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
}

sub EVENT_EXIT {
	quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
	quest::say("testing proximity reset");
}

sub EVENT_PROXIMITY_SAY {
	if($text =~/volume one/i) {
		quest::say("testing proximity say");
	}
}
You say, '#reloadqst'
Clearing quest memory cache.
You say, '#repop'
Zone depoped. Repoping now.

Approaching the mob...

'The Codices of Ascension' by Senior Researcher Xal'Fora. State which volume you would like to read, [volume one] to [volume nine].

Retreating from the mob...

The Codices of Ascension says, 'testing proximity reset'

Approaching the mob again...

'The Codices of Ascension' by Senior Researcher Xal'Fora. State which volume you would like to read, [volume one] to [volume nine].

You say, 'volume one'

crickets... so EVENT_PROXIMITY_SAY is not functioning.
Reply With Quote
  #2  
Old 08-24-2014, 09:55 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
-EVENT_PROXIMITY_SAY needs to be enabled via quest before it will work, calling quest::enable_proximity_say() in EVENT_SPAWN will suffice.
It must be enabled now
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:02 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