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-07-2015, 12:28 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Code:
sub EVENT_DEATH_COMPLETE{

	my $CountOrcs = $qglobals{"orcslay1"};
	my $CountGnolls = $qglobals{"gnollslay1"};

		if ($npc->GetRace() == 54) {
			$client->SetGlobal("orcslay1", ($qglobals{"orcslay1"}+1) , 7, 'F');
			quest::ze(14,  "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}

		elsif ($npc->GetRace() == 17) {
			$client->SetGlobal("gnollslay1", ($qglobals{"gnollslay1"}+1) , 7, 'F');
			quest::ze(14,  "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}
}
This is in my player.pl, and it does not work lol. im not sure what im doing wrong.
Reply With Quote
  #2  
Old 10-07-2015, 12:29 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

If you want it triggering off NPC's in the zone.

Run it off the default.pl

That runs the code on every NPC in zone that doesn't have a specific .pl file

You don't need to set the global to a client, just use a type 7 global on the NPC that will save it across all zones and can be accessed by anything.
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 03:39 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