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 06-24-2017, 04:23 PM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default Turn In issue

So the npc this is attached to keeps returning everything. Not sure what ive done wrong here, though it is my first time messing around with chooserandom. Any help would be greatly appreciated.

Code:
sub EVENT_ITEM { 
	if(plugin::check_handin(\%itemcount, 147503 == 1)) { # Stone/Stat
		my $stat = quest::ChooseRandom(147518..147525);
		quest::summonitem($stat);
		plugin::Whisper("Wow this one is an  " . quest::varlink("$stat", 1) . " !");
		
	        quest::Whisper("Here you go!");
	} elsif (plugin::check_handin(\%itemcount, 147505 == 1)) { # Orb/Resists/HP/Mana
		my $orb = quest::ChooseRandom(147507..147510);
		quest::summonitem($orb);
	 plugin::Whisper("Wow this one is an  " . quest::varlink("$orb", 1) . " !");
	} elsif (plugin::check_handin(\%itemcount, 147504 == 1)) { # Weapon
		my $weapon = quest::ChooseRandom(147511..147515);
		quest::summonitem($weapon);
	 plugin::Whisper("Wow this one is an  " . quest::varlink("$weapon", 1) . " !");
	} elsif (plugin::check_handin(\%itemcount, 147506 == 1)) { # Bows
		my $bow = quest::ChooseRandom(147516..147517);
		quest::summonitem($bow);
	 plugin::Whisper("Wow this one is an  " . quest::varlink("$bow", 1) . " !");
		}
		plugin::return_items(\%itemcount);
}
Reply With Quote
  #2  
Old 06-24-2017, 06:47 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Check against some other quests that work.

Hint: It is not ==
Reply With Quote
  #3  
Old 06-25-2017, 08:24 AM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default

got it, ty for the tip!
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:13 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