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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2016, 01:28 PM
jaspen
Hill Giant
 
Join Date: Apr 2016
Posts: 107
Default

Quote:
Originally Posted by cannon View Post
I believe all this does is checks a tomb to verify you are the class that you specify, so if your any other class trying to turn in the items you will get notified that you are not the correct class for the tomb.
It appears it is trying to pull from a plugin file named try_tome_handins. If that is the case, it does not exist. Is there a way of accomplishing this without that file?

EDIT: If I am misreading that and it isn't actually referring to an actual plugin file, let me know.
Reply With Quote
  #2  
Old 05-31-2016, 12:47 AM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Code:
sub EVENT_ITEM {
	if (plugin::check_handin(\%itemcount, 12496 => 1, 5123 => 1)) { #Test of the Zealot (Greenmist Quest 4/8)
		quest::say("At last!! The Chalp diagram. I shall see that the emperor gets this at once. You have proven yourself more than just a mere knight, you are a zealot. Being new to the temple we have need of you in a [matter of betrayal].");
		quest::summonitem(5124);
		quest::givecash("0","0","6","1"); 
		quest::exp(1600);
		quest::ding();
		quest::faction(62,20);
		quest::faction(193,10);
	}
	elsif(plugin::check_handin(\%itemcount, 1729 => 1, 1730 => 1, 5124 => 1)){ #Test of Betrayal (Greenmist Quest 5/8)
		quest::say("Congratulations! You are now a true crusader, but there is no time for celebration. We have lost two of our operatives. Crusaders Golin and Fodcod were dispatched to seek out an ancient artifact, the [visceral dagger]. Where they have gone, I do not know. They have been gone far too long. Find them and return the dagger to me with your crusader khukri and you shall be a hero.");
		quest::summonitem(5125);
		quest::givecash("0","0","0","2"); 
		quest::exp(2000);
		quest::ding();
		quest::faction(62,20);
		quest::faction(193,10);
	}
	elsif(plugin::check_handin(\%itemcount, 7324 => 1, 5125 => 1)){ #Test of the Hero (Greenmist Quest 6/8)
		quest::emote("gazes in astonishment at the dagger. 'Ahhh!! You have brought the sacred visceral dagger back to the Temple of Terror. Let all be aware that the great $name has returned to Cabilis a hero!! You now wield the weapon of a hero. Hail, $name, hero of the Crusaders of Greenmist.");
		quest::summonitem(5126);
		quest::givecash("0","0","0","3"); 
		quest::exp(3000);
		quest::ding();
		quest::faction(62,20);
		quest::faction(193,10);
	}
	#plugin::try_tome_handins(\%itemcount, $class, 'Shadowknight');
	plugin::return_items(\%itemcount);
}
Reply With Quote
  #3  
Old 05-31-2016, 08:13 PM
cannon
Hill Giant
 
Join Date: Dec 2004
Location: Pittsburgh, PA
Posts: 128
Default

Quote:
Originally Posted by jaspen View Post
It appears it is trying to pull from a plugin file named try_tome_handins. If that is the case, it does not exist. Is there a way of accomplishing this without that file?

EDIT: If I am misreading that and it isn't actually referring to an actual plugin file, let me know.
That is in reference to a global plugin, shouldn't make the quest not work, it just verifies that you are the class of the hand in, change the code to what ghanja posted and then save the file, in game type #rq or #reloadquest and this will reload the quest on the server without restarting the server.
Reply With Quote
  #4  
Old 05-31-2016, 08:17 PM
jaspen
Hill Giant
 
Join Date: Apr 2016
Posts: 107
Default

Quote:
Originally Posted by cannon View Post
I believe all this does is checks a tomb to verify you are the class that you specify, so if your any other class trying to turn in the items you will get notified that you are not the correct class for the tomb.
Sorry about not updating you guys on this but I had some stuff come up. I had the problem solved in post #10 and ran through all steps with a test character. The quests work but I was trying to go the extra mile to make sure it did a class check as well.

I do appreciate all the responses though. If anyone knows how to get the class check in, let me know.
Reply With Quote
  #5  
Old 05-31-2016, 09:12 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Code:
sub EVENT_ITEM {
	if ($class eq "Shadowknight") {
		if (plugin::check_handin(\%itemcount, 12496 => 1, 5123 => 1)) { #Test of the Zealot (Greenmist Quest 4/8)
			quest::say("At last!! The Chalp diagram. I shall see that the emperor gets this at once. You have proven yourself more than just a mere knight, you are a zealot. Being new to the temple we have need of you in a [matter of betrayal].");
			quest::summonitem(5124);
			quest::givecash("0","0","6","1"); 
			quest::exp(1600);
			quest::ding();
			quest::faction(62,20);
			quest::faction(193,10);
		}
		elsif(plugin::check_handin(\%itemcount, 1729 => 1, 1730 => 1, 5124 => 1)){ #Test of Betrayal (Greenmist Quest 5/8)
			quest::say("Congratulations! You are now a true crusader, but there is no time for celebration. We have lost two of our operatives. Crusaders Golin and Fodcod were dispatched to seek out an ancient artifact, the [visceral dagger]. Where they have gone, I do not know. They have been gone far too long. Find them and return the dagger to me with your crusader khukri and you shall be a hero.");
			quest::summonitem(5125);
			quest::givecash("0","0","0","2"); 
			quest::exp(2000);
			quest::ding();
			quest::faction(62,20);
			quest::faction(193,10);
		}
		elsif(plugin::check_handin(\%itemcount, 7324 => 1, 5125 => 1)){ #Test of the Hero (Greenmist Quest 6/8)
			quest::emote("gazes in astonishment at the dagger. 'Ahhh!! You have brought the sacred visceral dagger back to the Temple of Terror. Let all be aware that the great $name has returned to Cabilis a hero!! You now wield the weapon of a hero. Hail, $name, hero of the Crusaders of Greenmist.");
			quest::summonitem(5126);
			quest::givecash("0","0","0","3"); 
			quest::exp(3000);
			quest::ding();
			quest::faction(62,20);
			quest::faction(193,10);
		}
		#plugin::try_tome_handins(\%itemcount, $class, 'Shadowknight');
	}
	plugin::return_items(\%itemcount);
}
Reply With Quote
  #6  
Old 05-31-2016, 09:28 PM
jaspen
Hill Giant
 
Join Date: Apr 2016
Posts: 107
Default

Thanks ghanja! That looks good and simple enough. I will test it later. I am slowly learning. Emphasis on the slowly part but I do hope to eventually start contributing!
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 08:18 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