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

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

Reply
 
Thread Tools Display Modes
  #16  
Old 10-07-2015, 12:41 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Thanks Shen I did not realize that was there, now its book marked lol. And Kay are you talking about using
Code:
quest::setglobal
for every death? Ill post my default.pl....
Code:
sub EVENT_DEATH_COMPLETE{

	my $CountOrcs = $qglobals{"orcslay1"};
	my $CountGnolls = $qglobals{"gnollslay1"};
			$client->SetGlobal("orcslay1", ($qglobals{"orcslay1"}+1) , 7, 'F');
			quest::ze(14,  "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}
Reply With Quote
  #17  
Old 10-07-2015, 12:51 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

So, you have multiple NPC ID's for both Gnolls and Orcs. You would like to keep track of the deaths of them in only two zones (currently).

That's my understanding.

Do you wish to give credit for the kills if no experience is yielded? What if groups go out killing them? You only wish for the one with the final blow to get the credit?
Reply With Quote
  #18  
Old 10-07-2015, 01:03 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Its a controlled event, blackburrow and crushbone, every orc/gnoll, level 10 PC max(is not a concern as there is a zone autoboot script already in place), personal credit is not a priority. Its living vs undead and when you are undead you play as undead gnolls raiding crushbone. as the living you play as orcs raiding blackburrow.

My simplistic version is to just keep track of orc and gnoll deaths, and broadcast them to their own zone.

What I really wanted was, every gnoll death whether it be PC or NPC acted as a gnoll kill etc etc.

The dwarves were all changed to orcs to make it easier on the default script.
Reply With Quote
  #19  
Old 10-09-2015, 05:47 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Anyone care to tell me why this default.pl does not work, yet when I assign it to an NPC it works fine?

Code:
sub EVENT_DEATH_COMPLETE{

	my $CountOrcs = $qglobals{"orcslay1"};
	my $CountGnolls = $qglobals{"gnollslay1"};
			$client->SetGlobal("gnollslay1", ($qglobals{"gnollslay1"}+1) , 7, 'F');
			quest::ze(14,  "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}
Reply With Quote
  #20  
Old 10-09-2015, 06:15 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Do ALL the NPCs you're trying to use that on have their 'qglobal' column set to '1' in 'npc_types'?
Reply With Quote
  #21  
Old 10-09-2015, 08:15 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

yea I used navicat and had them all set
Reply With Quote
  #22  
Old 10-09-2015, 08:15 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Hmm, pretty weird, didn't look at the code, but I'll get back to you on something, message me on Skype (Kingly.krab).
Reply With Quote
  #23  
Old 10-10-2015, 09:48 AM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Ok so I got it to work as a default script... only issue is it does not work with all the npcs in the zone. There is no other scripts other than mine in the zone file. Orcs and gnolls globally, all share the same script when dying, the only issue is I cant find it. I looked in the global file and nothing. Are there hard coded scripts when they die they automatically say those things that will superceed my default file?

Code:
sub EVENT_DEATH_COMPLETE{

	my $CountOrcs = $qglobals{"orcslay1"};
	my $CountGnolls = $qglobals{"gnollslay1"};
			quest::setglobal("gnollslay1", ($qglobals{"gnollslay1"}+1) , 7, 'F');
			quest::ze(13,  "<<<<---Dead orcs = " . $CountOrcs . " Dead Gnolls = " . $CountGnolls . " --->>>>");}
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 PM.


 

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