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-12-2015, 11:29 AM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default Odd problem

Having a problem with a quest and I can not seem to solve it on my own.


Problem is coming from the give item,whenever you give him one of the items he just returns it. I have took it all the way down to its most simple form. With no return checks and only 1 item turn in and he just eats the item. globals are on as the text part is working fine. Ive tried everything I can think of he just refuses to take the items from you.

Here is the code:

Code:
sub EVENT_SAY {
if($text=~/hail/i) {
		if (defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2) {
			plugin::Whisper("Wonderful $name! Just give me your old Emblem and I will give you a more powerful version! ");
			} 
			elsif (defined $qglobals{"Greko"} && $qglobals{"Greko"} == 1) {
			plugin::Whisper("Get to work $name!");
			} 
			elsif (defined $qglobals{"Greko"} && $qglobals{"Greko"} >= 3) {
			plugin::Whisper("You have proven yourself to be a powerful $class!");
				} 
				else {
		plugin::Whisper("Hello $name I am Greko. I have the ability to unlock the true power of your  " . quest::saylink("emblem", 1) . "!");
	}
	}
	elsif($text=~/emblem/i) {
	plugin::Whisper("If you were willing to do me a  " . quest::saylink("favour", 1) . " I will be willing to help you unlock your power!");
	}
	elsif($text=~/favour/i) {
	plugin::Whisper("I want you to bring hell to the Commanders that dwell in these halls! So what say you are you up to the " . quest::saylink("task", 1) . " ?");
	}
	elsif($text=~/task/i) {
	plugin::Whisper("Very well be off now!");
	quest::assigntask(17);
	quest::setglobal("Greko", 1, 5, "F");
	}
	}
	
 
sub EVENT_ITEM { 
	if (plugin::check_handin(\%itemcount, 2372 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5333);
	quest::summonitem(5510);
	}
	elsif (plugin::check_handin(\%itemcount, 2379 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5371);
	}
	elsif (plugin::check_handin(\%itemcount, 2378 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5375);
	quest::summonitem(5508);
	}
	elsif (plugin::check_handin(\%itemcount, 2377 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5390);
	quest::summonitem(5511);
	}
	elsif (plugin::check_handin(\%itemcount, 2370 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5409);
	quest::summonitem(5428);
	}
	elsif (plugin::check_handin(\%itemcount, 2376 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5419);
	quest::summonitem(5509);
	}
	elsif (plugin::check_handin(\%itemcount, 2298 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5420);
	quest::summonitem(5505);
	}
	elsif (plugin::check_handin(\%itemcount, 2277 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5421);
	quest::summonitem(5516);
	}
	elsif (plugin::check_handin(\%itemcount, 2278 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5426);
	quest::summonitem(5513);
	}
	elsif (plugin::check_handin(\%itemcount, 2275 == 1) && defined $qglobals{"Greko"} && $qglobals{"Greko"} == 2 ) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5427);
	quest::summonitem(5514);
	}
	plugin::return_items(\%itemcount);
}
}

He ate the item when It looked like:

Code:
if (plugin::check_handin(\%itemcount, 2372 == 1)) {
		plugin::Whisper("As promised! Here is your updated Emblem!");
		quest::setglobal("Greko", 5, 5, "F");
		quest::setglobal("Spells1", 2, 5, "F");
	quest::summonitem(5333);
	quest::summonitem(5510);
	}
}
__________________
Owner and Developer - Everquest: A New World
Reply With Quote
  #2  
Old 05-12-2015, 11:35 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Don't use == as that is comparison while => deals with the item hash.
Reply With Quote
  #3  
Old 05-12-2015, 01:07 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default

Lol didnt even notice that I did that! Thank you
__________________
Owner and Developer - Everquest: A New World
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 11:21 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3