View Single Post
  #8  
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