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 10-15-2014, 09:39 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I'm probably missing something...

Code:
my @itemlist = (0000,0000,0000,0000,0000,0000,0000,0000);

Wouldn't any item found in any checked slot return 0?

Quote:
0000 (as @item) != {>0 .. <= ceiling} (as $client->GetItemIDAt($i))
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #2  
Old 10-15-2014, 09:44 PM
Asylum
Sarnak
 
Join Date: Jun 2013
Posts: 81
Default

Yes, the actual numbers for the items are not 0000, those were just placeholders when I began thinking of this script at work today. I have decided to axe the plugin and do it manually and it works perfectly, only I still have the explicit right versus left wrists to tackle. Finally, I need to get it working as a loop to have the ill effects count the number of correct/missing items of the 8.

This works as intended for checking all 8 visible armor items:

Code:
sub EVENT_SPAWN {
	$npc->TempName("");
	quest::settimer("armor", 30);
}

sub EVENT_TIMER {
	if ($timer eq "armor") {
		my @clientlist = $entity_list->GetClientList();
		foreach $ent (@clientlist) {
			if ($ent->GetItemIDAt(2) == 2298 && $ent->GetItemIDAt(7) == 2372 && $ent->GetItemIDAt(9) == 2376 && $ent->GetItemIDAt(10) == 31891 && $ent->GetItemIDAt(12) == 2377 && $ent->GetItemIDAt(17) == 2370 && $ent->GetItemIDAt(18) == 2378 && $ent->GetItemIDAt(19) == 2379) {
				$ent->Message(315, "Your armor protects you from harm.");
			}
			else {
				$ent->CastSpell(7026,$ent->GetID()); #casts Aura of Crimson Mists IV
				quest::ze(4, $ent->GetCleanName() . " suffers in the throes of anguish.");
			}
		}
	}
}
Hint: the item numbers are unique to my server, who knows what they are on other servers.
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 09:41 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