Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 07-17-2008, 06:09 PM
JLB2414
Fire Beetle
 
Join Date: Jul 2007
Posts: 16
Default using your last code

Using your last EVENT_ITEM he simply just stands there as always what I did was used your code with the exception of one bracket I took out.

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 1079 => 1) && ($gold==15)) {
    if($class eq "Wizard") {
      quest::exp(15);
      quest::summonitem(15036);
      quest::summonitem(15377);
      quest::summonitem(15378);
      quest::summonitem(15230);
      quest::summonitem(15376);
    }
    else {
      quest::say("You are no Wizard, and I know a Wizard when I see one!");
      quest::summonitem(1079);
    }
  } ########### REMOVED
  else {
    quest::say("I have no use for this, $name.");
    plugin::return_items(\%itemcount);
  }
}
Removing that bracket makes the quest work, but if you just turn in the book, he simply keeps it, and says "I have no use for this, $name." Giving him any other item he returns.

Since you posted I've tried:

Code:
elsif (plugin::check_handin(\%itemcount, 1079 => 1)) {
    	quest::say("I cannot provide the knowledge you seek, $name.");
    	quest::summonitem(1079); 
}
and I've tried,

Code:
 if (plugin::check_handin(\%itemcount, 1079 => 1)) {
    	quest::say("I cannot provide the knowledge you seek, $name.");
    	quest::summonitem(1079); 
}
... basically im just trying to figure out how the player can get the book back if the money isn't handed in with it.

Everything else works.

This is what I have in the .pl right now for sub EVENT_ITEM for the time being.

Code:
sub EVENT_ITEM { 
	if (plugin::check_handin(\%itemcount, 1079 => 1))
	 	{ 
			quest::exp(11);
			quest::summonitem(15036);
			quest::summonitem(15377);
			quest::summonitem(15378);
			quest::summonitem(15230);
    		quest::summonitem(15376);
    	}
   
    else 
    	{
    		quest::say("Don't waste my time, $race!");
    		plugin::return_items(\%itemcount);
    	}
}
I found out about #reloadquest... and that has been really helpful in actually testing the script so far.

I thought I had to completely reboot the server everytime I tried a new script... no wonder my first script took 6 hours lol!
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 Off

Forum Jump

   

All times are GMT -4. The time now is 02:45 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3