View Single Post
  #3  
Old 01-17-2010, 10:35 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I think you are supposed to use it like this:

Code:
quest::collectitems(2434, 1);
Where the second argument should be 1 or 0 for true or false on whether to remove the item or not. I think you setting that to 0 was meaning not to remove it, so you should try setting it to 1. I haven't really messed with it much.

Instead, you might want to try this:

Code:
$client->NukeItem(2434);
You should read through the Quest Tutorial here a bit more thoroughly too:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

Especially this section:
Quote:
Text Response
All speaking responses are included in a $text variable:
if ($text=~/Hail/i)
Note the /i. This means it is case insensitive. It is always better to include this.

$text =~/Hello/ - Would match "Hello", but not "hello".
$text =~/hello/ - Would match "hello", but not "Hello".
$text =~/hello/i - Would match "Hello" and "hello".
$text =~/me/ - Would match the "me" in name.
$text =~/\bme\b/ - Would not match the "me" in name. The "\b" means there must not be text next to the match so "me" must be by itself.
$text =~/^me$/i - Would only match if me is the only text said. The "^" tells it it must be the first thing said and the "$" tells it it must be the last thing.
The reason I mention that is because your posted script here has them check for the word "1" for one result and "10" for another result. But, "1" exists within the "10", so if you said 1, you would get both responses. To avoid that, you might want to change those to be "/\b1\b/" and "/\b10\b/".
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote