EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Tally count w 2 zone pop-up? (https://www.eqemulator.org/forums/showthread.php?t=40070)

Maceblade 10-07-2015 12:41 PM

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 . " ...");}


ghanja 10-07-2015 12:51 PM

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?

Maceblade 10-07-2015 01:03 PM

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.

Maceblade 10-09-2015 05:47 PM

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 . " ...");}


Kingly_Krab 10-09-2015 06:15 PM

Do ALL the NPCs you're trying to use that on have their 'qglobal' column set to '1' in 'npc_types'?

Maceblade 10-09-2015 08:15 PM

yea I used navicat and had them all set

Kingly_Krab 10-09-2015 08:15 PM

Hmm, pretty weird, didn't look at the code, but I'll get back to you on something, message me on Skype (Kingly.krab).

Maceblade 10-10-2015 09:48 AM

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 . " --->>>>");}



All times are GMT -4. The time now is 09:47 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.